Question: welcome.html Welcome Page not updating in Galaxy Docker
0
steve • 30 wrote:
I am having the same problem as described here and here but these are not solving the problem. I have a welcome.html
file located here:
root@427f3913aa93:/export# ll welcome.html
-rw-r--r--. 1 galaxy galaxy 1986 Jul 21 12:47 welcome.html
root@427f3913aa93:/export# readlink -f welcome.html
/export/welcome.html
At first, I was able to edit the HTML file and get a custom message to appear. However, any subsequent updates are not appearing. I have tried refreshing the browser, loading the page in a new browser, loading on other computers, etc., the old page is still there. I have even renamed the file to something else so that it would not be found by Galaxy, but still the old page appears. I have restarted Galaxy several times. No change. Any ideas?
Finally, I am updating the file
/etc/galaxy/web/welcome.html
directly, and the changes appear immediately in Galaxy upon refresh.I'm glad at least that that works. I'll have another look at the what the startup script is doing when I upgrade our docker Galaxy instances in a couple weeks.
OK, I think I may have figured some things out. To get it to work, I need to: 1) make sure my custom
welcome.html
andwelcome_image.png
are located in/export/
, and havegalaxy
user ownership and/or global read permissions (chown galaxy:galaxy welcome.html
andchmod a+r welcome.html
, run from within the Docker container). 2) (re)start the Galaxy Docker container, causing those files to be copied to/etc/galaxy/web
from which they are used to generate the welcome page. You can actually see this if you right-click thewelcome_image.png
on the page to Open in Tab, the address goes to/etc/galaxy/web
. Here is a strange thing: while Galaxy container was starting & my/export/welcome_image.png
had only user + group read permissions, it very briefly appeared on the page while I was pounding the 'refresh' button in the browser, then quickly vanished again until I fixed the permissions; perhaps suggesting that at some point, the/export/welcome*
files are being displayed, before the files are copied & used from/etc/galaxy/web
, with different permission requirements? Not completely sure.Hi,
glad you figured it out. The file is copied during container startup, see here: https://github.com/galaxyproject/ansible-galaxy-extras/blob/master/templates/export_user_files.py.j2#L70
I think it would be more robust if we also change the permissions after copying.
https://github.com/galaxyproject/ansible-galaxy-extras/pull/113
Sorry for my late reply was travelling, Bjoern
I deleted the copy that was present in
/etc/galaxy/web
, now a 404 Error Message displays in the pane which held the welcome.html. I have been trying to restart nginx but it keeps hanging up, cannot tell if it is working or not. From within the Docker container, I ranservice nginx restart
, which gave the message:* Restarting nginx nginx
but then hung for several minutes with no progress. I ranservice nginx reload
followed byservice nginx status
which returns* nginx is not running
. Finally didservice nginx start
but it is hanging now with no messages, not sure if its working or not.Additionally, after those previous steps trying to restart nginx, I restarted the entire Docker Galaxy container. Strangely, my
/export/welcome.html
file is now gone completely.What irritates me is that the first page was shown, so you could actually get your own welcome.html page in? But any additional modifications don't have any effect?
yes I was able to modify it and have my own show up once, but subsequent changes did not show up.