Node-Red: upgrading palette node-red-contrib-home-assistant-websocket breaks nodes

I’m using node-red in a docker container with the node-red-contrib-home-assistant-websocket palette 0.6.1.
All works fine but when I try to upgrade this palette to latest available via node-red UI, when I restart node red all node-red-contrib-home-assistant-websocket disappear and became unavailable.
What am I missing?
Thank You

logs? more info?

Here the palette upgrade logs:

-----------------------------------------------------------
2019-05-25T13:12:10.229Z Install : node-red-contrib-home-assistant-websocket 0.11.0

2019-05-25T13:12:10.345Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-05-25T13:12:11.523Z [err] npm
2019-05-25T13:12:11.524Z [err]  info it worked if it ends with ok
2019-05-25T13:12:11.524Z [err] npm
2019-05-25T13:12:11.525Z [err]  info using [email protected]
2019-05-25T13:12:11.525Z [err] npm info 
2019-05-25T13:12:11.525Z [err] using [email protected]
2019-05-25T13:12:16.732Z [err] npm
2019-05-25T13:12:16.732Z [err]  
2019-05-25T13:12:16.733Z [err] http
2019-05-25T13:12:16.733Z [err]  
2019-05-25T13:12:16.733Z [err] fetch
2019-05-25T13:12:16.734Z [err]  GET 200 https://registry.npmjs.org/node-red-contrib-home-assistant-websocket 566ms
2019-05-25T13:12:17.760Z [err] npm 
2019-05-25T13:12:17.760Z [err] http fetch GET 200 https://registry.npmjs.org/p-iteration 273ms
2019-05-25T13:12:17.835Z [err] npm
2019-05-25T13:12:17.836Z [err]  
2019-05-25T13:12:17.838Z [err] http
2019-05-25T13:12:17.839Z [err]  
2019-05-25T13:12:17.840Z [err] fetch GET 200 https://registry.npmjs.org/ws 347ms
2019-05-25T13:12:18.613Z [err] npm
2019-05-25T13:12:18.614Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi%2fjoi 1129ms
2019-05-25T13:12:19.700Z [err] npm
2019-05-25T13:12:19.700Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi%2fhoek 1022ms
2019-05-25T13:12:19.757Z [err] npm http 
2019-05-25T13:12:19.758Z [err] fetch GET 200 https://registry.npmjs.org/@hapi%2faddress 1079ms
2019-05-25T13:12:19.798Z [err] npm
2019-05-25T13:12:19.798Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi%2ftopo 1118ms
2019-05-25T13:12:20.856Z [err] npm 
2019-05-25T13:12:20.857Z [err] http fetch GET 200 https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.8.tgz 228ms
2019-05-25T13:12:21.422Z [err] npm 
2019-05-25T13:12:21.422Z [err] http fetch GET 200 https://registry.npmjs.org/node-red-contrib-home-assistant-websocket/-/node-red-contrib-home-assistant-websocket-0.11.0.tgz 791ms
2019-05-25T13:12:21.423Z [err] npm
2019-05-25T13:12:21.423Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi/hoek/-/hoek-6.2.3.tgz 799ms
2019-05-25T13:12:21.424Z [err] npm
2019-05-25T13:12:21.425Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi/address/-/address-2.0.0.tgz 805ms
2019-05-25T13:12:21.427Z [err] npm
2019-05-25T13:12:21.427Z [err]  http fetch GET 200 https://registry.npmjs.org/@hapi/joi/-/joi-15.0.0.tgz 800ms
2019-05-25T13:12:21.432Z [err] npm 
2019-05-25T13:12:21.432Z [err] http fetch GET 200 https://registry.npmjs.org/@hapi/topo/-/topo-3.1.0.tgz 809ms
2019-05-25T13:12:21.944Z [err] npm
2019-05-25T13:12:21.944Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:21.964Z [err] npm
2019-05-25T13:12:21.965Z [err]  info lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:21.976Z [err] npm
2019-05-25T13:12:21.976Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.014Z [err] npm
2019-05-25T13:12:22.015Z [err]  info 
2019-05-25T13:12:22.016Z [err] lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.024Z [err] npm
2019-05-25T13:12:22.024Z [err]  info
2019-05-25T13:12:22.027Z [err]  
2019-05-25T13:12:22.027Z [err] lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.070Z [err] npm
2019-05-25T13:12:22.071Z [err]  info lifecycle
2019-05-25T13:12:22.073Z [err]  [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.113Z [err] npm
2019-05-25T13:12:22.114Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.123Z [err] npm info lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.133Z [err] npm
2019-05-25T13:12:22.133Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.167Z [err] npm
2019-05-25T13:12:22.168Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.176Z [err] npm
2019-05-25T13:12:22.177Z [err]  info lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.185Z [err] npm
2019-05-25T13:12:22.186Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.288Z [err] npm
2019-05-25T13:12:22.289Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.295Z [err] npm
2019-05-25T13:12:22.295Z [err]  info lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.302Z [err] npm
2019-05-25T13:12:22.302Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.351Z [err] npm
2019-05-25T13:12:22.352Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.359Z [err] npm
2019-05-25T13:12:22.360Z [err]  info
2019-05-25T13:12:22.361Z [err]  lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.369Z [err] npm
2019-05-25T13:12:22.370Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.409Z [err] npm
2019-05-25T13:12:22.410Z [err]  info lifecycle [email protected]~preuninstall: [email protected]
2019-05-25T13:12:22.416Z [err] npm
2019-05-25T13:12:22.417Z [err]  info lifecycle [email protected]~uninstall: [email protected]
2019-05-25T13:12:22.423Z [err] npm
2019-05-25T13:12:22.423Z [err]  info lifecycle [email protected]~postuninstall: [email protected]
2019-05-25T13:12:22.593Z [err] npm
2019-05-25T13:12:22.602Z [err]  info lifecycle [email protected]~preinstall: [email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle [email protected]~preinstall: [email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle [email protected]~preinstall: [email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle @hapi/[email protected]~preinstall: @hapi/[email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle @hapi/[email protected]~preinstall: @hapi/[email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle @hapi/[email protected]~preinstall: @hapi/[email protected]
2019-05-25T13:12:22.603Z [err] npm info lifecycle @hapi/[email protected]~preinstall: @hapi/[email protected]
2019-05-25T13:12:22.656Z [err] npm 
2019-05-25T13:12:22.658Z [err] info linkStuff [email protected]
2019-05-25T13:12:22.665Z [err] npm 
2019-05-25T13:12:22.665Z [err] info linkStuff [email protected]
2019-05-25T13:12:22.672Z [err] npm info linkStuff [email protected]
2019-05-25T13:12:22.677Z [err] npm 
2019-05-25T13:12:22.678Z [err] info linkStuff @hapi/[email protected]
2019-05-25T13:12:22.682Z [err] npm 
2019-05-25T13:12:22.683Z [err] info linkStuff @hapi/[email protected]
2019-05-25T13:12:22.687Z [err] npm 
2019-05-25T13:12:22.688Z [err] info linkStuff @hapi/[email protected]
2019-05-25T13:12:22.693Z [err] npm 
2019-05-25T13:12:22.693Z [err] info linkStuff @hapi/[email protected]
2019-05-25T13:12:22.729Z [err] npm info lifecycle [email protected]~install: [email protected]
2019-05-25T13:12:22.740Z [err] npm
2019-05-25T13:12:22.741Z [err]  info lifecycle [email protected]~install: [email protected]
2019-05-25T13:12:22.747Z [err] npm
2019-05-25T13:12:22.766Z [err]  info lifecycle [email protected]~install: [email protected]
2019-05-25T13:12:22.766Z [err] npm info lifecycle @hapi/[email protected]~install: @hapi/[email protected]
2019-05-25T13:12:22.775Z [err] npm info lifecycle @hapi/[email protected]~install: @hapi/[email protected]
2019-05-25T13:12:22.780Z [err] npm info lifecycle @hapi/[email protected]~install: @hapi/[email protected]
2019-05-25T13:12:22.787Z [err] npm 
2019-05-25T13:12:22.787Z [err] info lifecycle @hapi/[email protected]~install: @hapi/[email protected]
2019-05-25T13:12:22.799Z [err] npm 
2019-05-25T13:12:22.799Z [err] info lifecycle [email protected]~postinstall: [email protected]
2019-05-25T13:12:22.808Z [err] npm 
2019-05-25T13:12:22.808Z [err] info lifecycle [email protected]~postinstall: [email protected]
2019-05-25T13:12:22.815Z [err] npm
2019-05-25T13:12:22.817Z [err]  info lifecycle [email protected]~postinstall: [email protected]
2019-05-25T13:12:22.823Z [err] npm 
2019-05-25T13:12:22.823Z [err] info lifecycle @hapi/[email protected]~postinstall: @hapi/[email protected]
2019-05-25T13:12:22.834Z [err] npm 
2019-05-25T13:12:22.835Z [err] info lifecycle @hapi/[email protected]~postinstall: @hapi/[email protected]
2019-05-25T13:12:22.842Z [err] npm 
2019-05-25T13:12:22.843Z [err] info
2019-05-25T13:12:22.844Z [err]  lifecycle @hapi/[email protected]~postinstall: @hapi/[email protected]
2019-05-25T13:12:22.853Z [err] npm 
2019-05-25T13:12:22.854Z [err] info lifecycle @hapi/[email protected]~postinstall: @hapi/[email protected]
2019-05-25T13:12:23.189Z [err] npm 
2019-05-25T13:12:23.189Z [err] info lifecycle undefined~preshrinkwrap: undefined
2019-05-25T13:12:23.226Z [err] npm 
2019-05-25T13:12:23.226Z [err] info lifecycle undefined~shrinkwrap: undefined
2019-05-25T13:12:23.260Z [err] npm
2019-05-25T13:12:23.261Z [err]  info lifecycle undefined~postshrinkwrap: undefined
2019-05-25T13:12:23.280Z [out] + [email protected]
2019-05-25T13:12:23.280Z [out] added 6 packages, removed 6 packages and updated 1 package in 10.116s
2019-05-25T13:12:23.316Z [err] npm
2019-05-25T13:12:23.318Z [err]  info ok 
2019-05-25T13:12:23.350Z rc=0

Here the screenshot of the results after the upgrade:

Here the docker logs after the restart:

odered     | > [email protected] start /usr/src/node-red
nodered     | > node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"
nodered     | 
nodered     | 25 May 15:13:35 - [info] 
nodered     | 
nodered     | Welcome to Node-RED
nodered     | ===================
nodered     | 
nodered     | 25 May 15:13:35 - [info] Node-RED version: v0.20.5
nodered     | 25 May 15:13:35 - [info] Node.js  version: v8.1.3
nodered     | 25 May 15:13:35 - [info] Linux 4.19.34-v7+ arm LE
nodered     | 25 May 15:13:36 - [info] Loading palette nodes
nodered     | 25 May 15:13:41 - [info] Dashboard version 2.13.2 started at /ui
nodered     | 25 May 15:13:41 - [warn] ------------------------------------------------------
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/server] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/server-events] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/server-state-changed] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/trigger-state] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/poll-state] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/api-call-service] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/ha-fire-event] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/api-current-state] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/ha-get-entities] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/api-get-history] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/api-render-template] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/ha-wait-until] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] [node-red-contrib-home-assistant-websocket/ha-api] SyntaxError: Unexpected token ...
nodered     | 25 May 15:13:41 - [warn] ------------------------------------------------------
nodered     | 25 May 15:13:41 - [info] Settings file  : /data/settings.js
nodered     | 25 May 15:13:41 - [info] Context store  : 'default' [module=memory]
nodered     | 25 May 15:13:41 - [info] User directory : /data
nodered     | 25 May 15:13:41 - [info] Server now running at http://127.0.0.1:1880/
nodered     | 25 May 15:13:42 - [info] Active project : node-RED
nodered     | 25 May 15:13:42 - [info] Flows file     : /data/projects/node-RED/flows.json
nodered     | 25 May 15:13:42 - [info] Waiting for missing types to be registered:
nodered     | 25 May 15:13:42 - [info]  - server
nodered     | 25 May 15:13:42 - [info]  - server-state-changed
nodered     | 25 May 15:13:42 - [info]  - api-call-service
nodered     | 25 May 15:13:42 - [info]  - api-current-state
nodered     | 25 May 15:13:42 - [info]  - trigger-state
nodered     | 25 May 15:13:42 - [info]  - server-events
nodered     | 25 May 15:13:42 - [info]  - poll-state
1 Like

Requires Node v8.12+ you’re running v8.1.3

Mmmm @Kermit does it means another docker images? I suspect it isn’t yet released for rpi.
I don’t remember to have ever installed node.js
npm list ran inside the container tells:

node-red@europa:/data$ npm list
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
[email protected] /data
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected]
└─┬ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected]
└─┬ socket.io@2.2.0
β”œβ”€β”€ [email protected] deduped
β”œβ”€β”¬ engine.io@3.3.2
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ └── [email protected] deduped
β”œβ”€β”¬ [email protected]
β”‚ └── [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ └── [email protected]
└─┬ [email protected]
β”œβ”€β”€ [email protected] deduped
β”œβ”€β”¬ [email protected]
β”‚ └── [email protected] deduped
└── [email protected] deduped

npm info ok

Hi,

I have the same issue after upgrading the palette

Some blocks are missing :thinking:

image

I only have those two blocks