New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symlinks on the photos directory break Pigallery2 #39
Comments
Hi, Thank you for your report. Patrik |
Hi Patrik,
The root images folder path is a symlink. The problem only happens when I have symlinks inside the root images folder, once I moved the symlinks elsewhere the problem went away
The symlinks had 777 permissions, and the app is running in Docker so is effectively root AFAICT BTW thanks for developing Pigallery2! I searched for ages to find a photo gallery that would work with my existing folders (since I manage the photos using Digikam) and that actually has basic features like video playback and display of comments. Piwigo and Lychee were no good, Nextcloud Gallery is pretty hopeless. Yours is the only one that does things right! |
Hi, Thank you. I'll look into it and get back to you in the next few days (worst case weeks). Thank you! I'm glad that you like it :) |
Hi, I've checked and the problem seems to be with docker. Here you can read more about the docker's symlink issue: You can try changing the way, you make your image folder accessible by docker, but I cannot really give any guidance with that. Maybe look around here: https://docs.docker.com/storage/ |
Thanks, it's annoying Docker can't handle that well. In that case not a pigallery2 issue so I'll close this. I ended up removing the symlinks from inside the 'photos' directory because they weren't really needed. |
In the mean time I figured that the issue with the symlinks are probably
that the path to the folder might point outside of the mounted volume. (or
the path to the linked folder is different within the docker)
You can try the following:
1) mounting your whole host or a larger set of your host like `-v
/:/hostroot` (not sure if you can mount the whole `/`
2) changing the path to the image folder settings within the app.
I haven't tested it.
Best,
Patrik
…On Sat, Jan 26, 2019, 00:40 Tim Edwards ***@***.*** wrote:
Closed #39 <#39>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#39 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHKgdiLJGW_xbg3cavCFbcehiOB-DDG4ks5vG-pTgaJpZM4aN-PX>
.
|
Thanks, that's probably it since the symlinks were to a folder outside of the 'photos' folder |
If you have any symlinks in the photos directory (Images folder) you get the following error in the UI:
Errors from the logs (from docker logs, I'm using the docker image):
The text was updated successfully, but these errors were encountered: