-
Notifications
You must be signed in to change notification settings - Fork 208
Description
Hi there,
I'm trying to get this running in a container with a mounted volume.
But I have issues with file attachements.
I can upload images into my pages just fine.
Deleting works also.
Same for file attachements.
Uploading and deleting works.
The files also get stored in the correct directory on disk.
But I cannot access them from the file link in the top left.
The browser then says:
Die Website ist nicht erreichbar
Die Webseite unter http://localhost:8080/attachments/4 ist eventuell vorübergehend nicht verfügbar oder wurde dauerhaft an eine neue Webadresse verschoben.
ERR_INVALID_RESPONSE
Here's what I do:
view page
edit
upload file
save
click link in the top left
[11/Aug/2023:08:07:20 +0000] "GET /books/systeme/page/fotos HTTP/1.1" 200 9397 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:23 +0000] "GET /books/systeme/page/fotos/edit HTTP/1.1" 200 13571 "http://localhost:8080/books/systeme/page/fotos" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:23 +0000] "GET /ajax/search/entities?types=book%2Cchapter%2Cpage&permission=view HTTP/1.1" 200 2713 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:37 +0000] "POST /attachments/upload?uploaded_to=4 HTTP/1.1" 200 1710 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:37 +0000] "GET /attachments/get/page/4 HTTP/1.1" 200 2642 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:40 +0000] "POST /books/systeme/page/fotos HTTP/1.1" 302 2020 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:40 +0000] "GET /books/systeme/page/fotos HTTP/1.1" 200 9633 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:43 +0000] "GET /attachments/4 HTTP/1.1" 500 15454 "http://localhost:8080/books/systeme/page/fotos" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:44 +0000] "GET /attachments/4 HTTP/1.1" 500 15454 "http://localhost:8080/books/systeme/page/fotos" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
[11/Aug/2023:08:07:45 +0000] "GET /books/systeme/page/fotos HTTP/1.1" 200 9591 "http://localhost:8080/books/systeme/page/fotos/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
This is what the directories look like:
www-data@174072b1a32c:~/bookstack$ ls -lahR public/uploads/ storage/uploads/
public/uploads/:
total 12K
drwxrwxr-x 3 www-data www-data 4.0K Aug 11 07:54 .
drwxrwxr-x 5 www-data www-data 4.0K Apr 29 2022 ..
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 images
public/uploads/images:
total 12K
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 .
drwxrwxr-x 3 www-data www-data 4.0K Aug 11 07:54 ..
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 gallery
public/uploads/images/gallery:
total 12K
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 .
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 ..
drwxr-xr-x 4 www-data www-data 4.0K Aug 11 07:54 2023-08
public/uploads/images/gallery/2023-08:
total 3.9M
drwxr-xr-x 4 www-data www-data 4.0K Aug 11 07:54 .
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 07:54 ..
-rw-r--r-- 1 www-data www-data 3.9M Aug 11 07:54 img-20230807-171459.jpg
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 07:54 scaled-1680-
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 07:54 thumbs-150-150
public/uploads/images/gallery/2023-08/scaled-1680-:
total 304K
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 07:54 .
drwxr-xr-x 4 www-data www-data 4.0K Aug 11 07:54 ..
-rw-r--r-- 1 www-data www-data 293K Aug 11 07:54 img-20230807-171459.jpg
public/uploads/images/gallery/2023-08/thumbs-150-150:
total 20K
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 07:54 .
drwxr-xr-x 4 www-data www-data 4.0K Aug 11 07:54 ..
-rw-r--r-- 1 www-data www-data 9.0K Aug 11 07:54 img-20230807-171459.jpg
storage/uploads/:
total 16K
drwxrwxr-x 3 www-data www-data 4.0K Aug 11 07:47 .
drwxrwxr-x 1 www-data www-data 4.0K Apr 29 2022 ..
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 08:07 files
storage/uploads/files:
total 12K
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 08:07 .
drwxrwxr-x 3 www-data www-data 4.0K Aug 11 07:47 ..
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 08:07 2023-08-Aug
storage/uploads/files/2023-08-Aug:
total 12K
drwxr-xr-x 2 www-data www-data 4.0K Aug 11 08:07 .
drwxr-xr-x 3 www-data www-data 4.0K Aug 11 08:07 ..
-rw-r--r-- 1 www-data www-data 1.2K Aug 11 08:07 noZUExEEweCIuui3-txt
I'm guessing this is an mod_rewrite issue, as the files are there and accessigble by www-data