{"action":"opened","issue":{"url":"https://api.github.com/repos/python/pythondotorg/issues/780","labels_url":"https://api.github.com/repos/python/pythondotorg/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/python/pythondotorg/issues/780/comments","events_url":"https://api.github.com/repos/python/pythondotorg/issues/780/events","html_url":"https://github.com/python/pythondotorg/issues/780","id":86229067,"number":780,"title":"vagrant - gem_packagepg - pg requires Ruby version >= 1.9.3.","user":{"login":"CarlFK","id":23225,"avatar_url":"https://avatars.githubusercontent.com/u/23225?v=3","gravatar_id":"","url":"https://api.github.com/users/CarlFK","html_url":"https://github.com/CarlFK","followers_url":"https://api.github.com/users/CarlFK/followers","following_url":"https://api.github.com/users/CarlFK/following{/other_user}","gists_url":"https://api.github.com/users/CarlFK/gists{/gist_id}","starred_url":"https://api.github.com/users/CarlFK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarlFK/subscriptions","organizations_url":"https://api.github.com/users/CarlFK/orgs","repos_url":"https://api.github.com/users/CarlFK/repos","events_url":"https://api.github.com/users/CarlFK/events{/privacy}","received_events_url":"https://api.github.com/users/CarlFK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T15:44:24Z","updated_at":"2015-06-08T15:44:24Z","closed_at":null,"body":"```\r\ngit clone https://github.com/python/pythondotorg.git\r\ncd pythondotorg/\r\nvagrant up\r\n```\r\n==> default: [2015-06-08T15:00:59+00:00] FATAL: Gem::InstallError: gem_package[pg] (pythondotorg::db line 1) had an error: Gem::InstallError: pg requires Ruby version >= 1.9.3.\r\n\r\n\r\n```\r\nBringing machine 'default' up with 'virtualbox' provider...\r\n==> default: Importing base box 'hashicorp/precise64'...\r\n==> default: Matching MAC address for NAT networking...\r\n==> default: Checking if box 'hashicorp/precise64' is up to date...\r\n==> default: Setting the name of the VM: pythondotorg_default_1433772938328_24732\r\n==> default: Clearing any previously set network interfaces...\r\n==> default: Preparing network interfaces based on configuration...\r\n    default: Adapter 1: nat\r\n==> default: Forwarding ports...\r\n    default: 8000 => 8000 (adapter 1)\r\n    default: 22 => 2222 (adapter 1)\r\n==> default: Booting VM...\r\n==> default: Waiting for machine to boot. This may take a few minutes...\r\n    default: SSH address: 127.0.0.1:2222\r\n    default: SSH username: vagrant\r\n    default: SSH auth method: private key\r\n    default: Warning: Connection timeout. Retrying...\r\n==> default: Machine booted and ready!\r\n==> default: Checking for guest additions in VM...\r\n    default: The guest additions on this VM do not match the installed version of\r\n    default: VirtualBox! In most cases this is fine, but in rare cases it can\r\n    default: prevent things such as shared folders from working properly. If you see\r\n    default: shared folder errors, please make sure the guest additions within the\r\n    default: virtual machine match the version of VirtualBox you have installed on\r\n    default: your host and reload your VM.\r\n    default: \r\n    default: Guest Additions Version: 4.2.0\r\n    default: VirtualBox Version: 4.3\r\n==> default: Mounting shared folders...\r\n    default: /vagrant => /home/carl/src/pythondotorg\r\n    default: /home/vagrant/pythondotorg => /home/carl/src/pythondotorg\r\n    default: /tmp/vagrant-chef-3/chef-solo-2/roles => /home/carl/src/pythondotorg/chef/roles\r\n    default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks => /home/carl/src/pythondotorg/chef/cookbooks\r\n==> default: Running provisioner: chef_solo...\r\nGenerating chef JSON and uploading...\r\n==> default: Running chef-solo...\r\n==> default: stdin: is not a tty\r\n==> default: [2015-06-08T14:16:03+00:00] INFO: *** Chef 10.14.2 ***\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Setting the run_list to [\"role[python-dev-box]\"] from JSON\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Run List is [role[python-dev-box]]\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Run List expands to [apt, pythondotorg::locale, build-essential, python, ruby::1.9.1, postgresql::client, postgresql::server, git, mercurial, pythondotorg::db, pythondotorg::prereq, pythondotorg::project]\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Starting Chef Run for precise64\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Running start handlers\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Start handlers complete.\r\n==> default: [2015-06-08T14:16:04+00:00] INFO: Missing gem 'mysql'\r\n==> default: [2015-06-08T14:18:08+00:00] INFO: execute[apt-get-update] ran successfully\r\n==> default: [2015-06-08T14:18:24+00:00] INFO: package[update-notifier-common] sending run action to execute[apt-get-update] (immediate)\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: execute[apt-get-update] ran successfully\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local] owner changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local] group changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local] mode changed to 755\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: template[/etc/default/locale] backed up to /var/chef/backup/etc/default/locale.chef-20150608141830\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: template[/etc/default/locale] updated content\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: template[/etc/default/locale] owner changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: template[/etc/default/locale] group changed to 0\r\n==> default: [2015-06-08T14:18:30+00:00] INFO: template[/etc/default/locale] mode changed to 644\r\n==> default: [2015-06-08T14:41:34+00:00] INFO: cookbook_file[/var/chef/cache/ez_setup.py] mode changed to 644\r\n==> default: [2015-06-08T14:41:34+00:00] INFO: cookbook_file[/var/chef/cache/ez_setup.py] created file /var/chef/cache/ez_setup.py\r\n==> default: [2015-06-08T14:41:34+00:00] INFO: cookbook_file[/var/chef/cache/get-pip.py] mode changed to 644\r\n==> default: [2015-06-08T14:41:34+00:00] INFO: cookbook_file[/var/chef/cache/get-pip.py] created file /var/chef/cache/get-pip.py\r\n==> default: [2015-06-08T14:42:11+00:00] INFO: execute[install-setuptools] ran successfully\r\n==> default: [2015-06-08T14:42:37+00:00] INFO: execute[install-pip] ran successfully\r\n==> default: [2015-06-08T14:42:41+00:00] INFO: Installing python_pip[virtualenv] version latest\r\n==> default: [2015-06-08T14:48:52+00:00] INFO: package[rdoc1.9.1] is a virtual package, actually acting on package[ruby1.9.1]\r\n==> default: [2015-06-08T14:50:24+00:00] INFO: package[irb1.9.1] is a virtual package, actually acting on package[ruby1.9.1]\r\n==> default: [2015-06-08T14:50:24+00:00] INFO: package[libopenssl-ruby1.9.1] is a virtual package, actually acting on package[libruby1.9.1]\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] backed up to /var/chef/backup/etc/postgresql/9.1/main/postgresql.conf.chef-20150608145534\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] updated content\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] owner changed to 106\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] group changed to 112\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] mode changed to 600\r\n==> default: [2015-06-08T14:55:34+00:00] INFO: template[/etc/postgresql/9.1/main/postgresql.conf] sending restart action to service[postgresql] (immediate)\r\n==> default: [2015-06-08T14:55:37+00:00] INFO: service[postgresql] restarted\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] backed up to /var/chef/backup/etc/postgresql/9.1/main/pg_hba.conf.chef-20150608145538\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] updated content\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] owner changed to 106\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] group changed to 112\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] mode changed to 600\r\n==> default: [2015-06-08T14:55:38+00:00] INFO: template[/etc/postgresql/9.1/main/pg_hba.conf] sending restart action to service[postgresql] (immediate)\r\n==> default: [2015-06-08T14:55:41+00:00] INFO: service[postgresql] restarted\r\n==> default: [2015-06-08T14:55:41+00:00] INFO: bash[assign-postgres-password] ran successfully\r\n==> default: [2015-06-08T15:00:01+00:00] INFO: package[mercurial] upgraded from uninstalled to 2.0.2-1ubuntu1\r\n==> default: \r\n==> default: ================================================================================\r\n==> default: Error executing action `install` on resource 'gem_package[pg]'\r\n==> default: ================================================================================\r\n==> default: \r\n==> default: Gem::InstallError\r\n==> default: -----------------\r\n==> default: pg requires Ruby version >= 1.9.3.\r\n==> default: \r\n==> default: Resource Declaration:\r\n==> default: ---------------------\r\n==> default: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/pythondotorg/recipes/db.rb\r\n==> default: \r\n==> default:   0: end\r\n==> default:   1: gem_package \"pg\" do\r\n==> default:   2:   action :install\r\n==> default:   3: end\r\n==> default:   4: \r\n==> default: \r\n==> default: Compiled Resource:\r\n==> default: ------------------\r\n==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/pythondotorg/recipes/db.rb:1:in `from_file'\r\n==> default: \r\n==> default: gem_package(\"pg\") do\r\n==> default:   retry_delay 2\r\n==> default:   retries 0\r\n==> default:   recipe_name \"db\"\r\n==> default:   action [:install]\r\n==> default:   cookbook_name :pythondotorg\r\n==> default:   package_name \"pg\"\r\n==> default:   provider Chef::Provider::Package::Rubygems\r\n==> default: end\r\n==> default: [2015-06-08T15:00:59+00:00] ERROR: Running exception handlers\r\n==> default: [2015-06-08T15:00:59+00:00] ERROR: Exception handlers complete\r\n==> default: [2015-06-08T15:00:59+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n==> default: [2015-06-08T15:00:59+00:00] FATAL: Gem::InstallError: gem_package[pg] (pythondotorg::db line 1) had an error: Gem::InstallError: pg requires Ruby version >= 1.9.3.\r\nChef never successfully completed! Any errors should be visible in the\r\noutput above. Please fix your recipes so that they properly complete.\r\n```"}}