Page MenuHomePhabricator

Vagrant git-update error for event logging
Closed, InvalidPublic

Description

When I try to do vagrant git-update --force I get:

==> Updating eventlogging ...
[*] Updating repo in /vagrant/srv/eventlogging ...
fatal: unable to access 'https://gerrit.wikimedia.org/r/p/eventlogging.git/': Failed to connect to gerrit.wikimedia.org port 443: Connection timed out
Current branch master is up to date.
[*] Updating dependencies for eventlogging ...
Traceback (most recent call last):
  File "./virtualenv/bin/pip", line 7, in <module>
    from pip import main
  File "/vagrant/srv/eventlogging/virtualenv/local/lib/python2.7/site-packages/pip/__init__.py", line 21, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
  File "/vagrant/srv/eventlogging/virtualenv/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 62, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
  File "/vagrant/srv/eventlogging/virtualenv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 29, in <module>
    import urllib3
ImportError: No module named urllib3
 ***** Could not update dependencies of eventlogging !

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The connection timeout is not an issue here, it fails even without it.

Is puppet on vagrant up to date? seems that some deps need to be added to vagrant-puppet

@Nuria Yes, I'm using the latest vagrant puppet.

Hm, dunno what is up with vagrant git-update in general. EventLogging seemed to update just fine for me:

==> Updating eventlogging ...
[*] Updating repo in /vagrant/srv/eventlogging ...
Current branch master is up to date.
[*] Updating dependencies for eventlogging ...
Obtaining file:///vagrant/srv/eventlogging
...
Installing collected packages: eventlogging
  Found existing installation: eventlogging 0.9.post20170410
    Uninstalling eventlogging-0.9.post20170410:
      Successfully uninstalled eventlogging-0.9.post20170410
  Running setup.py develop for eventlogging
Successfully installed eventlogging

but changeprop did not! :)

npm ERR! node-rdkafka@0.10.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
...
 ***** Could not update dependencies of changeprop !

I also had quite a few permission errors for mediawiki and some extensions. This is on a fresh mw vagrant jessie box.

Maybe gerrit was just unresponsive when you ran this @Pchelolo ?

At that point - yes, just tried to rerun it - same thing. I have vagrant settings nfs_shares off because of the T158617 , otherwise it's a standard vagrant setup

Nuria moved this task from Wikistats to Deprioritized on the Analytics board.

@Pchelolo : depririotizing as we do not think we will have bandwith to troubleshoot this in the near term, let us know if you disagree.

Ok, seems like something was corrupted in my vagrant setup. After deleting the virtualenv and reprovisioning it finally started to work correctly.