Closed HC-Pinky closed 9 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Update:
I redid my hole docker setup and now this is working properly
root@201adeeb1957:/app/www/public# ll
total 135
drwxrwxr-x 4 root root 19 Oct 3 03:45 .
drwxr-xr-x 14 root root 34 Oct 3 03:45 ..
-rw-rw-r-- 1 root root 603 Sep 15 12:49 .htaccess
-rw-rw-r-- 1 root root 5672 Sep 15 12:49 book_default_cover.png
drwxrwxr-x 2 root root 8 Oct 2 18:23 dist
-rw-rw-r-- 1 root root 3538 Sep 15 12:49 icon-128.png
-rw-rw-r-- 1 root root 6167 Sep 15 12:49 icon-180.png
-rw-rw-r-- 1 root root 1338 Sep 15 12:49 icon-32.png
-rw-rw-r-- 1 root root 1951 Sep 15 12:49 icon-64.png
-rw-rw-r-- 1 root root 10933 Sep 15 12:49 icon.ico
-rw-rw-r-- 1 root root 6900 Sep 15 12:49 icon.png
-rw-rw-r-- 1 root root 1782 Sep 15 12:49 index.php
drwxrwxr-x 3 root root 3 Oct 2 18:23 libs
-rw-rw-r-- 1 root root 11098 Sep 15 12:49 loading.gif
-rw-rw-r-- 1 root root 2096 Sep 15 12:49 loading_error.png
-rw-rw-r-- 1 root root 5415 Sep 15 12:49 logo.png
lrwxrwxrwx 1 root root 19 Oct 3 03:45 uploads -> /config/www/uploads
-rw-rw-r-- 1 root root 7405 Sep 15 12:49 user_avatar.png
-rw-rw-r-- 1 root root 1193 Sep 15 12:49 web.config
symlinks are set correctly and the app is able to store stuff
Took me quite a while to figure this out. When I tried to redo the symlink myself I was not able to rmdir or rm -rf the uploads folder. This is very odd and quiete a rar topic on the internet...
I finally got a hint deep in a forum that the docker overlayfs might cause trouble here. My system uses zfs for everything (including root partition). I followed https://docs.docker.com/storage/storagedriver/zfs-driver/ to use the propper zfs driver and then this worked!
My other system where I migrate from worked fine and there was the zfs driver already in place.
Maybe it is worth a hint on the README to use the zfs driver if /var/lib/docker runs that
Is there an existing issue for this?
Current Behavior
No upload of images possible (avatar, attachments to books, inplace images in books etc.)
Expected Behavior
Uploading images should work as expected
Steps To Reproduce
Installed Bookstack via docker compose opened Browser, logged in, went to Edit Profile and upload a new avatar image. --> Error message pops up that no sufficient write permissions exist (same for uploading images in books)
Here the Message from the logs:
Environment
CPU architecture
x86-64
Docker creation
Container logs