Page MenuHomePhabricator

MediaWiki not compatible with Vagrant 2 / Virtualbox 5.2
Closed, ResolvedPublic

Description

Hey,

I tried to install a local instance of MediaWiki according to the quick-start guide found in the Wiki. However, after running vagrant up, the process failed relatively early on since Puppet was throwing an error:

Evaluation Error: Left match operand must result in a String value. Got an Integer. at /vagrant/puppet/modules/mwv/manifests/init.pp:56:8

I figured this was some sort of version incompatibility, so I proceeded to downgrade Vagrant and Virtualbox even though the documentation instructs users to download the latest version of both of them. Initially I had installed Vagrant 2.0.4 and Virtualbox 5.2.10 and my solution was to download Virtualbox 5.1.36 and Vagrant 1.9.8.

Either way, I wanted to bring this issue up so that either the Vagrant set-up is fixed if this is a bug or alternatively suggest that the documentation is adapted to reflect the actual version requirements with the links to the downloadable setups I provided above.

I am not sure if this is relevant, but just in case: I am running the rather newly released Kubuntu 18.04 LTS on this particular machine.

Event Timeline

I'm using Vagrant 2.0.4 and VirtualBox 5.2.10 on my Win10 and MacOS High Sierra machines and haven't hit this problem yet... Will test under Ubuntu 18.04 and see if it behaves differently.

The line this points to is if $::share_group =~ /^\d+$/ { and Puppet4 is strict about type checking. It sounds like the $::share_group "fact" that is passed in from the Vagrantfile is coming across as an Integer to the Puppet layer in @Tim_WMDE's initial setup. I wonder if type casting the puppet.facter['share_group'] = Process.gid value explicitly by changing it to puppet.facter['share_group'] = Process.gid.to_s would fix anything?

Ok, I can confirm that under Ubuntu, with NFS on, I get the same error. About to test the to_s suggestion to see if that helps...

Change 430533 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[mediawiki/vagrant@master] Fix for share_group in Puppet 4 with NFS on

https://gerrit.wikimedia.org/r/430533

Change 430533 merged by jenkins-bot:
[mediawiki/vagrant@master] Fix for share_group in Puppet 4 with NFS on

https://gerrit.wikimedia.org/r/430533

brion claimed this task.

Ok, this should be fixed and working with latest versions of everything as of latest commit.

Vvjjkkii renamed this task from MediaWiki not compatible with Vagrant 2 / Virtualbox 5.2 to 3ydaaaaaaa.Jul 1 2018, 1:13 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed brion as the assignee of this task.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
CommunityTechBot renamed this task from 3ydaaaaaaa to MediaWiki not compatible with Vagrant 2 / Virtualbox 5.2.Jul 2 2018, 4:31 PM
CommunityTechBot closed this task as Resolved.
CommunityTechBot assigned this task to brion.
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added subscribers: gerritbot, Aklapper.