Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting for site to load #3

Open
guyleonard opened this issue Mar 29, 2017 · 3 comments
Open

Waiting for site to load #3

guyleonard opened this issue Mar 29, 2017 · 3 comments

Comments

@guyleonard
Copy link

guyleonard commented Mar 29, 2017

The demo script seems to run through correctly for all steps up to 9, which just sits at a loading screen and gives this error "This site can’t be reached" when trying to access it in browser.

Step 8. Startup GenomeHubs Ensembl mirror
c8f00fceb15df551521befcd312d1c60207c32fcf3ab7c89d975656792f0c008
Step 9. Waiting for site to load
........................................

Sorry, not sure what more data I can give to you to troubleshoot this...I still need to find a machine where I can run as UID1000 maybe it is related?

@sujaikumar
Copy link

sujaikumar commented Mar 29, 2017

Hi Guy

Thanks for pointing this out. We've seen this on rare occasions too. The ensembl startup script doesn't always load the images correctly, so it needs to be restarted repeatedly till it does so, and this loop at the bottom of https://github.com/genomehubs/demo/blob/master/import.sh is where the script is getting stuck while waiting for the site to load images correctly:

until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8081//i/placeholder.png); do
    printf '.'
    sleep 5
done &&

So the solution for now is to terminate the import.sh script and manually rerun the genomehubs ensembl docker container like so:

docker stop genomehubs-ensembl && docker rm genomehubs-ensembl

docker run -d \
           --name genomehubs-ensembl \
           -v ~/demo/genomehubs-import/ensembl/gh-conf:/ensembl/conf:ro \
           --link genomehubs-mysql \
           -p 8081:8080 \
           genomehubs/easy-mirror:17.03.23

If that doesn't work, then just stop the docker container and try again as above. (Sorry - we haven't been able to figure out ANY other way of getting it to work other than restarting it till it does - it seems to be an artifact of the caching optimisations done by ensembl - but I could be wrong).

@guyleonard
Copy link
Author

Hey Sujai,

Thanks for the super quick response! No worries, these things sometimes happen... I will give that a try.

However in the meantime I spun up a Ubuntu Xenial AMI and tested the demo there and it works perfectly, so it's either a local condition that I have that is stopping the demo from completing, or it is back to the not being UID1000...

Cheers,

Guy

@sujaikumar
Copy link

Cool! Glad the brand new xenial ami worked fine. That's how we tested it too, so we haven't found all the places GenomeHubs could fail in non-standard situations and how to recover from those failures...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants