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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download some roles (ansible-galaxy, opcache-dashboard, mongo-express) #166

Closed
Kocal opened this issue Jul 9, 2019 · 9 comments

Comments

Projects
None yet
2 participants
@Kocal
Copy link
Contributor

commented Jul 9, 2019

Hi, I'm not sure if I should open this issue here but I didn't think of a better than here 馃槄

I'm currently facing an issue when setuping a VM where the step manala.ansible-galaxy : roles > Install fails.

I've tried to manually run sudo /usr/bin/alt-galaxy install --role-file=/tmp/manala_ansible_galaxy_roles.yml --roles-path=/etc/ansible/roles --force and it output:

Output log
-  downloading role 'ansible-galaxy', owned by manala
ERROR!  Failed to determine latest version for role [manala.ansible-galaxy] - role not found
-  manala.ansible-galaxy install failed
-  downloading role 'skeleton', owned by manala
-  downloading role from https://github.com/manala/ansible-role-skeleton/archive/1.0.32.tar.gz
-  extracting manala.skeleton to /etc/ansible/roles/manala.skeleton
-  adding dependency: manala.merge
-  adding dependency: manala.motd
-  adding dependency: manala.timezone
-  adding dependency: manala.locales
-  adding dependency: manala.environment
-  adding dependency: manala.apt
-  adding dependency: manala.ssh
-  adding dependency: manala.git
-  adding dependency: manala.zsh
-  adding dependency: manala.ohmyzsh
-  adding dependency: manala.vim
-  adding dependency: manala.alternatives
-  adding dependency: manala.files
-  adding dependency: manala.make
-  adding dependency: manala.mailhog
-  adding dependency: manala.nodejs
-  adding dependency: manala.npm
-  adding dependency: manala.yarn
-  adding dependency: manala.php
-  adding dependency: manala.composer
-  adding dependency: manala.nginx
-  adding dependency: manala.supervisor
-  adding dependency: manala.phantomjs
-  adding dependency: manala.ngrok
-  adding dependency: manala.ntp
-  adding dependency: manala.java
-  adding dependency: manala.cron
-  adding dependency: manala.opcache-dashboard
-  adding dependency: manala.mysql
-  adding dependency: manala.phpmyadmin
-  adding dependency: manala.postgresql
-  adding dependency: manala.phppgadmin
-  adding dependency: manala.redis
-  adding dependency: manala.phpredisadmin
-  adding dependency: manala.mongodb
-  adding dependency: manala.mongo-express
-  adding dependency: manala.elasticsearch
-  adding dependency: manala.influxdb
-  adding dependency: manala.sqlite
-  adding dependency: manala.thumbor
-  manala.skeleton was installed successfully
-  downloading role 'merge', owned by manala
-  downloading role from https://github.com/manala/ansible-role-merge/archive/1.0.4.tar.gz
-  extracting manala.merge to /etc/ansible/roles/manala.merge
-  manala.merge was installed successfully
-  downloading role 'motd', owned by manala
-  downloading role from https://github.com/manala/ansible-role-motd/archive/1.0.2.tar.gz
-  extracting manala.motd to /etc/ansible/roles/manala.motd
-  manala.motd was installed successfully
-  downloading role 'timezone', owned by manala
-  downloading role from https://github.com/manala/ansible-role-timezone/archive/1.0.2.tar.gz
-  extracting manala.timezone to /etc/ansible/roles/manala.timezone
-  manala.timezone was installed successfully
-  downloading role 'locales', owned by manala
-  downloading role from https://github.com/manala/ansible-role-locales/archive/1.0.4.tar.gz
-  extracting manala.locales to /etc/ansible/roles/manala.locales
-  manala.locales was installed successfully
-  downloading role 'environment', owned by manala
-  downloading role from https://github.com/manala/ansible-role-environment/archive/1.0.5.tar.gz
-  extracting manala.environment to /etc/ansible/roles/manala.environment
-  manala.environment was installed successfully
-  downloading role 'apt', owned by manala
-  downloading role from https://github.com/manala/ansible-role-apt/archive/1.0.37.tar.gz
-  extracting manala.apt to /etc/ansible/roles/manala.apt
-  manala.apt was installed successfully
-  downloading role 'ssh', owned by manala
-  downloading role from https://github.com/manala/ansible-role-ssh/archive/1.0.5.tar.gz
-  extracting manala.ssh to /etc/ansible/roles/manala.ssh
-  manala.ssh was installed successfully
-  downloading role 'git', owned by manala
-  downloading role from https://github.com/manala/ansible-role-git/archive/1.0.4.tar.gz
-  extracting manala.git to /etc/ansible/roles/manala.git
-  manala.git was installed successfully
-  downloading role 'zsh', owned by manala
-  downloading role from https://github.com/manala/ansible-role-zsh/archive/1.0.2.tar.gz
-  extracting manala.zsh to /etc/ansible/roles/manala.zsh
-  manala.zsh was installed successfully
-  downloading role 'ohmyzsh', owned by manala
-  downloading role from https://github.com/manala/ansible-role-ohmyzsh/archive/1.0.9.tar.gz
-  extracting manala.ohmyzsh to /etc/ansible/roles/manala.ohmyzsh
-  manala.ohmyzsh was installed successfully
-  downloading role 'vim', owned by manala
-  downloading role from https://github.com/manala/ansible-role-vim/archive/1.0.3.tar.gz
-  extracting manala.vim to /etc/ansible/roles/manala.vim
-  manala.vim was installed successfully
-  downloading role 'alternatives', owned by manala
-  downloading role from https://github.com/manala/ansible-role-alternatives/archive/1.0.3.tar.gz
-  extracting manala.alternatives to /etc/ansible/roles/manala.alternatives
-  manala.alternatives was installed successfully
-  downloading role 'files', owned by manala
-  downloading role from https://github.com/manala/ansible-role-files/archive/1.0.5.tar.gz
-  extracting manala.files to /etc/ansible/roles/manala.files
-  manala.files was installed successfully
-  downloading role 'make', owned by manala
-  downloading role from https://github.com/manala/ansible-role-make/archive/1.0.2.tar.gz
-  extracting manala.make to /etc/ansible/roles/manala.make
-  manala.make was installed successfully
-  downloading role 'mailhog', owned by manala
-  downloading role from https://github.com/manala/ansible-role-mailhog/archive/1.0.3.tar.gz
-  extracting manala.mailhog to /etc/ansible/roles/manala.mailhog
-  manala.mailhog was installed successfully
-  downloading role 'nodejs', owned by manala
-  downloading role from https://github.com/manala/ansible-role-nodejs/archive/1.0.5.tar.gz
-  extracting manala.nodejs to /etc/ansible/roles/manala.nodejs
-  manala.nodejs was installed successfully
-  downloading role 'npm', owned by manala
-  downloading role from https://github.com/manala/ansible-role-npm/archive/1.0.4.tar.gz
-  extracting manala.npm to /etc/ansible/roles/manala.npm
-  manala.npm was installed successfully
-  downloading role 'yarn', owned by manala
-  downloading role from https://github.com/manala/ansible-role-yarn/archive/1.0.3.tar.gz
-  extracting manala.yarn to /etc/ansible/roles/manala.yarn
-  manala.yarn was installed successfully
-  downloading role 'php', owned by manala
-  downloading role from https://github.com/manala/ansible-role-php/archive/1.0.13.tar.gz
-  extracting manala.php to /etc/ansible/roles/manala.php
-  manala.php was installed successfully
-  downloading role 'composer', owned by manala
-  downloading role from https://github.com/manala/ansible-role-composer/archive/1.0.4.tar.gz
-  extracting manala.composer to /etc/ansible/roles/manala.composer
-  manala.composer was installed successfully
-  downloading role 'nginx', owned by manala
-  downloading role from https://github.com/manala/ansible-role-nginx/archive/1.0.8.tar.gz
-  extracting manala.nginx to /etc/ansible/roles/manala.nginx
-  manala.nginx was installed successfully
-  downloading role 'supervisor', owned by manala
-  downloading role from https://github.com/manala/ansible-role-supervisor/archive/1.0.5.tar.gz
-  extracting manala.supervisor to /etc/ansible/roles/manala.supervisor
-  manala.supervisor was installed successfully
-  downloading role 'phantomjs', owned by manala
-  downloading role from https://github.com/manala/ansible-role-phantomjs/archive/1.0.3.tar.gz
-  extracting manala.phantomjs to /etc/ansible/roles/manala.phantomjs
-  manala.phantomjs was installed successfully
-  downloading role 'ngrok', owned by manala
-  downloading role from https://github.com/manala/ansible-role-ngrok/archive/1.0.3.tar.gz
-  extracting manala.ngrok to /etc/ansible/roles/manala.ngrok
-  manala.ngrok was installed successfully
-  downloading role 'ntp', owned by manala
-  downloading role from https://github.com/manala/ansible-role-ntp/archive/1.0.2.tar.gz
-  extracting manala.ntp to /etc/ansible/roles/manala.ntp
-  manala.ntp was installed successfully
-  downloading role 'java', owned by manala
-  downloading role from https://github.com/manala/ansible-role-java/archive/1.0.3.tar.gz
-  extracting manala.java to /etc/ansible/roles/manala.java
-  manala.java was installed successfully
-  downloading role 'cron', owned by manala
-  downloading role from https://github.com/manala/ansible-role-cron/archive/1.0.4.tar.gz
-  extracting manala.cron to /etc/ansible/roles/manala.cron
-  manala.cron was installed successfully
-  downloading role 'opcache-dashboard', owned by manala
ERROR!  Failed to determine latest version for role [manala.opcache-dashboard] - role not found
-  manala.opcache-dashboard install failed
-  downloading role 'mysql', owned by manala
-  downloading role from https://github.com/manala/ansible-role-mysql/archive/1.0.6.tar.gz
-  extracting manala.mysql to /etc/ansible/roles/manala.mysql
-  manala.mysql was installed successfully
-  downloading role 'phpmyadmin', owned by manala
-  downloading role from https://github.com/manala/ansible-role-phpmyadmin/archive/1.0.5.tar.gz
-  extracting manala.phpmyadmin to /etc/ansible/roles/manala.phpmyadmin
-  manala.phpmyadmin was installed successfully
-  downloading role 'postgresql', owned by manala
-  downloading role from https://github.com/manala/ansible-role-postgresql/archive/1.0.4.tar.gz
-  extracting manala.postgresql to /etc/ansible/roles/manala.postgresql
-  manala.postgresql was installed successfully
-  downloading role 'phppgadmin', owned by manala
-  downloading role from https://github.com/manala/ansible-role-phppgadmin/archive/1.0.5.tar.gz
-  extracting manala.phppgadmin to /etc/ansible/roles/manala.phppgadmin
-  manala.phppgadmin was installed successfully
-  downloading role 'redis', owned by manala
-  downloading role from https://github.com/manala/ansible-role-redis/archive/1.0.5.tar.gz
-  extracting manala.redis to /etc/ansible/roles/manala.redis
-  manala.redis was installed successfully
-  downloading role 'phpredisadmin', owned by manala
-  downloading role from https://github.com/manala/ansible-role-phpredisadmin/archive/1.0.6.tar.gz
-  extracting manala.phpredisadmin to /etc/ansible/roles/manala.phpredisadmin
-  manala.phpredisadmin was installed successfully
-  downloading role 'mongodb', owned by manala
-  downloading role from https://github.com/manala/ansible-role-mongodb/archive/1.0.4.tar.gz
-  extracting manala.mongodb to /etc/ansible/roles/manala.mongodb
-  manala.mongodb was installed successfully
-  downloading role 'mongo-express', owned by manala
ERROR!  Failed to determine latest version for role [manala.mongo-express] - role not found
-  manala.mongo-express install failed
-  downloading role 'elasticsearch', owned by manala
-  downloading role from https://github.com/manala/ansible-role-elasticsearch/archive/1.0.7.tar.gz
-  extracting manala.elasticsearch to /etc/ansible/roles/manala.elasticsearch
-  manala.elasticsearch was installed successfully
-  downloading role 'influxdb', owned by manala
-  downloading role from https://github.com/manala/ansible-role-influxdb/archive/1.0.8.tar.gz
-  extracting manala.influxdb to /etc/ansible/roles/manala.influxdb
-  manala.influxdb was installed successfully
-  downloading role 'sqlite', owned by manala
-  downloading role from https://github.com/manala/ansible-role-sqlite/archive/1.0.2.tar.gz
-  extracting manala.sqlite to /etc/ansible/roles/manala.sqlite
-  manala.sqlite was installed successfully
-  downloading role 'thumbor', owned by manala
-  downloading role from https://github.com/manala/ansible-role-thumbor/archive/1.0.2.tar.gz
-  extracting manala.thumbor to /etc/ansible/roles/manala.thumbor
-  manala.thumbor was installed successfully
Failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.

