[pydotorg-www] vagrant up broke

Carl Karsten carl at personnelware.com
Sat Jun 6 00:59:21 CEST 2015


I am pretty sure this worked a few months ago:

https://pythondotorg.readthedocs.org/install.html#easy-setup-using-vagrant

guessing the problem is:

==> default: pg requires Ruby version >= 1.9.3.

Should I post here or open a github issue?



carl at twist:~/src/pythondotorg$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM:
pythondotorg_default_1433542943815_83106
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 8000 => 8000 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed
version of
    default: VirtualBox! In most cases this is fine, but in rare cases it
can
    default: prevent things such as shared folders from working properly.
If you see
    default: shared folder errors, please make sure the guest additions
within the
    default: virtual machine match the version of VirtualBox you have
installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Mounting shared folders...
    default: /vagrant => /home/carl/src/pythondotorg
    default: /home/vagrant/pythondotorg => /home/carl/src/pythondotorg
    default: /tmp/vagrant-chef-3/chef-solo-2/roles =>
/home/carl/src/pythondotorg/chef/roles
    default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks =>
/home/carl/src/pythondotorg/chef/cookbooks
==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: stdin: is not a tty
==> default: [2015-06-05T22:22:48+00:00] INFO: *** Chef 10.14.2 ***
==> default: [2015-06-05T22:22:48+00:00] INFO: Setting the run_list to
["role[python-dev-box]"] from JSON
==> default: [2015-06-05T22:22:48+00:00] INFO: Run List is
[role[python-dev-box]]
==> default: [2015-06-05T22:22:48+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]
==> default: [2015-06-05T22:22:48+00:00] INFO: Starting Chef Run for
precise64
==> default: [2015-06-05T22:22:48+00:00] INFO: Running start handlers
==> default: [2015-06-05T22:22:48+00:00] INFO: Start handlers complete.
==> default: [2015-06-05T22:22:49+00:00] INFO: Missing gem 'mysql'
==> default: [2015-06-05T22:22:58+00:00] INFO: execute[apt-get-update] ran
successfully
==> default: [2015-06-05T22:23:02+00:00] INFO:
package[update-notifier-common] sending run action to
execute[apt-get-update] (immediate)
==> default: [2015-06-05T22:23:10+00:00] INFO: execute[apt-get-update] ran
successfully
==> default: [2015-06-05T22:23:10+00:00] INFO: directory[/var/cache/local]
created directory /var/cache/local
==> default: [2015-06-05T22:23:10+00:00] INFO: directory[/var/cache/local]
owner changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO: directory[/var/cache/local]
group changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO: directory[/var/cache/local]
mode changed to 755
==> default: [2015-06-05T22:23:10+00:00] INFO:
directory[/var/cache/local/preseeding] created directory
/var/cache/local/preseeding
==> default: [2015-06-05T22:23:10+00:00] INFO:
directory[/var/cache/local/preseeding] owner changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO:
directory[/var/cache/local/preseeding] group changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO:
directory[/var/cache/local/preseeding] mode changed to 755
==> default: [2015-06-05T22:23:10+00:00] INFO:
template[/etc/default/locale] backed up to
/var/chef/backup/etc/default/locale.chef-20150605222310
==> default: [2015-06-05T22:23:10+00:00] INFO:
template[/etc/default/locale] updated content
==> default: [2015-06-05T22:23:10+00:00] INFO:
template[/etc/default/locale] owner changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO:
template[/etc/default/locale] group changed to 0
==> default: [2015-06-05T22:23:10+00:00] INFO:
template[/etc/default/locale] mode changed to 644
==> default: [2015-06-05T22:23:43+00:00] INFO:
cookbook_file[/var/chef/cache/ez_setup.py] mode changed to 644
==> default: [2015-06-05T22:23:43+00:00] INFO:
cookbook_file[/var/chef/cache/ez_setup.py] created file
/var/chef/cache/ez_setup.py
==> default: [2015-06-05T22:23:43+00:00] INFO:
cookbook_file[/var/chef/cache/get-pip.py] mode changed to 644
==> default: [2015-06-05T22:23:43+00:00] INFO:
cookbook_file[/var/chef/cache/get-pip.py] created file
/var/chef/cache/get-pip.py
==> default: [2015-06-05T22:23:44+00:00] INFO: execute[install-setuptools]
ran successfully
==> default: [2015-06-05T22:23:47+00:00] INFO: execute[install-pip] ran
successfully
==> default: [2015-06-05T22:23:48+00:00] INFO: Installing
python_pip[virtualenv] version latest
==> default: [2015-06-05T22:23:58+00:00] INFO: package[rdoc1.9.1] is a
virtual package, actually acting on package[ruby1.9.1]
==> default: [2015-06-05T22:24:07+00:00] INFO: package[irb1.9.1] is a
virtual package, actually acting on package[ruby1.9.1]
==> default: [2015-06-05T22:24:07+00:00] INFO:
package[libopenssl-ruby1.9.1] is a virtual package, actually acting on
package[libruby1.9.1]
==> default: [2015-06-05T22:24:28+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-20150605222428
==> default: [2015-06-05T22:24:28+00:00] INFO:
template[/etc/postgresql/9.1/main/postgresql.conf] updated content
==> default: [2015-06-05T22:24:28+00:00] INFO:
template[/etc/postgresql/9.1/main/postgresql.conf] owner changed to 106
==> default: [2015-06-05T22:24:28+00:00] INFO:
template[/etc/postgresql/9.1/main/postgresql.conf] group changed to 112
==> default: [2015-06-05T22:24:28+00:00] INFO:
template[/etc/postgresql/9.1/main/postgresql.conf] mode changed to 600
==> default: [2015-06-05T22:24:28+00:00] INFO:
template[/etc/postgresql/9.1/main/postgresql.conf] sending restart action
to service[postgresql] (immediate)
==> default: [2015-06-05T22:24:31+00:00] INFO: service[postgresql] restarted
==> default: [2015-06-05T22:24:31+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-20150605222431
==> default: [2015-06-05T22:24:31+00:00] INFO:
template[/etc/postgresql/9.1/main/pg_hba.conf] updated content
==> default: [2015-06-05T22:24:31+00:00] INFO:
template[/etc/postgresql/9.1/main/pg_hba.conf] owner changed to 106
==> default: [2015-06-05T22:24:31+00:00] INFO:
template[/etc/postgresql/9.1/main/pg_hba.conf] group changed to 112
==> default: [2015-06-05T22:24:31+00:00] INFO:
template[/etc/postgresql/9.1/main/pg_hba.conf] mode changed to 600
==> default: [2015-06-05T22:24:31+00:00] INFO:
template[/etc/postgresql/9.1/main/pg_hba.conf] sending restart action to
service[postgresql] (immediate)
==> default: [2015-06-05T22:24:34+00:00] INFO: service[postgresql] restarted
==> default: [2015-06-05T22:24:34+00:00] INFO:
bash[assign-postgres-password] ran successfully
==> default: [2015-06-05T22:24:45+00:00] INFO: package[mercurial] upgraded
from uninstalled to 2.0.2-1ubuntu1
==> default:
==> default:
================================================================================
==> default: Error executing action `install` on resource 'gem_package[pg]'
==> default:
================================================================================
==> default:
==> default: Gem::InstallError
==> default: -----------------
==> default: pg requires Ruby version >= 1.9.3.
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In
/tmp/vagrant-chef-3/chef-solo-1/cookbooks/pythondotorg/recipes/db.rb
==> default:
==> default:   0: end
==> default:   1: gem_package "pg" do
==> default:   2:   action :install
==> default:   3: end
==> default:   4:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in
/tmp/vagrant-chef-3/chef-solo-1/cookbooks/pythondotorg/recipes/db.rb:1:in
`from_file'
==> default:
==> default: gem_package("pg") do
==> default:   retry_delay 2
==> default:   retries 0
==> default:   recipe_name "db"
==> default:   action [:install]
==> default:   cookbook_name :pythondotorg
==> default:   package_name "pg"
==> default:   provider Chef::Provider::Package::Rubygems
==> default: end
==> default: [2015-06-05T22:24:48+00:00] ERROR: Running exception handlers
==> default: [2015-06-05T22:24:48+00:00] ERROR: Exception handlers complete
==> default: [2015-06-05T22:24:48+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
==> default: [2015-06-05T22:24:48+00:00] FATAL: Gem::InstallError:
gem_package[pg] (pythondotorg::db line 1) had an error: Gem::InstallError:
pg requires Ruby version >= 1.9.3.
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.


On Fri, Jun 5, 2015 at 2:56 PM, Frank Wiles <frank at revsys.com> wrote:

> Also note the 'load_dev_fixtures' management command which gives you the
> data necessary for the site to "work" much more easily than before.
>
> --
> Frank Wiles
> Revolution Systems | http://www.revsys.com/
> frank at revsys.com   | (800) 647-6298
>
> On Fri, Jun 5, 2015 at 1:58 PM, M.-A. Lemburg <mal at python.org> wrote:
>
>> On 05.06.2015 20:50, Carl Karsten wrote:
>> > but on the subject of the site, if I want to hack on the jobs board, is
>> > this the right repo to fork?
>> >
>> > https://github.com/python/pythondotorg
>>
>> Yep and then submit pull request to get it checked in.
>>
>> Berker has been investing a lot of work into getting the
>> system more documented:
>>
>> https://github.com/python/pythondotorg/tree/master/docs
>> and
>> http://pythondotorg.readthedocs.org/
>>
>> and is also aiming to make it more easily locally installable:
>>
>> https://github.com/python/pythondotorg/pull/537
>> and
>>
>> https://github.com/python/pythondotorg/compare/master...berkerpeksag:switch-to-ansible
>>
>> --
>> Marc-Andre Lemburg
>> Director
>> Python Software Foundation
>> http://www.python.org/psf/
>> _______________________________________________
>> pydotorg-www mailing list
>> pydotorg-www at python.org
>> https://mail.python.org/mailman/listinfo/pydotorg-www
>>
>
>


-- 
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pydotorg-www/attachments/20150605/db40a421/attachment-0001.html>


More information about the pydotorg-www mailing list