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

Cannot install tools from tool_shed with ansible #36

Open
pkrog opened this issue Nov 6, 2019 · 2 comments
Open

Cannot install tools from tool_shed with ansible #36

pkrog opened this issue Nov 6, 2019 · 2 comments
Assignees

Comments

@pkrog
Copy link
Member

pkrog commented Nov 6, 2019

failed: [w4mprod-qwerty] (item={
	'name': 'w4mclassfilter',
	'owner': 'eschen42',
	'tool_panel_section_id':
	'contribution_ALL',
	'revisions': ['9f5c0e23c205'],
	'github': {'repos': 'https://github.com/HegemanLab/w4mclassfilter_galaxy_wrapper',
	           'prod': 'v0.98.11',
	           'dev': 'master'},
	'xml': 'tools/w4mclassfilter/w4mclassfilter.xml'})
	=> {"ansible_loop_var": "item",
		"changed": false,
		"cmd": ["/tmp/venv/bin/shed-tools",
		         "install",
				 "-y",
				 "github:\n    dev: master\n    prod: v0.98.11\n    repos: https://github.com/HegemanLab/w4mclassfilter_galaxy_wrapper\nname: w4mclassfilter\nowner: eschen42\nrevisions:\n- 9f5c0e23c205\ntool_panel_section_id: contribution_ALL\nxml: tools/w4mclassfilter/w4mclassfilter.xml\n",
				 "-a",
				 "zapoto",
				 "-g",
				 "http://127.0.0.1:8080"],
		 "delta": "0:00:00.681857",
		 "end": "2019-12-02 13:23:52.162938",
		 "failed_when_result": true,
		 "item": {"github": {"dev": "master",
			                 "prod": "v0.98.11",
				                 "repos": "https://github.com/HegemanLab/w4mclassfilter_galaxy_wrapper"},
			 "name": "w4mclassfilter",
			 "owner": "eschen42",
			 "revisions": ["9f5c0e23c205"],
			 "tool_panel_section_id": "contribution_ALL",
			 "xml": "tools/w4mclassfilter/w4mclassfilter.xml"},
		"msg": "non-zero return code",
		"rc": 1,
		"start": "2019-12-02 13:23:51.481081",
		"stderr": "(1/1) Installing repository w4mclassfilter from eschen42 to section \"contribution_ALL\" at revision 9f5c0e23c205 (TRT: 0:00:00.524645)\r\nTraceback (most recent call last):\n  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 609, in install_repositories\n    install_repository_revision(repository, self.tsc)\n  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 428, in install_repository_revision\n    response = tool_shed_client.install_repository_revision(**repository)\n  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxy/toolshed/__init__.py\", line 146, in install_repository_revision\n    return self._post(url=url, payload=payload)\n  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxy/client.py\", line 160, in _post\n    files_attached=files_attached)\n  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxyclient.py\", line 146, in make_post_request\n    body=r.text, status_code=r.status_code)\nbioblend.ConnectionError: Unexpected HTTP status code: 403: {\"err_msg\": \"You are not authorized to request the latest installable revision for a repository in this Galaxy instance.\", \"err_code\": 403006}\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/venv/bin/shed-tools\", line 8, in <module>\n    sys.exit(main())\n  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 744, in main\n    install_tool_manager.install_repositories()\n  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 619, in install_repositories\n    if \"504\" in e.message:\nAttributeError: 'ConnectionError' object has no attribute 'message'",
		"stderr_lines": ["(1/1) Installing repository w4mclassfilter from eschen42 to section \"contribution_ALL\" at revision 9f5c0e23c205 (TRT: 0:00:00.524645)",
			"Traceback (most recent call last):",
			"  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 609, in install_repositories",
			"    install_repository_revision(repository, self.tsc)",
			"  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 428, in install_repository_revision",
			"    response = tool_shed_client.install_repository_revision(**repository)",
			"  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxy/toolshed/__init__.py\", line 146, in install_repository_revision",
			"    return self._post(url=url, payload=payload)",
			"  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxy/client.py\", line 160, in _post",
			"    files_attached=files_attached)",
			"  File \"/tmp/venv/lib/python3.6/site-packages/bioblend/galaxyclient.py\", line 146, in make_post_request",
			"    body=r.text, status_code=r.status_code)",
			"bioblend.ConnectionError: Unexpected HTTP status code: 403: {\"err_msg\": \"You are not authorized to request the latest installable revision for a repository in this Galaxy instance.\", \"err_code\": 403006}",
			"",
			"During handling of the above exception, another exception occurred:",
			"",
			"Traceback (most recent call last):",
			"  File \"/tmp/venv/bin/shed-tools\", line 8, in <module>",
			"    sys.exit(main())",
			"  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 744, in main",
			"    install_tool_manager.install_repositories()",
			"  File \"/tmp/venv/lib/python3.6/site-packages/ephemeris/shed_tools.py\", line 619, in install_repositories",
			"    if \"504\" in e.message:",
			"AttributeError: 'ConnectionError' object has no attribute 'message'"],
		"stdout": "",
		"stdout_lines": []}
@pkrog pkrog self-assigned this Nov 6, 2019
@pkrog
Copy link
Member Author

pkrog commented Dec 2, 2019

Hi @lecorguille , any idea why I receive the message "You are not authorized to request the latest installable revision for a repository in this Galaxy instance." while I'm trying to install tools through admin API key using the Ansible book galaxy-tools?

@lecorguille
Copy link
Member

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