This is what file /tmp/manala_ansible_galaxy_roles.yml contains:

- src: manala.ansible-galaxy
- src: manala.skeleton

I've tried to delete folder /etc/ansible/roles/.downloads or everything in /etc/ansible/roles, or even tried to destroy the VM and rebuild it, but it always fails.

Also, I'm using:

  • VirtualBox 6.0.4
  • Vagrant 2.2.2
  • Vagrant box manala/app-dev-debian 4.0.4

Maybe it's an issue with ansible-galaxy itself but I'm not sure.

Do someone of you have an idea? Thanks! 馃檪

@Kocal Kocal changed the title Unable to download some roles Unable to download some roles (ansible-galaxy, opcache-dashboard, mongo-express) Jul 9, 2019

@nervo

This comment has been minimized.

Copy link
Member

commented Jul 9, 2019

@Kocal have you tried to delete the content of the ansible/roles of you project ?

@Kocal

This comment has been minimized.

Copy link
Contributor Author

commented Jul 9, 2019

Nope, but it fails even on a new project without ansible/roles directory:
S茅lection_957

I will try on other project to see if it does something.

EDIT: Nope, it still fails.
Also on this computer I'm using:

  • VirtualBox 5.2.30
  • Vagrant 2.2.4
  • Vagrant box manala/app-dev-debian 4.0.4
