Hi everybody!
I tried to set up a WikiData development environment using Vagrant[1]. At first
everything seemed to be okay. The “precise64” VM was downloaded and the
automated setup with “puppet” started. But then after Apache, MySQL and PHP
were installed the following error occurred:
←[0;37mdebug: Puppet::Type::Package::ProviderApt: Executing
'/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n
php5-dev'←[0m
←[0;37mdebug: Class[Php]: The container Stage[main] will propagate my refresh
event←[0m
←[0;37mdebug: Finishing transaction 70306158277360←[0m
←[0;37mdebug: Storing state←[0m
←[0;32minfo: Creating state file /var/lib/puppet/state/state.yaml←[0m
←[0;37mdebug: Stored state in 0.04 seconds←[0m
←[0;36mnotice: Finished catalog run in 318.46 seconds←[0m
←[0;37mdebug: /File[/var/lib/puppet/rrd]/ensure: created←[0m
←[0;37mdebug: Finishing transaction 70306152454460←[0m
←[0;37mdebug: Received report to process from precise64.hw.local←[0m
←[0;37mdebug: Processing report from precise64.lmw.local with processor
Puppet::Reports::Store←[0m
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-puppet/manifests && puppet apply --verbose --debug --modulepath
'/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' base.pp
--detailed-exitcodes || [ $? -eq 2 ]
When I execute this last command manually on the VM I get the error
err: /Stage[main]/Generic/Exec[fix-sources]/returns: change from notrun to
0 failed: sed -i'' -e 's/us\.archive/archive/g' /etc/apt/sources.list returned
4 instead of one of [0] at /tmp/vagrant-puppet/manifests/base.pp:13
This seem to be due to file permissions. Executing this command as root works
fine but afterwards this error occurs:
err: /Stage[main]/Wikidata::Repo/Exec[repo_setup]/returns: change from
notrun to 0 failed: /usr/bin/php /srv/repo/maintenance/install.php
Wikidata-repo admin --pass vagrant --dbname repo --dbuser root --dbpass vagrant
--server 'http://localhost:8080' --scriptpath '/repo' --confpath
'/srv/orig-repo/' returned 1 instead of one of [0] at
/tmp/vagrant-puppet/modules-0/wikidata/manifests/init.pp:38
The “/srv/repo/” folder is almost empty, which is probably because of earlier
errors.
I am able to connect to “http://127.0.0.1:8080” and see the “welcome” page. But
both links (“repo” and “client”) are dead.
Has anybody an idea what the problem might be? I’m using a Windows 8 machine as
host.
Thanks!
[1] http://meta.wikimedia.org/wiki/Wikidata/Development/Setup
--
Robert Vogel
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l