APP_URL is changed after update docker | APP_URL no longer persistant after reboot! #1985

Closed
opened 2026-02-05 02:24:03 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @SupaYoshi on GitHub (Dec 20, 2020).

Describe the bug
After restarting docker today I noticed I could no longer access my wiki, I checked the config for bookstack on two instances of the wiki I am running and in both the APP_URL had changed to my public IP. As I am using bookstack behind traefik, I prefer to keep it the way it was... but that did not let me do this as it was persistant to reset it to the public IP after the restart of the container again! My wiki is now not working since the latest update!

EDIT:
When I set the APP_URL manually correctly (as traefik serves it) it works again, yet after a docker-restart of the container, bookstack will now replace the APP_URL by my public IP and that will not work obviously, can BOOKSTACK, please leave my APP_URL alone?
Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings):
  • PHP Version:
  • Hosting Method (Nginx/Apache/Docker):

Additional context
Add any other context about the problem here.

Originally created by @SupaYoshi on GitHub (Dec 20, 2020). **Describe the bug** After restarting docker today I noticed I could no longer access my wiki, I checked the config for bookstack on two instances of the wiki I am running and in both the APP_URL had changed to my public IP. As I am using bookstack behind traefik, I prefer to keep it the way it was... but that did not let me do this as it was persistant to reset it to the public IP after the restart of the container again! My wiki is now not working since the latest update! EDIT: When I set the APP_URL manually correctly (as traefik serves it) it works again, yet after a docker-restart of the container, bookstack will now replace the APP_URL by my public IP and that will not work obviously, can BOOKSTACK, please leave my APP_URL alone? **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): - PHP Version: - Hosting Method (Nginx/Apache/Docker): **Additional context** Add any other context about the problem here.
Author
Owner

@ssddanbrown commented on GitHub (Dec 20, 2020):

Hi @SupaYoshi,
Am I right in thinking that you're using the linuxserver.io image? If so, you'll need to open an issue on their repo since we don't manage and production docker images in the core project.

https://github.com/linuxserver/docker-bookstack

@ssddanbrown commented on GitHub (Dec 20, 2020): Hi @SupaYoshi, Am I right in thinking that you're using the linuxserver.io image? If so, you'll need to open an issue on their repo since we don't manage and production docker images in the core project. https://github.com/linuxserver/docker-bookstack
Author
Owner

@Biepa commented on GitHub (Dec 20, 2020):

@SupaYoshi Do you added the APP_URL environment variable in your docker run or docker-compose? Mine got reset, because it wasn't set there like shown here: https://hub.docker.com/r/linuxserver/bookstack

Unfortunalety my instance of bookstack is still not accesible.

@Biepa commented on GitHub (Dec 20, 2020): @SupaYoshi Do you added the APP_URL environment variable in your docker run or docker-compose? Mine got reset, because it wasn't set there like shown here: https://hub.docker.com/r/linuxserver/bookstack Unfortunalety my instance of bookstack is still not accesible.
Author
Owner

@Biepa commented on GitHub (Dec 20, 2020):

Cleared cache of Bookstack and it's working again.

@Biepa commented on GitHub (Dec 20, 2020): Cleared cache of Bookstack and it's working again.
Author
Owner

@xSTUDDSx commented on GitHub (Dec 21, 2020):

Having a similar issue. After the latest update, the app is no longer accessible. I noticed the change for the required APP_URL so I added that to my docker-compose, however it is still inaccessible. Have tried clearing cache as well as deleting and recreating the container to no avail.

Not seeing anything in the logs either.

s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-envfile: executing... , [cont-init.d] 01-envfile: exited 0., [cont-init.d] 10-adduser: executing... , , -------------------------------------, _ (), | | ___ _ __, | | / __| | | / \ , | | \__ \ | | | () |, |_| |___/ |_| \__/, , , Brought to you by linuxserver.io, -------------------------------------, , To support LSIO projects visit:, https://www.linuxserver.io/donate/, -------------------------------------, GID/UID, -------------------------------------, , User uid: 1001, User gid: 1001, -------------------------------------, , [cont-init.d] 10-adduser: exited 0., [cont-init.d] 20-config: executing... , [cont-init.d] 20-config: exited 0., [cont-init.d] 30-keygen: executing... , using keys found in /config/keys, [cont-init.d] 30-keygen: exited 0., [cont-init.d] 50-config: executing... , App Key found - setting variable for seds, Running config - db_user set, /var/run/s6/etc/cont-init.d/50-config: line 86: warning: command substitution: ignored null byte in input, /var/run/s6/etc/cont-init.d/50-config: line 86: warning: command substitution: ignored null byte in input, Nothing to migrate., [cont-init.d] 50-config: exited 0., [cont-init.d] 99-custom-files: executing... , [custom-init] no custom files found exiting..., [cont-init.d] 99-custom-files: exited 0., [cont-init.d] done., [services.d] starting services, [services.d] done.,

@xSTUDDSx commented on GitHub (Dec 21, 2020): Having a similar issue. After the latest update, the app is no longer accessible. I noticed the change for the required APP_URL so I added that to my docker-compose, however it is still inaccessible. Have tried clearing cache as well as deleting and recreating the container to no avail. Not seeing anything in the logs either. ` s6-init] making user provided files available at /var/run/s6/etc...exited 0., [s6-init] ensuring user provided files have correct perms...exited 0., [fix-attrs.d] applying ownership & permissions fixes..., [fix-attrs.d] done., [cont-init.d] executing container initialization scripts..., [cont-init.d] 01-envfile: executing... , [cont-init.d] 01-envfile: exited 0., [cont-init.d] 10-adduser: executing... , , -------------------------------------, _ (), | | ___ _ __, | | / __| | | / \ , | | \__ \ | | | () |, |_| |___/ |_| \__/, , , Brought to you by linuxserver.io, -------------------------------------, , To support LSIO projects visit:, https://www.linuxserver.io/donate/, -------------------------------------, GID/UID, -------------------------------------, , User uid: 1001, User gid: 1001, -------------------------------------, , [cont-init.d] 10-adduser: exited 0., [cont-init.d] 20-config: executing... , [cont-init.d] 20-config: exited 0., [cont-init.d] 30-keygen: executing... , using keys found in /config/keys, [cont-init.d] 30-keygen: exited 0., [cont-init.d] 50-config: executing... , App Key found - setting variable for seds, Running config - db_user set, /var/run/s6/etc/cont-init.d/50-config: line 86: warning: command substitution: ignored null byte in input, /var/run/s6/etc/cont-init.d/50-config: line 86: warning: command substitution: ignored null byte in input, Nothing to migrate., [cont-init.d] 50-config: exited 0., [cont-init.d] 99-custom-files: executing... , [custom-init] no custom files found exiting..., [cont-init.d] 99-custom-files: exited 0., [cont-init.d] done., [services.d] starting services, [services.d] done., `
Author
Owner

@xSTUDDSx commented on GitHub (Dec 21, 2020):

Nevermind! Looks like it just took awhile to notice the changes. It's working again.

@xSTUDDSx commented on GitHub (Dec 21, 2020): Nevermind! Looks like it just took awhile to notice the changes. It's working again.
Author
Owner

@ssddanbrown commented on GitHub (Dec 29, 2020):

Will therefore close this since the original issue creator has not responded and it looks like this was generally due to a change in a specific hosting setup.

@ssddanbrown commented on GitHub (Dec 29, 2020): Will therefore close this since the original issue creator has not responded and it looks like this was generally due to a change in a specific hosting setup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1985