Comments (13)
Assuming you’re using the default (local disk) for media — do you see any files in the public/media
directory (from the app root)? I wonder if there is some permissions configuration that is not addressed there for the manual install.
from kcal.
I do. The uploaded image is in a subfolder of that folder as well. I'll try to chmod 777 the whole directory to exclude permission issues.
from kcal.
Nope. chmodded the directory (recursively, obviously) to 777 and still nothing. I'm not even getting an error now.. Although when uploading the image, it gives me a 404 for the preview:
GET https://[domain]/media/7/conversions/[etc] 404
from kcal.
Tried uploading a profile picture to see if it's a general issue - that 404ed as well.
GET https://[domain]/media/8/conversions/ryderfornow-icon.jpg 404
from kcal.
Curious — and you said the originals are being uploaded? But the conversions are missing?
from kcal.
Yes, it seems like it.
from kcal.
I can access the unconverted upload without any issues. But the conversion does not exist (neither on the filesystem nor on the site)
from kcal.
Hm ok. I wonder if there is a dependency missing from the manual install instructions for the media handling. What base system (Debian, Ubuntu, etc.) and version are you using?
from kcal.
Ubuntu (server) 20.04
from kcal.
Ok I’ll try to find some time today to test from that base and see if something is missing.
In the mean time you may be able to troubleshoot by poking around the docs for the library that handles these conversions — https://spatie.be/docs/laravel-medialibrary/v9/requirements
I’m guessing a PHP module or image library is missed somewhere in the install steps.
from kcal.
@RyderForReal a couple of things are probably happening here --
-
By default, the media conversions are queued. This seems unnecessary for an app like this so I have changed the example
.env
file to handle conversions immediately instead of in queue. Add the following to your.env
to do the same:QUEUE_CONVERSIONS_BY_DEFAULT=false
-
The
temp
directory used by the media conversion library may not have correct permissions. To check them try:ls -lah {APP_ROOT}storage/media-library/
There should be a
temp
directory in there with permissionsdrwxrwxr-x
and uid:gid $USER:www-data. If the directory has some other permissions, see below and use those commands.
I also added a step to the manual install process to try to address this directly, but it may need more testing. As a final step the documentation now has:
1. Allow web server to access required directories.
sudo chown -R $USER:www-data {storage,public}
sudo chmod g+s {storage,public}
Let me know if any of that gets you going!
from kcal.
Works! Thanks a lot.
from kcal.
Nice! Eventually I need to come up with a way to simplify the permissions stuff for that manual install process…
from kcal.
Related Issues (20)
- SQLSTATE[22003]: Numeric value out of range: HOT 5
- Add API token authorization documentation
- HTTPS behind another reverse proxy HOT 2
- Recipe serving name wrong when food serving size is less than 1
- Improve journal UX HOT 2
- Add fragments and history state to list pages
- Recipes api returns 500 error. Other queries seem fine. HOT 1
- Blank user edit page when profile image is uploaded HOT 1
- Logging foods to journal does not display serve size
- Capital letters inconsistent
- Add debian instructions and rename Manual section to Manual (Ubuntu)
- Options to add, hide, convert, and reorder nutrition units
- Add multiples of food to journal HOT 1
- Login Issue no users created in database
- SQL error causing 500 Internal Server Error on both /recipes and /foods HOT 1
- SQL error HOT 1
- Copy food/meal feature
- Recommendation by meal
- installation issue HOT 2
- Kcal with a HTTPS and a Reverse Proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcal.