Updating to latest Local Server broke my Websockets

I’m at my wits’ end here, so if anyone can help, please do so.

I use a combination of Blynk and Node-Red with the excellent websockets contributation made by @tzapulica
This system runs via a local server on a Raspberry Pi and controls my home’s heating, hot water etc

This morning, when I tried to use the Android app to turn on the hot water, the app complained that the local server was outdated. I logged in to the pi, downloaded the newest server.jar (0.20.1), updated the symlink I use and rebooted.

…bang.

Nothing was working. Frantically, I tried to switch to the old server version (0.17.0). Still no dice.

I’ve tried updating everything via npm to their newest versions, but still no go.

The node-red behavior is that the Blynk websocket nodes try to connect, then go to error and disconnect. I even tried starting a completely new node-red sketch with just one node. Same behavior.

Here are some relevant sections from my server’s blynk.log (debug level: TRACE) and my syslog:

blynk.log

2016-12-10 16:21:30.859 DEBUG - Generated: io.netty.util.internal.matchers.io.netty.handler.codec.http.HttpObjectMatcher
2016-12-10 16:21:31.045 DEBUG - Generated: io.netty.util.internal.matchers.io.netty.handler.codec.http.websocketx.WebSocketFrameMatcher
2016-12-10 16:21:31.722 DEBUG - Discarded inbound message HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /websockets HTTP/1.1
Connection: Upgrade
Upgrade: websocket
Host: 192.168.1.50:8082
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: MTMtMTQ4MTM3OTY1MDgyNA==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
content-length: 0 that reached at the tail of the pipeline. Please check your pipeline configuration.
2016-12-10 16:21:31.724 DEBUG - Discarded inbound message HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /websockets HTTP/1.1
Connection: Upgrade
Upgrade: websocket
Host: 192.168.1.50:8082

syslog

Dec 10 16:21:29 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:29 - [info] Started flows
Dec 10 16:21:30 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:30 - [error] [blynk-websockets-out-write:Disturb Level] Error: not opened
Dec 10 16:21:30 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:30 - [error] [blynk-websockets-out-write:Heating Preference] Error: not opened
Dec 10 16:21:30 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:30 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:31 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:31 - [error] [blynk-websockets-out-write:Motion Detector PIR] Error: not opened
Dec 10 16:21:31 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:31 - [error] [blynk-websockets-out-write:Light Level] Error: not opened
Dec 10 16:21:32 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:32 - [info] [mqtt-broker:ed1016e9.666508] Connected to broker: mqtt://rPiHomeAutomation.tenaron.com:1883
Dec 10 16:21:32 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:32 - [error] [blynk-websockets-out-write:Ext Temp] Error: not opened
Dec 10 16:21:33 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:33 - [error] [blynk-websockets-out-write:Ext Pressure] Error: not opened
Dec 10 16:21:33 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:33 - [error] [blynk-websockets-out-write:Ext Light] Error: not opened
Dec 10 16:21:33 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:33 - [error] [blynk-websockets-out-write:Ext Temp] Error: not opened
Dec 10 16:21:33 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:33 - [error] [blynk-websockets-out-write:Ext Pressure] Error: not opened
Dec 10 16:21:33 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:33 - [error] [blynk-websockets-out-write:Ext Light] Error: not opened
Dec 10 16:21:34 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:34 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:34 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:34 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:35 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:35 - [error] [blynk-websockets-out-write:Blynk Terminal] Error: not opened
Dec 10 16:21:35 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:35 - [error] [blynk-websockets-out-write:Blynk LCD Bottom] Error: not opened
Dec 10 16:21:35 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:35 - [error] [blynk-websockets-out-write:Blynk LCD Top] Error: not opened
Dec 10 16:21:36 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:36 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:36 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:36 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:38 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:38 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:38 rPiHomeAutomation rsyslogd-2007: action ‘action 17’ suspended, next retry is Sat Dec 10 16:22:08 2016 [try You searched for error 2007 - rsyslog ]
Dec 10 16:21:38 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:38 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:40 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:40 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:40 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:40 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:41 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:41 - [error] [blynk-websockets-out-write:Ext Temp] Error: not opened
Dec 10 16:21:41 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:41 - [error] [blynk-websockets-out-write:Ext Light] Error: not opened
Dec 10 16:21:41 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:41 - [error] [blynk-websockets-out-write:Ext Pressure] Error: not opened
Dec 10 16:21:42 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:42 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:42 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:42 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:44 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:44 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:44 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:44 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:46 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:46 - [error] [blynk-websockets-out-write:Temperature] Error: not opened
Dec 10 16:21:46 rPiHomeAutomation Node-RED[357]: 10 Dec 16:21:46 - [error] [blynk-websockets-out-write:Humidity] Error: not opened
Dec 10 16:21:46 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: error
Dec 10 16:21:47 rPiHomeAutomation Node-RED[357]: close

@tzapulica, @Dmitriy do you guys have any ideas?

Thanks,

Aris

Suggest you disable automatic app updates and keep old versions of the app.

In hindsight, that’s probably a good suggestion which I will adopt. Any ideas for getting me out of the hole in the meantime? :slight_smile:

Please attach full blynk.log. What blynk server version did you have before update?

Shouldn’t it be “websocket”?

Try https://github.com/blynkkk/blynk-server/releases/download/v0.20.1/server-0.20.2-SNAPSHOT.jar does that help?

No idea, to be honest. But I didn’t change anything at all and before it was all working perfectly.

Log here.

Old version: server-0.17.0.jar
New version: server-0.20.1.jar

Thanks for the quick reply!

One second, trying.

@Dmitriy, you god of coding, what did you do? That fixed it. :slight_smile:

1 Like

Look like I changed websockets path by mistake. Sorry. In fixed build I changed websocket to websockets. Will update builds.

Works perfectly now. What puzzles me is that the problem was not fixed if I changed the symlink back to the 0.17.0 version and re-ran that one. Also tried using an older (iphone, unchanged) version of the Blynk app that was working this morning and still the “old” behavior wouldn’t return. Odd.

I’m wondering what/where this was persisted.

You can’t always do downgrade. Especially after such big update and jump through so many versions. You are lucky everything is woking :slight_smile: after that.

The same problem 1:1 :frowning2:
Where can I get server-0.20.2-SNAPSHOT.jar ? Now it 404

I updated 0.20.1 build. Just download it again.

Got it ! Its works, thanks !
:+1:

oh man… i just love problems that get sorted before i actually get to see them :smiley:

1 Like