Images and gifs just disappeared #5269

Closed
opened 2026-02-05 09:52:55 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Dyadya-Sasha on GitHub (Apr 24, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi everybody.
Today I have noticed one very intresting thing. Images and gifs just disappeared.
Just like here https://github.com/BookStackApp/BookStack/issues/4146
However, I didn't change anything regarding DNS or URL. From the very beginning I used the same URL I use now.

I run Bookstack in k3s.

I can reproduce it very easy. I edit any article and paste an image into it. Then I restart pod and image are gone. When I click on it, it brings me to the page where it says "Image not found". I also checked if a link has httpS - yes, it is https.

So, I ask you for help. What should I look for?

Exact BookStack Version

24.5

Log Content

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bookstack
  namespace: nc
  labels:
    app: bookstack
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bookstack
  template:
    metadata:
      labels:
        app: bookstack
    spec:
      automountServiceAccountToken: false #Do not mount SA
      securityContext:
        runAsUser: 33
        runAsGroup: 33
      containers:
      - name: bookstack
        image: solidnerd/bookstack:24.5
#        ports:
#        - containerPort: 80
        env:
        - name: PUID
          value: "1000"
        - name: PGID
          value: "1000"
        - name: DB_HOST
          value: maria-svc
        - name: DB_PORT
          value: '3306'
        - name: DB_USERNAME
          value: "bookstack"
        - name: DB_PASSWORD
          value: 'secret_password'
        - name: DB_DATABASE
          value: "bookstack"
        - name: APP_URL
          value: https://bookstack.example.ru
        - name: APP_KEY
          value: "O8ZXuUe6CcJwL15kItagjxG0fQ4V7Wp9"
        - name: AUTH_METHOD # Set OIDC to be the authentication method
          value: oidc
        - name: AUTH_AUTO_INITIATE
          value: 'false'
        - name: OIDC_NAME # Set the display name to be shown on the login button.
          value: Keycloak
        - name: OIDC_DISPLAY_NAME_CLAIMS
          value: name
        - name: OIDC_CLIENT_ID
          value: bookstack
        - name: OIDC_CLIENT_SECRET
          value: MpIqDSJEILYJ2QzPJs2Sb3P3CvAEOzS7
        - name: OIDC_ISSUER
          value: https://keycloak.example.ru/realms/Home
        - name: OIDC_END_SESSION_ENDPOINT
          value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/logout
        - name: OIDC_ISSUER_DISCOVER
          value: 'true'
        - name: OIDC_AUTH_ENDPOINT
          value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/auth
        - name: OIDC_TOKEN_ENDPOINT
          value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/token
        - name: OIDC_USERINFO_ENDPOINT
          value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/userinfo
        volumeMounts:
          - name: bookstack
            mountPath: "/var/www/bookstack"
      volumes:
      - name: bookstack
        hostPath:
          path: /home/observer/bookstack-k8s/
---
apiVersion: v1
kind: Service
metadata:
  name: bookstack-svc
  namespace: nc
spec:
  ports:
    - port: 80
      targetPort: 8080
  selector:
    app: bookstack

Hosting Environment

Ubuntu 22.04.5 LTS, k3s

Originally created by @Dyadya-Sasha on GitHub (Apr 24, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario Hi everybody. Today I have noticed one very intresting thing. Images and gifs just disappeared. Just like here https://github.com/BookStackApp/BookStack/issues/4146 However, I didn't change anything regarding DNS or URL. From the very beginning I used the same URL I use now. I run Bookstack in k3s. I can reproduce it very easy. I edit any article and paste an image into it. Then I restart pod and image are gone. When I click on it, it brings me to the page where it says "Image not found". I also checked if a link has httpS - yes, it is https. So, I ask you for help. What should I look for? ### Exact BookStack Version 24.5 ### Log Content ``` --- apiVersion: apps/v1 kind: Deployment metadata: name: bookstack namespace: nc labels: app: bookstack spec: replicas: 1 selector: matchLabels: app: bookstack template: metadata: labels: app: bookstack spec: automountServiceAccountToken: false #Do not mount SA securityContext: runAsUser: 33 runAsGroup: 33 containers: - name: bookstack image: solidnerd/bookstack:24.5 # ports: # - containerPort: 80 env: - name: PUID value: "1000" - name: PGID value: "1000" - name: DB_HOST value: maria-svc - name: DB_PORT value: '3306' - name: DB_USERNAME value: "bookstack" - name: DB_PASSWORD value: 'secret_password' - name: DB_DATABASE value: "bookstack" - name: APP_URL value: https://bookstack.example.ru - name: APP_KEY value: "O8ZXuUe6CcJwL15kItagjxG0fQ4V7Wp9" - name: AUTH_METHOD # Set OIDC to be the authentication method value: oidc - name: AUTH_AUTO_INITIATE value: 'false' - name: OIDC_NAME # Set the display name to be shown on the login button. value: Keycloak - name: OIDC_DISPLAY_NAME_CLAIMS value: name - name: OIDC_CLIENT_ID value: bookstack - name: OIDC_CLIENT_SECRET value: MpIqDSJEILYJ2QzPJs2Sb3P3CvAEOzS7 - name: OIDC_ISSUER value: https://keycloak.example.ru/realms/Home - name: OIDC_END_SESSION_ENDPOINT value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/logout - name: OIDC_ISSUER_DISCOVER value: 'true' - name: OIDC_AUTH_ENDPOINT value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/auth - name: OIDC_TOKEN_ENDPOINT value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/token - name: OIDC_USERINFO_ENDPOINT value: https://keycloak.example.ru/realms/Home/protocol/openid-connect/userinfo volumeMounts: - name: bookstack mountPath: "/var/www/bookstack" volumes: - name: bookstack hostPath: path: /home/observer/bookstack-k8s/ --- apiVersion: v1 kind: Service metadata: name: bookstack-svc namespace: nc spec: ports: - port: 80 targetPort: 8080 selector: app: bookstack ``` ### Hosting Environment Ubuntu 22.04.5 LTS, k3s
OVERLORD added the 🐕 Support label 2026-02-05 09:52:55 +03:00
Author
Owner

@Dyadya-Sasha commented on GitHub (Apr 24, 2025):

This is the log when I insert image in the article

 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:15.042586520Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:14 +0000] "POST /images/gallery HTTP/1.1" 200 2080 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:15.051233082Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:15 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 200 36072 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:27.855425804Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "PUT /ajax/page/46/save-draft HTTP/1.1" 200 1622 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.064161099Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "POST /books/ceph-QxP/page/iostat HTTP/1.1" 302 2088 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.370717317Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /books/ceph-QxP/page/iostat HTTP/1.1" 200 17130 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.401480861Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 304 249 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.754442376Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2024-10/scaled-1680-/oTAimage.png HTTP/1.1" 404 41510 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.952578675Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /manifest.json HTTP/1.1" 200 2362 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"

and this is just after pod restart when I reload the same page and see 404 instead of picture

 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:15.042586520Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:14 +0000] "POST /images/gallery HTTP/1.1" 200 2080 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:15.051233082Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:15 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 200 36072 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:27.855425804Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "PUT /ajax/page/46/save-draft HTTP/1.1" 200 1622 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.064161099Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "POST /books/ceph-QxP/page/iostat HTTP/1.1" 302 2088 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.370717317Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /books/ceph-QxP/page/iostat HTTP/1.1" 200 17130 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.401480861Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 304 249 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.754442376Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2024-10/scaled-1680-/oTAimage.png HTTP/1.1" 404 41510 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
