Skip to content

Catch failures on requests to the installed repo list when doing post-timeout spinning on installation in shed-tools#97

Merged
rhpvorderman merged 1 commit intogalaxyproject:masterfrom
natefoo:catch-repo-list-failure
Jun 8, 2018
Merged

Catch failures on requests to the installed repo list when doing post-timeout spinning on installation in shed-tools#97
rhpvorderman merged 1 commit intogalaxyproject:masterfrom
natefoo:catch-repo-list-failure

Conversation

@natefoo
Copy link
Copy Markdown
Member

@natefoo natefoo commented Jun 7, 2018

I was frequently getting stuff like this:

(ephemeris)nate@weyerbacher% shed-tools install -t diffbind-upgrade.yaml -g https://test-installer.galaxyproject.org/ -v
Storing log file in: /tmp/ephemeris_pPBMw4
(1/1) Installing repository diffbind from bgruening to section "peak_calling" at revision c97a786e8fb5 (TRT: 0:00:58.435025)
Timeout during install of diffbind, extending wait to 1h
Traceback (most recent call last):
  File "/home/nate/.virtualenvs/ephemeris/bin/shed-tools", line 11, in <module>
    sys.exit(main())
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/ephemeris/shed_tools.py", line 937, in main
    install_tool_manager.install_repositories()
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/ephemeris/shed_tools.py", line 728, in install_repositories
    success = wait_for_install(repository=repository, tool_shed_client=self.tsc, timeout=3600)
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/ephemeris/shed_tools.py", line 543, in wait_for_install
    finished = install_done(repository, tool_shed_client)
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/ephemeris/shed_tools.py", line 536, in install_done
    installed_repo_list = tool_shed_client.get_repositories()
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/bioblend/galaxy/toolshed/__init__.py", line 36, in get_repositories
    return self._get()
  File "/home/nate/.virtualenvs/ephemeris/local/lib/python2.7/site-packages/bioblend/galaxy/client.py", line 128, in _get
    status_code=r.status_code)
bioblend.ConnectionError: GET: error 502: '<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.12.2</center>\r\n</body>\r\n</html>\r\n', 0 attempts left: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.12.2</center>
</body>
</html>

(ephemeris)nate@weyerbacher%

post-timeout spinning on installation in shed-tools.
Copy link
Copy Markdown
Contributor

@rhpvorderman rhpvorderman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Will pull as soon as Travis CI has finished

@rhpvorderman rhpvorderman merged commit 668a8c9 into galaxyproject:master Jun 8, 2018
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

Successfully merging this pull request may close these issues.

2 participants