Page MenuHomePhabricator

Could not find a valid gem 'bundler'
Open, LowPublic

Description

When provisioning the centralauth role:

==> default: Notice: /Stage[main]/Ruby::Default/Ruby::Ruby[2.0]/Ruby::Gem[ruby2.0-bundler]/Exec[gem_install_bundler_2.0_>=0]/returns: ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
==> default: Notice: /Stage[main]/Ruby::Default/Ruby::Ruby[2.0]/Ruby::Gem[ruby2.0-bundler]/Exec[gem_install_bundler_2.0_>=0]/returns:           Unable to download data from https://rubygems.org/ - bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz)
==> default: Notice: /Stage[main]/Ruby::Default/Ruby::Ruby[2.0]/Ruby::Gem[ruby2.0-bundler]/Exec[gem_install_bundler_2.0_>=0]/returns: ERROR:  Possible alternatives: bundler
==> default: Error: gem2.0 install bundler --version '>=0' returned 2 instead of one of [0]

... and absolutely everything seems to depend on that gem. https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz says "The specified bucket does not exist".

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr added projects: MediaWiki-Vagrant, Ruby.
Tgr subscribed.

Workaround is to run sudo gem2.0 install bundler --source http://production.cf.rubygems.org/ on the guest. This will show a warning but still install the gem, which will stop Puppet from trying to execute the command.

Not sure where the dependencies come from, I don't see anything in the role manifests, but the puppet log looks like this:

==> default: Notice: /Stage[main]/Mediawiki/File[/usr/local/bin/run-git-update]/content: content changed '{md5}7127a0bfbfd399ef0f9659a3e2c6583c' to '{md5}fdbad5bfd9342d46f9df284785512825'
==> default: Notice: /Stage[main]/Role::Centralauth/Mediawiki::Extension[CentralAuth]/Mediawiki::Extension::Browsertests[CentralAuth]/Browsertests::Bundle[CentralAuth_browsertests_bundle]/Ruby::Bundle[CentralAuth_browsertests_bundle]/Exec[bundle_install_CentralAuth_browsertests_bundle]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Centralauth/Mysql::Sql[Create CentralAuth spoofuser table]/Exec[Create CentralAuth spoofuser table]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Centralauth/Mysql::Sql[Create CentralAuth tables]/Exec[Create CentralAuth tables]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Centralauth/Role::Centralauth::Migrate_user[Selenium user]/Exec[migrate_user_Selenium user_to_centralauth]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/File[/srv/pages/wiki/wiki/Main_Page]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/File[/srv/pages/wiki/wiki/Template:Main_Page]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Template:Main_Page]/Exec[add page devwiki/Template:Main_Page]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki/Mediawiki::Import::Text[Main_Page]/Exec[add page devwiki/Main_Page]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Centralauth/Role::Centralauth::Migrate_user[Admin]/Exec[migrate_user_Admin_to_centralauth]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Oauth/Mediawiki::Import::Text[VagrantRoleOAuth]/File[/srv/pages/wiki/wiki/VagrantRoleOAuth]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Role::Oauth/Mediawiki::Import::Text[VagrantRoleOAuth]/Exec[add page devwiki/VagrantRoleOAuth]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/jobrunner.json]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/jobrunner.ini]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/File[/vagrant/srv/jobrunner]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/init/jobchron.conf]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/default/jobrunner]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service[jobchron]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobrunner]/File[/etc/mw-vagrant/services/jobrunner.conf]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobchron]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service::Gitupdate[jobchron]/File[/etc/mw-vagrant/services/jobchron.conf]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/logrotate.d/mediawiki_jobrunner]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Git::Clone[mediawiki/services/jobrunner]/Exec[git_clone_mediawiki/services/jobrunner]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/File[/etc/init/jobrunner.conf]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
==> default: Notice: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]: Dependency Exec[gem_install_bundler_2.0_>=0] has failures: true
Danny_B renamed this task from MediaWiki-Vagrant: Could not find a valid gem 'bundler' to Could not find a valid gem 'bundler'.May 23 2016, 4:09 PM
Aklapper triaged this task as Low priority.Dec 6 2022, 10:26 AM