2025-04-24T18:24:28.952578675Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /manifest.json HTTP/1.1" 200 2362 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
@Dyadya-Sasha commented on GitHub (Apr 24, 2025): This is the log when I insert image in the article ``` AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:15.042586520Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:14 +0000] "POST /images/gallery HTTP/1.1" 200 2080 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:15.051233082Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:15 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 200 36072 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:27.855425804Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "PUT /ajax/page/46/save-draft HTTP/1.1" 200 1622 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.064161099Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "POST /books/ceph-QxP/page/iostat HTTP/1.1" 302 2088 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.370717317Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /books/ceph-QxP/page/iostat HTTP/1.1" 200 17130 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.401480861Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 304 249 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.754442376Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2024-10/scaled-1680-/oTAimage.png HTTP/1.1" 404 41510 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.952578675Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /manifest.json HTTP/1.1" 200 2362 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" ``` and this is just after pod restart when I reload the same page and see 404 instead of picture ``` AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:15.042586520Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:14 +0000] "POST /images/gallery HTTP/1.1" 200 2080 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:15.051233082Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:15 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 200 36072 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:27.855425804Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "PUT /ajax/page/46/save-draft HTTP/1.1" 200 1622 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.064161099Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:27 +0000] "POST /books/ceph-QxP/page/iostat HTTP/1.1" 302 2088 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.370717317Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /books/ceph-QxP/page/iostat HTTP/1.1" 200 17130 "https://bookstack.example.ru/books/ceph-QxP/page/iostat/edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.401480861Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2025-04/scaled-1680-/image.png HTTP/1.1" 304 249 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.754442376Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /uploads/images/gallery/2024-10/scaled-1680-/oTAimage.png HTTP/1.1" 404 41510 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025-04-24T18:24:28.952578675Z bookstack:80 10.0.0.24 - - [24/Apr/2025:18:24:28 +0000] "GET /manifest.json HTTP/1.1" 200 2362 "https://bookstack.example.ru/books/ceph-QxP/page/iostat" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" ```
Author
Owner

