Galaxy: Can not import my role

Created on 16 Jun 2018  路  3Comments  路  Source: ansible/galaxy

Bug Report

SUMMARY

I updated my role and galaxy.ansible.com seems to not be able to import it.

My role: https://github.com/gforcada/ansible-compile-python

STEPS TO REPRODUCE

Do a commit and tag a role and go to the galaxy import roles functionality.

It keeps spinning for a while, and afterwards complains with:

Starting import 251965: role_name=compile-python repo=gforcada/ansible-compile-python
Import timed out, please try again. If you continue seeing this message you may have a syntax error in your meta/main.yml file. 

I did import that role quite a few times, and the meta/main.yml file hasn't been touched between the last import and the current one that fails.

EXPECTED RESULTS

That the role is successfully imported in galaxy.ansible.com

ACTUAL RESULTS

An error message is printed, see above.

prioritlow typbug

All 3 comments

When the import process attempts to access the GitHub API, it seems to be having trouble with the token we have in our database for you. Here's the error:

Role 10071: INFO - Starting import 253856: role_name=compile-python repo=gforcada/ansible-compile-python
[2018-06-20 15:17:14,687: INFO/MainProcess] Task galaxy.main.celerytasks.tasks.import_role[6dbb77e1-1efc-4a56-ae4d-f3e4927123bb] raised expected: BadCredentialsException(401, {u'documentation_url': u'https://developer.github.com/v3', u'message': u'Bad credentials'})

I suspect if you go to https://galaxy.ansible/com and logout/login, that should refresh the OAuth token.

@chouseknecht thanks! That was it.

@chouseknecht as a post mortem, a more explanatory error message would be helpful :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chouseknecht picture chouseknecht  路  5Comments

jeremyn picture jeremyn  路  6Comments

cfawcett82 picture cfawcett82  路  4Comments

robertdebock picture robertdebock  路  7Comments

jeffrey4l picture jeffrey4l  路  5Comments