Page MenuHomePhabricator

Deployment to canary causes an import error on docopt
Closed, ResolvedPublic

Description

After a frustrating time wading through various errors deploying revscoring 2 to beta, I decided to attempt a canary deployment to production (scb1002.eqiad.wmnet) just to see what would happen... This caused about 3 minutes of downtime on that node.

The service failed to start, with the error:

File "./ores/applications/wsgi.py", line 24, in <module>
ImportError: No module named 'docopt'

I rolled back too quickly to examine the state of the virtualenv directory. On happy production nodes, the file /srv/deployment/ores/venv/lib/python3.4/site-packages/docopt.py is present.

Event Timeline

Confirmed that the wheel is present in submodules/wheels/docopt-0.6.2-py2.py3-none-any.whl.

This seems to be caused by T179095, we are rebuilding the venv directory empty.

Halfak claimed this task.