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%E2%80%9D 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
On Fri, Jun 14, 2013 at 6:02 PM, Robert Vogel vogel@hallowelt.biz wrote:
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:
Hi Robert,
Unfortunately the person on our team who is the Vagrant expert is on vacation for quite a while. Does anyone else familiar with Vagrant know what's the issue here?
Cheers Lydia
-- Lydia Pintscher - http://about.me/lydia.pintscher Community Communications for Technical Projects
Wikimedia Deutschland e.V. Obentrautstr. 72 10963 Berlin www.wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.
On Thu, Jun 20, 2013 at 3:31 AM, Lydia Pintscher < lydia.pintscher@wikimedia.de> wrote:
On Fri, Jun 14, 2013 at 6:02 PM, Robert Vogel vogel@hallowelt.biz wrote:
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:
Hi Robert,
Unfortunately the person on our team who is the Vagrant expert is on vacation for quite a while. Does anyone else familiar with Vagrant know what's the issue here?
I missed the original e-mail, sorry. I'd like to help. Could you file a bug in Bugzilla?
https://bugzilla.wikimedia.org/enter_bug.cgi?product=Tools&component=Med...
Hi,
never mind. I've submitted a bug report (https://bugzilla.wikimedia.org/show_bug.cgi?id=49944). If I can help you with more information, please let me know.
-- Robert Vogel
wikitech-l@lists.wikimedia.org