@Dyadya-Sasha commented on GitHub (Apr 24, 2025):

Also in the beginning of bookstack log right after restart it says

2025-04-24T18:27:21.971961073Z wait-for-db: waiting for maria-svc:3306
2025-04-24T18:27:22.977386527Z wait-for-db: done
2025-04-24T18:27:22.977456738Z Starting Migration...
2025-04-24T18:27:23.232267421Z 
2025-04-24T18:27:23.232311582Z    INFO  Nothing to migrate.  
2025-04-24T18:27:23.232327040Z 
2025-04-24T18:27:23.239318678Z Clearing caches...
2025-04-24T18:27:23.446737628Z 
2025-04-24T18:27:23.446764462Z    INFO  Application cache cleared successfully.  
2025-04-24T18:27:23.446770261Z 
2025-04-24T18:27:23.690600610Z 
2025-04-24T18:27:23.690642178Z    INFO  Compiled views cleared successfully.  
2025-04-24T18:27:23.690653815Z 
2025-04-24T18:27:23.798492829Z AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.0.46. Set the 'ServerName' directive globally to suppress this message
2025-04-24T18:27:23.822138806Z AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.0.46. Set the 'ServerName' directive globally to suppress this message
2025-04-24T18:27:23.833677104Z [Thu Apr 24 18:27:23.833511 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.3.10 configured -- resuming normal operations
2025-04-24T18:27:23.833697421Z [Thu Apr 24 18:27:23.833555 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

However i cannot say if it was the same before problem with images appeared

@Dyadya-Sasha commented on GitHub (Apr 24, 2025): Also in the beginning of bookstack log right after restart it says ``` 2025-04-24T18:27:21.971961073Z wait-for-db: waiting for maria-svc:3306 2025-04-24T18:27:22.977386527Z wait-for-db: done 2025-04-24T18:27:22.977456738Z Starting Migration... 2025-04-24T18:27:23.232267421Z 2025-04-24T18:27:23.232311582Z INFO Nothing to migrate. 2025-04-24T18:27:23.232327040Z 2025-04-24T18:27:23.239318678Z Clearing caches... 2025-04-24T18:27:23.446737628Z 2025-04-24T18:27:23.446764462Z INFO Application cache cleared successfully. 2025-04-24T18:27:23.446770261Z 2025-04-24T18:27:23.690600610Z 2025-04-24T18:27:23.690642178Z INFO Compiled views cleared successfully. 2025-04-24T18:27:23.690653815Z 2025-04-24T18:27:23.798492829Z AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.0.46. Set the 'ServerName' directive globally to suppress this message 2025-04-24T18:27:23.822138806Z AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.0.46. Set the 'ServerName' directive globally to suppress this message 2025-04-24T18:27:23.833677104Z [Thu Apr 24 18:27:23.833511 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.3.10 configured -- resuming normal operations 2025-04-24T18:27:23.833697421Z [Thu Apr 24 18:27:23.833555 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND' ``` However i cannot say if it was the same before problem with images appeared
Author
Owner

@ssddanbrown commented on GitHub (Apr 24, 2025):

Hi @Dyadya-Sasha,

It sounds like volumes and file persistence is maybe not configured correctly in your environment, potentially meaning that user data (like images/attachments) are stuck in the container and maybe being destroyed with it too.

I've never used k3s, and I've barely touched k8s either, so can't say how things are supposed to be done, but the volume configuration looks a bit suspicious to me as it looks like maybe the /var/www/bookstack container path is being mounted, which I would not expect, and is maybe causing trouble.
That docker image advises mounting other specific folders within that location, not the entire /var/www/bookstack path: https://github.com/solidnerd/docker-bookstack?tab=readme-ov-file#volumes

You may need to look into the mounted volume to see if you still have images at all saved to the host/volume path.
Otherwise, you might need to look for a backup with volume (or general host container) data to restore the images if lost.

@ssddanbrown commented on GitHub (Apr 24, 2025): Hi @Dyadya-Sasha, It sounds like volumes and file persistence is maybe not configured correctly in your environment, potentially meaning that user data (like images/attachments) are stuck in the container and maybe being destroyed with it too. I've never used k3s, and I've barely touched k8s either, so can't say how things are supposed to be done, but the volume configuration looks a bit suspicious to me as it looks like maybe the `/var/www/bookstack` container path is being mounted, which I would not expect, and is maybe causing trouble. That docker image advises mounting other specific folders within that location, not the entire `/var/www/bookstack` path: https://github.com/solidnerd/docker-bookstack?tab=readme-ov-file#volumes You may need to look into the mounted volume to see if you still have images at all saved to the host/volume path. Otherwise, you might need to look for a backup with volume (or general host container) data to restore the images if lost.
Author
Owner

@Dyadya-Sasha commented on GitHub (Apr 25, 2025):

Hi @Dyadya-Sasha,

It sounds like volumes and file persistence is maybe not configured correctly in your environment, potentially meaning that user data (like images/attachments) are stuck in the container and maybe being destroyed with it too.

I've never used k3s, and I've barely touched k8s either, so can't say how things are supposed to be done, but the volume configuration looks a bit suspicious to me as it looks like maybe the /var/www/bookstack container path is being mounted, which I would not expect, and is maybe causing trouble. That docker image advises mounting other specific folders within that location, not the entire /var/www/bookstack path: https://github.com/solidnerd/docker-bookstack?tab=readme-ov-file#volumes

You may need to look into the mounted volume to see if you still have images at all saved to the host/volume path. Otherwise, you might need to look for a backup with volume (or general host container) data to restore the images if lost.

Indeed, for some reason all the attached images were stuck inside container. Dunno when it started but it was working with mounted /var/www/bookstack over a couple of years. Now I changed mounted volumes to

volumeMounts:
          - name: bookstack-pub-uploads
            mountPath: "/var/www/bookstack/public/uploads"
          - name: bookstack-storage-uploads
            mountPath: "/var/www/bookstack/storage/uploads"

and all the images started to appear on host storage.

@Dyadya-Sasha commented on GitHub (Apr 25, 2025): > Hi [@Dyadya-Sasha](https://github.com/Dyadya-Sasha), > > It sounds like volumes and file persistence is maybe not configured correctly in your environment, potentially meaning that user data (like images/attachments) are stuck in the container and maybe being destroyed with it too. > > I've never used k3s, and I've barely touched k8s either, so can't say how things are supposed to be done, but the volume configuration looks a bit suspicious to me as it looks like maybe the `/var/www/bookstack` container path is being mounted, which I would not expect, and is maybe causing trouble. That docker image advises mounting other specific folders within that location, not the entire `/var/www/bookstack` path: https://github.com/solidnerd/docker-bookstack?tab=readme-ov-file#volumes > > You may need to look into the mounted volume to see if you still have images at all saved to the host/volume path. Otherwise, you might need to look for a backup with volume (or general host container) data to restore the images if lost. Indeed, for some reason all the attached images were stuck inside container. Dunno when it started but it was working with mounted /var/www/bookstack over a couple of years. Now I changed mounted volumes to ``` volumeMounts: - name: bookstack-pub-uploads mountPath: "/var/www/bookstack/public/uploads" - name: bookstack-storage-uploads mountPath: "/var/www/bookstack/storage/uploads" ``` and all the images started to appear on host storage.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5269