@nervo

This comment has been minimized.

Copy link
Member

commented Jul 9, 2019

I also try to reproduce

@nervo

This comment has been minimized.

Copy link
Member

commented Jul 9, 2019

Holy christ, every - in our role names have been converted to _ ....
What the hell...

Have a look on https://galaxy.ansible.com/manala/ansible_galaxy for instance...

@Kocal

This comment has been minimized.

Copy link
Contributor Author

commented Jul 9, 2019

Oh... again this issue from ansible galaxy itself... ansible/galaxy#775 馃槶

@Kocal

This comment has been minimized.

Copy link
Contributor Author

commented Jul 9, 2019

Do you think there is a workaround for now?

@nervo

This comment has been minimized.

Copy link
Member

commented Jul 9, 2019

I'm afraid, no...
But we are working hard: manala/ansible-roles#351
That shoud be fixed (and documented) tomorrow

@Kocal

This comment has been minimized.

Copy link
Contributor Author

commented Jul 9, 2019

Ah my bad, I was not aware that you already started to work on it. Thanks for your work!

I hope that galaxy won't replace _ to - again 馃槃 (they already did that for some packages a long time ago)

@Kocal

This comment has been minimized.

Copy link
Contributor Author

commented Jul 11, 2019

Thanks @nervo and @greedybro, I've been watching your work and VM are now working again! 馃帀

Steps to migrate:

  • vagrant box update to update manala/app-dev-debian to 4.0.5
  • in ansible/ansible.yml, replace roles containing a - with _

@Kocal Kocal closed this Jul 11, 2019

Kocal added a commit to Kocal/symfony-app-template that referenced this issue Jul 11, 2019

Fix VM/Ansible: rename roles with a `-`
Voir manala/manalize#166

Il faudra ex茅cuter les commandes suivantes :
```
$ vagrant destroy
$ vagrant box update
$ make setup
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.