Last modified: 2014-08-21 03:51:12 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 T71816, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69816 - Vector not installed on Vagrant
Vector not installed on Vagrant
Status: RESOLVED WORKSFORME
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Bryan Davis
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 21:35 UTC by Steven Walling
Modified: 2014-08-21 03:51 UTC (History)
6 users (show)

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


Attachments
Puppet log (317.21 KB, application/octet-stream)
2014-08-20 22:39 UTC, Steven Walling
Details

Description Steven Walling 2014-08-20 21:35:33 UTC
I am getting the following error from Vagrant now:

"Whoops! The default skin for your wiki ($wgDefaultSkin), vector, is not available.

You have no installed skins." 

A git update, provision, and reload does nothing to fix this.
Comment 1 Bryan Davis 2014-08-20 21:39:11 UTC
(In reply to Steven Walling from comment #0)
> I am getting the following error from Vagrant now:
> 
> "Whoops! The default skin for your wiki ($wgDefaultSkin), vector, is not
> available.
> 
> You have no installed skins." 
> 
> A git update, provision, and reload does nothing to fix this.

There is a little chicken and egg problem with existing mediawiki checkouts. Try this:

$ cd vagrant/mediawiki
$ git pull

You should hopefully see the existing mediawiki/skins/Vector directory disappear.

$ cd ..
$ git pull
$ vagrant provision

You should hopefully see mediawiki/skins/Vector reappear as a clone of the new independent repository.
Comment 2 Steven Walling 2014-08-20 22:02:16 UTC
(In reply to Bryan Davis from comment #1)
> 
> There is a little chicken and egg problem with existing mediawiki checkouts.
> Try this:
> 
> $ cd vagrant/mediawiki
> $ git pull
> 
> You should hopefully see the existing mediawiki/skins/Vector directory
> disappear.
> 
> $ cd ..
> $ git pull
> $ vagrant provision
> 
> You should hopefully see mediawiki/skins/Vector reappear as a clone of the
> new independent repository.

After this I get "Warning: require_once(/vagrant/settings.d/wikis/CommonSettings.php): failed to open stream: No such file or directory in /vagrant/LocalSettings.php on line 98"
Comment 3 Bryan Davis 2014-08-20 22:07:44 UTC
(In reply to Steven Walling from comment #2)
> 
> After this I get "Warning:
> require_once(/vagrant/settings.d/wikis/CommonSettings.php): failed to open
> stream: No such file or directory in /vagrant/LocalSettings.php on line 98"

Aaarg. That sounds like a puppet resource ordering problem. /vagrant/settings.d/wikis/CommonSettings.php is created by the mediawiki::multiwiki but something is apparently trying to run wiki code before it has been applied. I'll see if I can reproduce in a clean Vagrant checkout and find a fix.
Comment 4 Steven Walling 2014-08-20 22:13:00 UTC
(In reply to Bryan Davis from comment #3)
> (In reply to Steven Walling from comment #2)
> > 
> > After this I get "Warning:
> > require_once(/vagrant/settings.d/wikis/CommonSettings.php): failed to open
> > stream: No such file or directory in /vagrant/LocalSettings.php on line 98"
> 
> Aaarg. That sounds like a puppet resource ordering problem.
> /vagrant/settings.d/wikis/CommonSettings.php is created by the
> mediawiki::multiwiki but something is apparently trying to run wiki code
> before it has been applied. I'll see if I can reproduce in a clean Vagrant
> checkout and find a fix.

Thanks for the help Bryan!
Comment 5 Bryan Davis 2014-08-20 22:31:56 UTC
(In reply to Steven Walling from comment #2)
> After this I get "Warning:
> require_once(/vagrant/settings.d/wikis/CommonSettings.php): failed to open
> stream: No such file or directory in /vagrant/LocalSettings.php on line 98"

I'd like to see what is firing before mediawiki::multiwiki has been applied. Would you mind running `PUPPET_DEBUG=1 vagrant provision | tee puppet.log` and uploading the resulting log file here?
Comment 6 Steven Walling 2014-08-20 22:39:41 UTC
Created attachment 16253 [details]
Puppet log
Comment 7 Steven Walling 2014-08-20 22:39:52 UTC
(In reply to Bryan Davis from comment #5)
> (In reply to Steven Walling from comment #2)
> > After this I get "Warning:
> > require_once(/vagrant/settings.d/wikis/CommonSettings.php): failed to open
> > stream: No such file or directory in /vagrant/LocalSettings.php on line 98"
> 
> I'd like to see what is firing before mediawiki::multiwiki has been applied.
> Would you mind running `PUPPET_DEBUG=1 vagrant provision | tee puppet.log`
> and uploading the resulting log file here?

Attached
Comment 8 Steven Walling 2014-08-20 22:44:00 UTC
The second provision worked mysteriously.
Comment 9 Bryan Davis 2014-08-20 22:45:55 UTC
[16:43]  <    bd808>	 Puppet randomizes the order of things. You caught a bad ordering
[16:43]  <    bd808>	 Which is a bug
[16:43]  <    bd808>	 but hard to track down
[16:44]  <    bd808>	 But I can see that I'm not requiring that bit of configuration and just letting puppet do it whenever it wants

I need to put some ordering constraint on the provisioning of the multiwiki scripts.
Comment 10 Gerrit Notification Bot 2014-08-20 23:26:58 UTC
Change 155465 had a related patch set uploaded by BryanDavis:
Require mediawiki::multiverison in ::mediawiki

https://gerrit.wikimedia.org/r/155465
Comment 11 Gerrit Notification Bot 2014-08-21 03:49:21 UTC
Change 155465 merged by jenkins-bot:
Require mediawiki::multiverison in ::mediawiki contexts

https://gerrit.wikimedia.org/r/155465
Comment 12 Bryan Davis 2014-08-21 03:51:12 UTC
Attempted to fix this with patch, but since neither Steven nor I have been able to recreate I'll reclose as worksforme and cross my fingers.

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


Navigation
Links