[Labs-l] [tools] [kubernetes] [node] NodeJS webservices on Kubernetes may need npm packages to be rebuilt

Magnus Manske magnusmanske at googlemail.com
Fri Feb 10 09:01:22 UTC 2017


Many thanks for finding and fixing it!

On Thu, Feb 9, 2017 at 4:50 PM Bryan Davis <bd808 at wikimedia.org> wrote:

> 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
> <(415)%20839-6885>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20170210/23b1efd2/attachment.html>


More information about the Labs-l mailing list