Last modified: 2014-07-17 21:52:53 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 T68764, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66764 - VisualEditor fails to provision with rbenv error
VisualEditor fails to provision with rbenv error
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Dan Duvall
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-18 01:18 UTC by Matthew Flaschen
Modified: 2014-07-17 21:52 UTC (History)
7 users (show)

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


Attachments
Puppet error with VisualEditor provisioning failure (177.36 KB, text/x-log)
2014-06-18 19:54 UTC, Matthew Flaschen
Details
Log from fresh install of MediaWiki-Vagrant (32.56 KB, text/x-log)
2014-06-28 20:55 UTC, Matthew Flaschen
Details
Fresh install on 2014-07-03 (63.17 KB, text/x-log)
2014-07-04 01:28 UTC, Matthew Flaschen
Details

Description Matthew Flaschen 2014-06-18 01:18:38 UTC
The error is:

err: /Stage[main]/Role::Visualeditor/Mediawiki::Extension[VisualEditor]/Browsertests::Bundle[/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Ruby::Bundle[/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Exec[bundle-install-/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]: Could not evaluate: Could not find command '/usr/local/rbenv/shims/bundle'

---

Full list of roles:

  accountinfo                geshi                      parsoid                 
  analytics                * gettingstarted             pdfhandler              
  antispam                   globalusage                poem                    
  antispoof                * guidedtour                 popups                  
  apisandbox                 gwtoolset                  proofreadpage           
  apparmor                   hadoop                     scribunto               
  babel                      hhvm                       simple_miser            
  betafeatures               hive                       simple_performant       
  browsertests               https                      sitematrix              
  centralauth                jsduck                     templatedata            
  centralnotice              labs_initial_content       textextracts            
  chromium                   mantle                     thumb_on_404            
  cirrussearch               massmessage                timedmediahandler       
  cite                     * math                       translate               
  cldr                       mathsearch                 uls                     
  codeeditor                 mleb                       uploadwizard            
  commonsmetadata          * mobilefrontend             urlshortener            
  confirmedit                multimedia                 vectorbeta              
  doublewiki                 multimediaviewer         * visualeditor            
  echo                       mysql                      wikidiff2               
  education                  navigationtiming         * wikieditor              
* eventlogging               newusermessage             wikihiero               
  flow                       oauth                      wikilove                
  fss                        pagedtiffhandler           wikimania_scholarships  
  fundraising                pageimages               * wikimediaevents         
  gadgets                    pagetriage                 wikimetrics             
  geodata                  * parserfunctions            xhprof
Comment 1 Dan Duvall 2014-06-18 18:29:00 UTC
I'm unable to repro this from a fresh VM with the given roles enabled. Do you continue to get this error after provisioning a second time?

Given the sometimes tricky nature of Puppet resource dependencies, it would help greatly to have a more detailed log of the run. Can you please specify `puppet_debug: true` in your `.settings.yaml` file and provide the output or `vagrant provision` as an attachment? Thanks!
Comment 2 Matthew Flaschen 2014-06-18 19:54:59 UTC
Created attachment 15683 [details]
Puppet error with VisualEditor provisioning failure

Yes, it's reproducible on repeated provisioning runs.  I've attached the full log from a debug run.
Comment 3 Dan Duvall 2014-06-27 20:59:45 UTC
Matthew, Would you mind trying this again in case the fix to bug #66763 was related? Thanks!
Comment 4 Matthew Flaschen 2014-06-28 20:55:09 UTC
Created attachment 15775 [details]
Log from fresh install of MediaWiki-Vagrant

I tried with a new box, with the latest Ruby change (use distro packages), against git 99633340308c46c2d7ebc488195b2d47be0f235c, and the following roles:
-----
Available roles:

  accountinfo              * gettingstarted             poem                    
  analytics                  globalusage                popups                  
  antispam                 * guidedtour                 proofreadpage           
  antispoof                  gwtoolset                  scribunto               
  apisandbox                 hadoop                     simple_miser            
  apparmor                   hhvm                       simple_performant       
  babel                      hive                       sitematrix              
  betafeatures               https                      templatedata            
  browsertests               jsduck                     textextracts            
  centralauth                labs_initial_content       thumb_on_404            
  centralnotice              mantle                     timedmediahandler       
  chromium                   massmessage                translate               
  cirrussearch             * math                       uls                     
  cite                       mathsearch                 uploadwizard            
  cldr                       mleb                       urlshortener            
  codeeditor               * mobilefrontend             vectorbeta              
  commonsmetadata            multimedia               * visualeditor            
  confirmedit                multimediaviewer           wikidiff2               
  doublewiki                 mysql                    * wikieditor              
* echo                       navigationtiming           wikihiero               
  education                  newusermessage             wikilove                
* eventlogging               oauth                      wikimania_scholarships  
* flow                       pagedtiffhandler         * wikimediaevents         
  fss                        pageimages                 wikimetrics             
  fundraising                pagetriage                 wikitech                
  gadgets                  * parserfunctions            xhprof                  
  geodata                  * parsoid                                            
  geshi                      pdfhandler                                         

Roles marked with '*' are enabled.
Use "vagrant enable-role" & "vagrant disable-role" to customize.
-----
I got the attached log.  You can see that VisualEditor failed, first with:

Sat Jun 28 06:17:50 +0000 2014 /Stage[main]/Role::Visualeditor/Mediawiki::Extension[VisualEditor]/Browsertests::Bundle[/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Ruby::Bundle[/vagra\
nt/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Exec[bundle-install-/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/returns (err): change from notrun to 0 failed: Workin\
g directory '/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser' does not exist

It is not the first failure (Math also failed due to bug 66807), but I'm not sure the Math failure is related.
Comment 5 Dan Duvall 2014-06-30 20:59:40 UTC
Can you verify the working commit of VE and its submodules? i.e. Please provide the output of `git status`, `git show-ref HEAD`, and `git submodule` under the mediawiki/extensions/VisualEditor subdirectory.
Comment 6 Matthew Flaschen 2014-06-30 23:31:15 UTC
Sure.

matthew@matthew-t520: ~/Code/Wikimedia/vagrant-ruby-visualeditor/mediawiki/extensions/VisualEditor (master|✔)% git status
# On branch master
nothing to commit (working directory clean)
matthew@matthew-t520: ~/Code/Wikimedia/vagrant-ruby-visualeditor/mediawiki/extensions/VisualEditor (master|✔)% git show-ref HEAD
4be59a00c12580e24e2de673c14e082bf714ee9c refs/remotes/origin/HEAD
matthew@matthew-t520: ~/Code/Wikimedia/vagrant-ruby-visualeditor/mediawiki/extensions/VisualEditor (master|✔)% git submodule
 a014302f441dda5c4805d378f4ccb67bc1d5e566 lib/ve (a014302)

Note, this is from a fresh MediaWiki-Vagrant VM I created (same one as comment #4), not my regular MediaWiki-Vagrant VM.
Comment 7 Matthew Flaschen 2014-07-04 01:28:56 UTC
Created attachment 15845 [details]
Fresh install on 2014-07-03

It eventually failed due to not getting all the Debian packages.  I didn't try (yet) to re-provision and see if that fixed it

Dan, let's decide to how to proceed Tuesday.  I will make sure I don't lose the apt-cache, so I won't have to re-download the vast majority that did succeed (or the trusty base box).
Comment 8 Matthew Flaschen 2014-07-08 22:03:14 UTC
VisualEditor is working now on that box (after a vagrant up --provision), except there are timeouts in the browser tests.

Next (when I have a chance), I'm going to try to destroy that box, and create a fresh one (but using the same Debian packages), to see if the problem manifests on a fresh build.
Comment 9 Bryan Davis 2014-07-09 20:32:56 UTC
First try for me on a Trusty VM that had never had VE enabled before failed with:

Error: Working directory '/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser' does not exist
Error: /Stage[main]/Role::Visualeditor/Mediawiki::Extension[VisualEditor]/Browsertests::Bundle[/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Ruby::Bundle[/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/Exec[bundle-install-/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser]/returns: change from notrun to 0 failed: Working directory '/vagrant/mediawiki/extensions/VisualEditor/modules/ve-mw/test/browser' does not exist

The problem for me was that browsertests::bundle doesn't require the git::clone.
Comment 10 Gerrit Notification Bot 2014-07-09 20:39:52 UTC
Change 145127 had a related patch set uploaded by BryanDavis:
Require git::clone before browsertests::bundle

https://gerrit.wikimedia.org/r/145127
Comment 11 Gerrit Notification Bot 2014-07-09 20:41:23 UTC
Change 145127 merged by jenkins-bot:
Require git::clone before browsertests::bundle

https://gerrit.wikimedia.org/r/145127
Comment 12 Matthew Flaschen 2014-07-09 20:48:40 UTC
That solution makes perfect sense, and matches the symptoms, so I'm marking this fixed and not doing the retesting I mentioned in comment #8.

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


Navigation
Links