You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entrypoint script should probably be improved, sorry for not looking at it for months.
However, line 46 chmod -R a+rw /uploads should allow all users to write to /uploads (not a good idea), so how the /uploads folder can be read-only for group and others ?
I think that these lines have been added when switching from root user to lychee user inside the container.
Hi,
I migrated from Lychee 3 and I got it work, read-only though. As I tried to upload a photo (just to see if I can) all I got was this:
2019-05-12 19:56:56 -- error -- App\ModelFunctions\PhotoFunctions::add -- 262 -- Could not move photo to uploads
About my setup: a machine running docker,
upload
andconfig
directories in a separate, storage server via SMB/CIFS share.I suspected that this must be permissions related, so I tried a simple write to the uploads directory.
So, in brief, user www-data can't write, only user lychee can, but it's user www-data who handles files during import.
Now, if I change ownership of
uploads
folder, that's what I get:and docker container fails to start.
So, I just wanted to ask: are lines 43-47 of entrypoint.sh completely necessary? Can't we just check them before running and then omit them?
Thank you.
The text was updated successfully, but these errors were encountered: