App url changed - all images are broken #3408

Closed
opened 2026-02-05 06:37:18 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @pmvamsi-coder on GitHub (Dec 17, 2022).

Describe the Bug

I am running Bookstack app on docker. I changed the app URL then all the links are broken and unable to access.

Steps to Reproduce

App URL was changed but all image links are broken.

Expected Behaviour

It should align automatically if the app URL changes.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v22.11.1

PHP Version

No response

Hosting Environment

Debian

Originally created by @pmvamsi-coder on GitHub (Dec 17, 2022). ### Describe the Bug I am running Bookstack app on docker. I changed the app URL then all the links are broken and unable to access. ### Steps to Reproduce App URL was changed but all image links are broken. ### Expected Behaviour It should align automatically if the app URL changes. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v22.11.1 ### PHP Version _No response_ ### Hosting Environment Debian
OVERLORD added the 🐛 Bug label 2026-02-05 06:37:18 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2022):

Hi @pmvamsi-coder,
Please see the "Update System URL" section on this page:
https://www.bookstackapp.com/docs/admin/commands/#update-system-url

@ssddanbrown commented on GitHub (Dec 17, 2022): Hi @pmvamsi-coder, Please see the "Update System URL" section on this page: https://www.bookstackapp.com/docs/admin/commands/#update-system-url
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 17, 2022):

Even after running the update url command its showing the same broken images
image

getting as above

@pmvamsi-coder commented on GitHub (Dec 17, 2022): Even after running the update url command its showing the same broken images <img width="1622" alt="image" src="https://user-images.githubusercontent.com/61499149/208254005-b7782734-8c90-4fb9-84d6-0347fadd01ad.png"> getting as above
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 17, 2022):

it updated the APP_URL and URLs in the database but still those images are still broken 😢

@pmvamsi-coder commented on GitHub (Dec 17, 2022): it updated the APP_URL and URLs in the database but still those images are still broken 😢
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2022):

  • Okay, How different is the current URL for images compared to what would be expected? If you open up a non-loading image in a new tab does the URL look incorrect?
  • Since you mention using docker, did you have a mapped volume to retain container data? Can you see the image files within that mapped volume folder?
@ssddanbrown commented on GitHub (Dec 17, 2022): - Okay, How different is the current URL for images compared to what would be expected? If you open up a non-loading image in a new tab does the URL look incorrect? - Since you mention using docker, did you have a mapped volume to retain container data? Can you see the image files within that mapped volume folder?
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 17, 2022):

When I open the image url in the new tab it's showing the updated one only.

Images are there in the attached docker volume folder. Container configs are also same just changed the APP_URL

@pmvamsi-coder commented on GitHub (Dec 17, 2022): When I open the image url in the new tab it's showing the updated one only. Images are there in the attached docker volume folder. Container configs are also same just changed the APP_URL
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2022):

When I open the image url in the new tab it's showing the updated one only.

What exactly is meant by that? I would expect the image URL to follow the format <APP_URL>/uploads/images/*. Does the URL differ to that? If so, how?

@ssddanbrown commented on GitHub (Dec 17, 2022): > When I open the image url in the new tab it's showing the updated one only. What exactly is meant by that? I would expect the image URL to follow the format `<APP_URL>/uploads/images/*`. Does the URL differ to that? If so, how?
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 17, 2022):

I mean the image url getting is the new one (with updated APP_URL) but images are not getting displayed in the pages or book covers and profiles pic as well

@pmvamsi-coder commented on GitHub (Dec 17, 2022): I mean the image url getting is the new one (with updated APP_URL) but images are not getting displayed in the pages or book covers and profiles pic as well
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2022):

Okay, does the new URL look valid, follow the format I shared above? With no other issues like double slashes or extra parts in the URL? Examples would be good if possible.

@ssddanbrown commented on GitHub (Dec 17, 2022): Okay, does the new URL look valid, follow the format I shared above? With no other issues like double slashes or extra parts in the URL? Examples would be good if possible.
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 17, 2022):

Below is the link I am getting after clicking on the image.
https://pmv-bookstack.techsthal.online/uploads/images/gallery/2022-12/EcXimage.png
But I am getting the error like this
image

@pmvamsi-coder commented on GitHub (Dec 17, 2022): Below is the link I am getting after clicking on the image. **https://pmv-bookstack.techsthal.online/uploads/images/gallery/2022-12/EcXimage.png** But I am getting the error like this ![image](https://user-images.githubusercontent.com/61499149/208260457-f1170b8b-568a-4292-a946-fe13a5de814c.png)
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2022):

Within your mounted volume folder can you find that EcXimage.png file then confirm it's directory (relative to root volume path).
Also, can you confirm if you have any STORAGE_* options set in your docker environment or an .env file and, if so, confirm their values if possible.

@ssddanbrown commented on GitHub (Dec 17, 2022): Within your mounted volume folder can you find that `EcXimage.png` file then confirm it's directory (relative to root volume path). Also, can you confirm if you have any `STORAGE_*` options set in your docker environment or an `.env` file and, if so, confirm their values if possible.
Author
Owner

@pmvamsi-coder commented on GitHub (Dec 18, 2022):

I redeployed the whole setup from the backup and it works now.. Thanks for the quick response 😄

@pmvamsi-coder commented on GitHub (Dec 18, 2022): I redeployed the whole setup from the backup and it works now.. Thanks for the quick response 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3408