Question: welcome.html Welcome Page not updating in Galaxy Docker
0
gravatar for steve
2.2 years ago by
steve • 30
NYC
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?

docker • 882 views
ADD COMMENT • link • written 2.2 years ago by steve • 30
  1. Try restarting nginx.
  2. Have a look in /etc/galaxy/web, since that's the copy that's served.
ADD REPLY • link written 2.2 years ago by Devon Ryan • 1.9k
1

Finally, I am updating the file /etc/galaxy/web/welcome.html directly, and the changes appear immediately in Galaxy upon refresh.

ADD REPLY • link written 2.2 years ago by steve • 30

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.

ADD REPLY • link written 2.2 years ago by Devon Ryan • 1.9k

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 and welcome_image.png are located in /export/, and have galaxy user ownership and/or global read permissions (chown galaxy:galaxy welcome.html and chmod 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 the welcome_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.

ADD REPLY • link modified 2.2 years ago • written 2.2 years ago by steve • 30

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

ADD REPLY • link modified 2.2 years ago • written 2.2 years ago by Bjoern Gruening ♦ 5.1k

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 ran service nginx restart, which gave the message: * Restarting nginx nginx but then hung for several minutes with no progress. I ran service nginx reload followed by service nginx status which returns * nginx is not running. Finally did service nginx start but it is hanging now with no messages, not sure if its working or not.

ADD REPLY • link written 2.2 years ago by steve • 30

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.

ADD REPLY • link modified 2.2 years ago • written 2.2 years ago by steve • 30

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?

ADD REPLY • link written 2.2 years ago by Bjoern Gruening ♦ 5.1k

yes I was able to modify it and have my own show up once, but subsequent changes did not show up.

ADD REPLY • link modified 2.2 years ago • written 2.2 years ago by steve • 30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 177 users visited in the last hour