[Labs-l] [tools] [kubernetes] [node] NodeJS webservices on Kubernetes may need npm packages to be rebuilt
Bryan Davis
bd808 at wikimedia.org
Thu Feb 9 16:49:52 UTC 2017
Magnus ran into a problem with one of his tools [0] that may affect
others as well.
The version of Node used for WMF's production services running on
Debian Jessie has been upgraded to v6.9.1 recently [1]. We also
rebuilt the Docker base images that are used to run tools on
Kubernetes on 2017-02-08 and subsequently restarted all of the
Kubernetes tools to pick up the new containers and switch to a newer
version of the Docker runtime [2].
This Node version update may be incompatible with some npm installed
packages built with the previous version of node. The fix for Magnus'
tool was:
$ webservice stop
$ webservice --backend=kubernetes nodejs shell
$ cd www/js
$ mv node_modules node_modules-old
$ npm install
$ exit
$ webservice --backend=kubernetes nodejs start
[0]: https://phabricator.wikimedia.org/T157678
[1]: https://phabricator.wikimedia.org/T149331
[2]: https://tools.wmflabs.org/sal/log/AVocMWWhHQCSeVEJfJFA
Bryan
--
Bryan Davis Wikimedia Foundation <bd808 at wikimedia.org>
[[m:User:BDavis_(WMF)]] Sr Software Engineer Boise, ID USA
irc: bd808 v:415.839.6885 x6855
More information about the Labs-l
mailing list