question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search / download broken after Galaxy Update

See original GitHub issue

Bug Report

SUMMARY

After the Galaxy update over the weekend, I can no longer download or search for roles on the command line.

STEPS TO REPRODUCE

Taking for example the role https://galaxy.ansible.com/EGI_Foundation/umd

ansible-galaxy install egi_foundation.umd
- downloading role 'umd', owned by egi_foundation
 [WARNING]: - egi_foundation.umd was NOT installed successfully: - sorry, egi_foundation.umd was not found on
https://galaxy.ansible.com.

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
EXPECTED RESULTS

I expected the command-line tool to find and download the role as per usual.

ACTUAL RESULTS

Further investigation shows that the API is simply not responding :

(molecule) becker@tank:~/Ops/EGI/ansible-role-ui$ ansible-galaxy -vvv search brucellino
ansible-galaxy 2.6.0
  config file = /home/becker/Ops/EGI/ansible-role-ui/ansible.cfg
  configured module search path = [u'/home/becker/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/becker/molecule/local/lib/python2.7/site-packages/ansible
  executable location = /home/becker/molecule/bin/ansible-galaxy
  python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
Using /home/becker/Ops/EGI/ansible-role-ui/ansible.cfg as config file
Opened /home/becker/.ansible_galaxy
https://galaxy.ansible.com/api/v1/search/roles/?&autocomplete=brucellino&page_size=1000
ERROR! Unexpected Exception, this is probably a bug: ('The read operation timed out',)
the full traceback was:

Traceback (most recent call last):
  File "/home/becker/molecule/bin/ansible-galaxy", line 118, in <module>
    exit_code = cli.run()
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 152, in run
    self.execute()
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/cli/__init__.py", line 155, in execute
    fn()
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 521, in execute_search
    tags=self.options.galaxy_tags, author=self.options.author, page_size=page_size)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 56, in wrapped
    return method(self, *args, **kwargs)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 270, in search_roles
    data = self.__call_galaxy(search_url)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 56, in wrapped
    return method(self, *args, **kwargs)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 93, in __call_galaxy
    timeout=20)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/module_utils/urls.py", line 958, in open_url
    r = urllib_request.urlopen(*urlopen_args)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/home/becker/molecule/local/lib/python2.7/site-packages/ansible/module_utils/urls.py", line 340, in https_open
    return self.do_open(CustomHTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 438, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 394, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "/usr/lib/python2.7/ssl.py", line 772, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 659, in read
    v = self._sslobj.read(len)
SSLError: ('The read operation timed out',)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chouseknechtcommented, Jul 5, 2018
1reaction
chouseknechtcommented, Jul 5, 2018

Not clear on what the issue is. I can bring up the role in question here, without any issues or timeouts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Software update has broken my phone - Samsung Community
Hi everyone, My phone prompted me to do an urgent update yesterday morning, and since then it has developed some major problems.
Read more >
How to fix a Samsung that won't download apps - Asurion
To update your software, go to Settings and tap Software update or System updates. Then tap Check for system updates.
Read more >
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
8 Best Ways to Fix Galaxy Store Not Opening or Working on ...
As you use the Galaxy Store app to download and update apps, the app tends to collect cache data in order to improve...
Read more >
Why Won't My Samsung Galaxy S10 Update? 4 Ways to Fix It
One of the first things you should do is ensure that your Galaxy S10 is connected to a reliable Wi-Fi network. Updates might...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found