Last modified: 2014-04-16 06:40:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65990, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63990 - mediawiki-vagrant sets root rights to /home/vagrant/.gem making puppet fail on the bundle command
mediawiki-vagrant sets root rights to /home/vagrant/.gem making puppet fail o...
Status: RESOLVED DUPLICATE of bug 61285
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-16 06:18 UTC by Stefan Petrea
Modified: 2014-04-16 06:40 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Stefan Petrea 2014-04-16 06:18:59 UTC
This is indeed a duplicate of bug 61285 (more or less). But wait.. there is more.
I'm not sure if I should reopen that one or write here. But I will write the bugreport.
I've studied 61285 a bit, and to summarize, the fix in Gerrit change #113988 was the following in puppet/modules/browsertests/manifests/init.pp:80 

  -cwd => '/srv/browsertests',
  +cwd => '/srv/browsertests/tests/browser', 

I've used mediawiki-vagrant commit 875f18f77b5d95be5168a142758178d06a33a6bc and bumped into the same problem described in bug 61285.

After trying to manually run the command that puppet was failing on, I've got this:

vagrant@mediawiki-vagrant:/srv/browsertests/tests/browser$ bundle install --path /home/vagrant/.gem
/usr/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /home/vagrant/.gem/ruby (Errno::EACCES)
[...]

Apparently something set the permission of /home/vagrant/.gem to root:root

vagrant@mediawiki-vagrant:/srv/browsertests/tests/browser$ ls -la ~/
[...]
drwxr-xr-x  2 root    root       4096 Apr  5 21:24 .gem
[...]

After changing the permission of /home/vagrant/.gem to vagrant:vagrant, the bundle command ran succesfuly, and after that I ran vagrant provision and everything went well.

Maybe this could be incorporated in the puppet manifest ?
Comment 1 Ori Livneh 2014-04-16 06:40:14 UTC

*** This bug has been marked as a duplicate of bug 61285 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links