tzapu / node-red-contrib-blynk

Blynk app integration with Node Red
MIT License
17 stars 5 forks source link

Doesn't recover from server down #16

Open scargill opened 8 years ago

scargill commented 8 years ago

It SEEMS that the only way this recovers from the Blynk server being temporarily down - is to restart node-red... any chance of working on that?

Toshibass commented 8 years ago

+1 for that, I have same same critical issue, I am currently using Blynk cloud so when away from home if the blynk server "goes down" or " I lose connection or whatever" Its not that easy to restart node-red.

tzapu commented 8 years ago

hi guys, any node red log files would be very helpful.

scargill commented 8 years ago

As soon as I am at a desk.. certainly

On 23 November 2015 10:34:28 tzapu notifications@github.com wrote:

hi guys, any node red log files would be very helpful.


Reply to this email directly or view it on GitHub: https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-158900059

tzapu commented 8 years ago

have a good trip ;)

btw guys, i m experiencing the following issue randomly, resulting in a node red crash, maybe it is related. i get error

Assertion failed: (0), function uv_err_name, file ../deps/uv/src/uv-common.c, line 75.

have you seen anything similar? does your node red keep running (or being auto restarted) when the connection goes down, or is it dead as well?

Toshibass commented 8 years ago

I don't see any errors in the node-red log for issue #16 just red dot "not connected" on the node, the ONLY way to get the blynk nodes reconnected is to reboot node-red, then I get a green dot "connected" on the node.

Regarding random issue, crashing node-red, I had only 2 a month apart as follows:

26 Oct 16:23:18 - [red] Uncaught Exception: 26 Oct 16:23:18 - Error: write EPIPE at exports._errnoException (util.js:746:11) at WriteWrap.afterWrite (net.js:775:14)

22 Nov 12:41:02 - [info] Started modified flows <--- 12.41pm (midday) was the last time I started a modified flow 23 Nov 01:39:50 - [red] Uncaught Exception: <--- Exception happened 1.39am (not like 48 minutes after starting flows) 23 Nov 01:39:50 - Error: write EIO at exports._errnoException (util.js:746:11) at WriteWrap.afterWrite (net.js:775:14)

One final point I don't use pm2 to auto start/stop node-red currently, I use a .sh file activated in rc.local when the raspi boots... just a wondering if using pm2 would be advantageous.

Toshi

scargill commented 8 years ago

Well all I can say about pm2 is regardless of the odd crash in node red it ALWAYS restarts

On 23 November 2015 06:08:14 Toshibass notifications@github.com wrote:

I don't see any errors in the node-red log for issue #16 just red dot "not connected" on the node, the ONLY way to get the blynk nodes reconnected is to reboot node-red, then I get a green dot "connected" on the node.

Regarding random issue, crashing node-red, I had only 2 a month apart as follows:

26 Oct 16:23:18 - [red] Uncaught Exception: 26 Oct 16:23:18 - Error: write EPIPE at exports._errnoException (util.js:746:11) at WriteWrap.afterWrite (net.js:775:14)

22 Nov 12:41:02 - [info] Started modified flows <--- 12.41pm (midday) was the last time I started a modified flow 23 Nov 01:39:50 - [red] Uncaught Exception: <--- Exception happened 1.39am (not like 48 minutes after starting flows) 23 Nov 01:39:50 - Error: write EIO at exports._errnoException (util.js:746:11) at WriteWrap.afterWrite (net.js:775:14)

One final point I don't use pm2 to auto start/stop node-red currently, I use a .sh file activated in rc.local when the raspi boots... just a wondering if using pm2 would be advantageous.

Toshi


Reply to this email directly or view it on GitHub: https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-158916174

tzapu commented 8 years ago

guys, this is the behaviour of the blynk js library mentained by the guys at blynk. i will try to come up with a solution and issue a pull request to them.

tzapu commented 8 years ago

guys, created a pull request, as soon as it is merged this should be fixed after doing an update of the blynk-library package https://github.com/vshymanskyy/blynk-library-js/pull/11

Toshibass commented 8 years ago

That's great, I had another crash this morning seams as soon as I tried to log on to node-red according to the times

23 Nov 18:54:38 - [info] Started modified flows 24 Nov 09:27:26 - [red] Uncaught Exception: 24 Nov 09:27:26 - Error: write EIO at exports._errnoException (util.js:746:11) at WriteWrap.afterWrite (net.js:775:14)

I think I will try pm2 once I get time today.

Toshibass commented 8 years ago

Just saw the pull request, just to be clear @scargill is using local server and android I am using blynk cloud and Iphone so the issue appears to be a global one.

tzapu commented 8 years ago

hi, the pull request has been merged, but they also need to release a new version of the lib before it can be updated to the fix will be a gobal one as well, it will even work for espruino or whatever else they support in their js lib

tzapu commented 8 years ago

the pull request was accepted and the new version of the blynk lib released. if you update both that and node red contrib blynk you should have auto reconnect on server going away

Toshibass commented 8 years ago

Hi tzapu .. Ok I Just did a update.

(one point about that, I didn't install the blynk lib separately, I use the one that comes with node-red-contrib-blynk so I just ..sudo npm uninstall node-red-contrib-blynk then install it again) so currently "blynk-library", "version": "0.0.24", & "node-red-contrib-blynk", "version": "0.0.17"

Re Node-red .. there was a maintenance release yesterday which solves the "EventEmitter memory leak detected. 11 listeners...." issue.

Obviously time will tell if the updated blynk lib will resolve this #16 issue, I will report back after a period of use,

Thanks for your continued support.

Toshi

scargill commented 8 years ago

NOT solved.

Tonight – “your generic board is not in the network” – I went to Node-Red and the Blynk node had failed. The App was getting history so server ok but it must’ve gone off at sometime during the evening. A reset of Node-Red (latest release) brought it back up – but the node is NOT recovering from server down.

Pete.

From: Toshibass [mailto:notifications@github.com] Sent: 01 December 2015 10:19 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

Hi tzapu .. Ok I Just did a update.

(one point about that, I didn't install the blynk lib separately, I use the one that comes with node-red-contrib-blynk so I just ..sudo npm uninstall node-red-contrib-blynk then install it again) so currently "blynk-library", "version": "0.0.24", & "node-red-contrib-blynk", "version": "0.0.17"

Re Node-red .. there was a maintenance release yesterday which solves the "EventEmitter memory leak detected. 11 listeners...." issue.

Obviously time will tell if the updated blynk lib will resolve this #16 https://github.com/tzapu/node-red-contrib-blynk/issues/16 issue, I will report back after a period of use,

Thanks for your continued support.

Toshi

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-160925848 . https://github.com/notifications/beacon/ABzUg7WrusOMoK_6LW02-rv7EVryGZxEks5pLWuIgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

@Toshibass "blynk-library", "version": "0.0.24", & "node-red-contrib-blynk", "version": "0.0.17" is right. @scargill i need a way to replicate your server going down then... if you quit the blynk server app and restart it, does it reconnect alright ? maybe when it dies, it dies in a different kind of way

scargill commented 8 years ago

You are right. I’ve just done tests. Manually stopping and starting the Blynk server does NOT cause a problem. The whole thing recovers in a matter of several seconds. So it must be something else. I will wait for the next problem and send logs.

From: tzapu [mailto:notifications@github.com] Sent: 02 December 2015 10:19 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

@Toshibass https://github.com/Toshibass "blynk-library", "version": "0.0.24", & "node-red-contrib-blynk", "version": "0.0.17" is right. @scargill https://github.com/scargill i need a way to replicate your server going down then... if you quit the blynk server app and restart it, does it reconnect alright ? maybe when it dies, it dies in a different kind of way

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-161248655 . https://github.com/notifications/beacon/ABzUg0gRwNOMgOJXMBBvn3iP_UpyoZFCks5pLrz5gaJpZM4Gm_QF.gif

scargill commented 8 years ago

I found and fixed an issue with Node-red - and so now my Node-Red/Pi installation runs without issue… however…

This morning I noted that the Android App said my installation was offline – sure emough I looked at Node Red – everything working EXCEPT the Blynk nodes – all with red circles. PM2 RESTART NODE-RED – and they were up and running… so clearly there is still an issue where the node does NOT come back up after a problem even though the local BLYNK server is running..

Don’t know if this helps – BLYNK LOG

00:35:15.232 INFO - pete@scargill.org app joined.

02:37:30.395 INFO - pete@scargill.org app joined.

03:18:18.766 INFO - pete@scargill.org app joined.

04:29:08.117 INFO - pete@scargill.org app joined.

06:06:09.310 INFO - pete@scargill.org app joined.

06:06:11.069 ERROR - User has exceeded message quota limit.

07:50:37.612 INFO - pete@scargill.org app joined.

08:06:18.690 INFO - pete@scargill.org app joined.

08:09:50.750 INFO - pete@scargill.org app joined.

08:35:33.285 INFO - pete@scargill.org app joined.

09:49:26.579 INFO - pete@scargill.org app joined.

10:05:09.537 INFO - pete@scargill.org app joined.

10:26:51.624 INFO - pete@scargill.org app joined.

11:45:51.682 INFO - pete@scargill.org app joined.

11:45:53.073 ERROR - User not logged. /81.174.144.64:44953. Closing.

11:45:55.632 INFO - pete@scargill.org app joined.

11:48:06.295 INFO - pete@scargill.org hardware joined.

From: Peter Scargill [mailto:pete@scargill.org] Sent: 02 December 2015 12:28 To: 'tzapu/node-red-contrib-blynk' reply@reply.github.com; 'tzapu/node-red-contrib-blynk' node-red-contrib-blynk@noreply.github.com Subject: RE: [node-red-contrib-blynk] Doesn't recover from server down (#16)

You are right. I’ve just done tests. Manually stopping and starting the Blynk server does NOT cause a problem. The whole thing recovers in a matter of several seconds. So it must be something else. I will wait for the next problem and send logs.

From: tzapu [mailto:notifications@github.com] Sent: 02 December 2015 10:19 To: tzapu/node-red-contrib-blynk <node-red-contrib-blynk@noreply.github.com mailto:node-red-contrib-blynk@noreply.github.com > Cc: Peter Scargill <pete@scargill.org mailto:pete@scargill.org > Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

@Toshibass https://github.com/Toshibass "blynk-library", "version": "0.0.24", & "node-red-contrib-blynk", "version": "0.0.17" is right. @scargill https://github.com/scargill i need a way to replicate your server going down then... if you quit the blynk server app and restart it, does it reconnect alright ? maybe when it dies, it dies in a different kind of way

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-161248655 . https://github.com/notifications/beacon/ABzUg0gRwNOMgOJXMBBvn3iP_UpyoZFCks5pLrz5gaJpZM4Gm_QF.gif

tzapu commented 8 years ago

06:06:11.069 ERROR - User has exceeded message quota limit. hi, this is a bit worrying. since it is your manual installation, could you increase the quota limit to something silly and see what happens? cheers

scargill commented 8 years ago

A little more info would help – I’m not sure where I’m supposed to do that??

Pete.

From: tzapu [mailto:notifications@github.com] Sent: 07 December 2015 06:01 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

06:06:11.069 ERROR - User has exceeded message quota limit. hi, this is a bit worrying. since it is your manual installation, could you increase the quota limit to something silly and see what happens? cheers

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-162418504 . https://github.com/notifications/beacon/ABzUgwwTV5VtrnIlF5mZUI_RwXv-Qx2Dks5pNRgfgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

let me check. i have seen something similar with blynk.cc and only when connecting the app to the server. it would cause a flood of requests on my esps which in turn kill the connection so they would have to reconnect

tzapu commented 8 years ago

from what they are saying here https://github.com/blynkkk/blynk-server under advanced setup, you have a property that you need to set

user.message.quota.limit=100

as per example config file https://github.com/blynkkk/blynk-server/blob/master/server/tcp-server/src/main/resources/server.properties

since this is a local instalation for you, you should not run into quota limitations at all maybe it is linked

scargill commented 8 years ago

Right – I’ve added the file and taken that up to 250 max. Let’s see what happens and thanks for that. I’ll report back in a few days.

From: tzapu [mailto:notifications@github.com] Sent: 07 December 2015 06:09 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

from what they are saying here https://github.com/blynkkk/blynk-server under advanced setup, you have a property that you need to set

user.message.quota.limit=100

as per example config file https://github.com/blynkkk/blynk-server/blob/master/server/tcp-server/src/main/resources/server.properties

since this is a local instalation for you, you should not run into quota limitations at all maybe it is linked

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-162419365 . https://github.com/notifications/beacon/ABzUg46u3gOiTM7tI_cs0-UhNxwvoTP8ks5pNRoAgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

really curiosu to see what will happen. if it were to default to 10 connections in the absence of that file, it would exaplain disconnecting node red (although it doesn t yet explain why it wouldn t reconnect)

scargill commented 8 years ago

Well it is now set in 2 completely isolated installations – so with luck I’ll know in a matter of days if it has made a difference and will report back.

Pete

From: tzapu [mailto:notifications@github.com] Sent: 07 December 2015 06:41 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

really curiosu to see what will happen. if it were to default to 10 connections in the absence of that file, it would exaplain disconnecting node red (although it doesn t yet explain why it wouldn t reconnect)

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-162425386 . https://github.com/notifications/beacon/ABzUg0vEJ_Uh2_c_TzZVzRybtBR4prmcks5pNSGEgaJpZM4Gm_QF.gif

scargill commented 8 years ago

Not entirely sure what happened here as I’ve not changed anything and I’m not using secure… This morning I noted that my my Node-Red installation in Spain (max increased to 250 as per earlier conversation) showed Blynk as dead….

Here is the log..

07:25:35.185 INFO - pete@scargill.org hardware joined.

07:25:35.190 INFO - pete@scargill.org hardware joined.

07:26:56.900 INFO - Using data dir '/var/blynk'

07:27:04.904 ERROR - Error parsing file '/var/blynk/server.properties'.

07:27:04.904 ERROR - Error parsing file '/var/blynk/admin-0.11.3.jar'.

07:27:04.904 ERROR - Error parsing file '/var/blynk/mail.properties'.

07:27:04.904 ERROR - Error parsing file '/var/blynk/server-0.11.3.jar'.

07:27:04.907 ERROR - Error parsing file '/var/blynk/server-0.11.3.jar.pid'.

07:27:07.268 INFO - Initializing mail transport. Username : techscargill@gmail.com. SMTP host : smtp.gmail.com:587

07:27:13.256 INFO - Plain tcp/ip hardware server port 8442.

07:27:13.264 WARN - ATTENTION. Certificate /var/blynk and key /var/blynk paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.

07:27:19.894 INFO - SSL hardware port 8441.

07:27:19.924 INFO - Enabling SSL for application.

07:27:19.925 WARN - ATTENTION. Server certificate paths cert : '/var/blynk', key : '/var/blynk' - not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.

07:27:21.686 INFO - Application server port 8443.

07:27:21.703 INFO - Administration server port 8777.

07:27:43.689 INFO - pete@scargill.org hardware joined.

A quick restart of Node-Red (pm2 restart node-red) – and all is well !!!

Any ideas?

From: tzapu [mailto:notifications@github.com] Sent: 07 December 2015 06:01 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

06:06:11.069 ERROR - User has exceeded message quota limit. hi, this is a bit worrying. since it is your manual installation, could you increase the quota limit to something silly and see what happens? cheers

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-162418504 . https://github.com/notifications/beacon/ABzUgwwTV5VtrnIlF5mZUI_RwXv-Qx2Dks5pNRgfgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

hi

this 07:27:04.904 ERROR - Error parsing file '/var/blynk/server.properties'. would suggest it s not using the file. I don t know what all those errors mean really.

I am more interested anyway on the node-red side of the log, if possible, when it disconnected. I must setup a local server for myself i guess as i m not using one and let it running for a while.

scargill commented 8 years ago

Another one for you..

This morning the Blynk nodes were dead again – a quick restart of Node-Red again brought them back to life. I checked – the Pi has not reset for over 2 days (and that was deliberate). For a second I wondered if it was down to Node-Red starting before the Blynk server but that theory is now dead.

Nothing in any of the Blynk logs to suggest any problems.

Pete.

From: tzapu [mailto:notifications@github.com] Sent: 08 December 2015 06:59 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi

this 07:27:04.904 ERROR - Error parsing file '/var/blynk/server.properties'. would suggest it s not using the file. I don t know what all those errors mean really.

I am more interested anyway on the node-red side of the log, if possible, when it disconnected. I must setup a local server for myself i guess as i m not using one and let it running for a while.

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-162795162 . https://github.com/notifications/beacon/ABzUg4KcxwLcuBVpJDLC_P9DYi36R-2Kks5pNnc1gaJpZM4Gm_QF.gif

tzapu commented 8 years ago

hi, i d like to see the node-red log at the moment of disconnection cheers

scargill commented 8 years ago

I have attached the node-red log file…

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 08:07 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, i d like to see the node-red log at the moment of disconnection cheers

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163145889 . https://github.com/notifications/beacon/ABzUg_Cgvwm_Zka91_Fpey5l_WUbkDn0ks5pN9i3gaJpZM4Gm_QF.gif

tzapu commented 8 years ago

hi @scargill , i may be slow (so excuse me in advance), but all I am seeing above are blynk server logs, not node red logs...

scargill commented 8 years ago

What I sent you last night were my node-red logs as created by PM2.

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 11:46 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi @scargill https://github.com/scargill , i may be slow, but all I am seeing above are blynk server logs, not node red logs...

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163198362 . https://github.com/notifications/beacon/ABzUgzsjFcVZIU9fsTA9jIYKvfxXGLO9ks5pOAvsgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

It is not visible here: https://github.com/tzapu/node-red-contrib-blynk/issues/16 or on email notifications. Maybe it got ignored by github ?

tzapu commented 8 years ago

last i can see is

07:25:35.185 INFO - pete@scargill.org hardware joined. 07:25:35.190 INFO - pete@scargill.org hardware joined. 07:26:56.900 INFO - Using data dir '/var/blynk' 07:27:04.904 ERROR - Error parsing file '/var/blynk/server.properties'. ...

which looks to me like blynk

scargill commented 8 years ago

Thanks I have logged this with BLYNK. However I should point out that Blynk continues to run because every time the node goes down, restarting Node-Red restores operation.

I’ll let you know what Blynk say about below. Thanks.

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 12:54 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

last i can see is

07:25:35.185 INFO - pete@scargill.org mailto:pete@scargill.org hardware joined. 07:25:35.190 INFO - pete@scargill.org mailto:pete@scargill.org hardware joined. 07:26:56.900 INFO - Using data dir '/var/blynk' 07:27:04.904 ERROR - Error parsing file '/var/blynk/server.properties'. ...

which looks to me like blynk

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163220975 . https://github.com/notifications/beacon/ABzUgz3JdiGcDqtCp7wDFu73TH7W-dzOks5pOBvggaJpZM4Gm_QF.gif

tzapu commented 8 years ago

sorry, what i meant to say is that I have not received or seen any of your node-red logs, only blynk logs.

i have also setup a local blynk server for myself passing a lot of data to try and test this (see here https://github.com/tzapu/node-red-contrib-blynk/issues/20 ) been running for 24h now, with a write every 0.5 seconds, and a lot of updates at once when the app is open on the phone

scargill commented 8 years ago

Sorry…

Ok – erm 24 hours – you’ll need a couple of days – mine does not give up every 5 minutes :) maybe once a day – sometimes less, sometimes more. Ok, I included my node-red log – is it possible the INCLUDE didn’t work? I don’t want to plaster the whole thing in here?

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 13:46 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

sorry, what i meant to say is that I have not received or seen any of your node-red logs, only blynk logs.

i have also setup a local blynk server for myself passing a lot of data to try and test this (see here #20 https://github.com/tzapu/node-red-contrib-blynk/issues/20 ) been running for 24h now, with a write every 0.5 seconds, and a lot of updates at once when the app is open on the phone

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163240325 . https://github.com/notifications/beacon/ABzUg41wOZXAyjzLIhIOMWu1hHJEIxJvks5pOCgdgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

yeah, it doesn t seem to work... dropbox link or similar?

scargill commented 8 years ago

Wil this do?

https://www.dropbox.com/sh/kqp8dz4za9zj2kl/AACwlLA0hYGy0i_cDFt32Fjya?dl=0

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 14:24 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

yeah, it doesn t seem to work... dropbox link or similar?

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163254670 . https://github.com/notifications/beacon/ABzUg0gGBkrejXh-3k5FFguR3ncXo_-5ks5pODDugaJpZM4Gm_QF.gif

tzapu commented 8 years ago

yup, perfect. looked through and i assume this is the non verbose version of the log. could not see any disconnect. errors should appear anyway, but could not see those either. i have 2 thoughts on this:

scargill commented 8 years ago

Hi

Ok I’ve updated both installations to the new versions. I already do one second updates sending a flashing led message to the APP regardless of whether it is online or not.

Will let you know tomorrow how things are going – many thanks for your efforts.

Pete.

From: tzapu [mailto:notifications@github.com] Sent: 09 December 2015 15:04 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

yup, perfect. looked through and i assume this is the non verbose version of the log. could not see any disconnect. errors should appear anyway, but could not see those either. i have 2 thoughts on this:

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163282633 . https://github.com/notifications/beacon/ABzUg2U1fjln2nVbncs-K_DFV6BIEzIXks5pODpYgaJpZM4Gm_QF.gif

scargill commented 8 years ago

Results of some tests… got up this morning 6.30am – both Spanish and UK installations - Blynk nodes dead with red “disconnected”. Late last night neither installation had any issues. Neither Node-Red installation has reset since then (as I would have an email from them).

In both cases, restarting node-red restored blynk node.

Here is a folder within it UK and SPAIN folders with node-red logs and BLYNK logs – ignore any reboots before midnight last night – I was updating other software unrelatedto this.

Hope this helps.

https://www.dropbox.com/sh/zue4tjjujjivdt2/AABKb_ftdS5i4_Wxe9hhN17za?dl=0

Pete.

tzapu commented 8 years ago

hi, found the disconnection 11 Dec 03:26:52 - [info] [blynk-server:9efc257a.6103d8] disconnected 11 Dec 00:57:23 - [info] [blynk-server:70d2fa56.8f2d04] disconnected

is there any chance you could start node-red in verbose mode so we get more data in the log? we re one step closer to this now. i know it s annoying to have to debug... mostly because of the time it needs to happen mine is still alive, connected and kicking data out btw

scargill commented 8 years ago

As I’m using PM2 to autoboot Node-Red I just have to figure out how to update that setup to add –v ……. Hmm…

From: tzapu [mailto:notifications@github.com] Sent: 11 December 2015 07:04 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, found the disconnection 11 Dec 03:26:52 - [info] [blynk-server:9efc257a.6103d8] disconnected 11 Dec 00:57:23 - [info] [blynk-server:70d2fa56.8f2d04] disconnected

is there any chance you could start node-red in verbose mode so we get more data in the log? we re one step closer to this now. i know it s annoying to have to debug... mostly because of the time it needs to happen mine is still alive, connected and kicking data out btw

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163860122 . https://github.com/notifications/beacon/ABzUg5bm_2K2QWLXwiCWHDWgOUdg5A_cks5pOmzrgaJpZM4Gm_QF.gif

scargill commented 8 years ago

Just a reminder that it DID come back up on Node-Red restart (not reboot of Pi)…

From: tzapu [mailto:notifications@github.com] Sent: 11 December 2015 07:04 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, found the disconnection 11 Dec 03:26:52 - [info] [blynk-server:9efc257a.6103d8] disconnected 11 Dec 00:57:23 - [info] [blynk-server:70d2fa56.8f2d04] disconnected

is there any chance you could start node-red in verbose mode so we get more data in the log? we re one step closer to this now. i know it s annoying to have to debug... mostly because of the time it needs to happen mine is still alive, connected and kicking data out btw

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163860122 . https://github.com/notifications/beacon/ABzUg5bm_2K2QWLXwiCWHDWgOUdg5A_cks5pOmzrgaJpZM4Gm_QF.gif

tzapu commented 8 years ago

yeah, i ve i set it up, when node red goes down, it deletes all old connections and creates new ones, so it would have to come back

tzapu commented 8 years ago

look here http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#42-ways-of-starting-processes http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#42-ways-of-starting-processes

On 11 Dec 2015, at 09:15, Peter Scargill notifications@github.com wrote:

Just a reminder that it DID come back up on Node-Red restart (not reboot of Pi)…

From: tzapu [mailto:notifications@github.com] Sent: 11 December 2015 07:04 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, found the disconnection 11 Dec 03:26:52 - [info] [blynk-server:9efc257a.6103d8] disconnected 11 Dec 00:57:23 - [info] [blynk-server:70d2fa56.8f2d04] disconnected

is there any chance you could start node-red in verbose mode so we get more data in the log? we re one step closer to this now. i know it s annoying to have to debug... mostly because of the time it needs to happen mine is still alive, connected and kicking data out btw

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163860122 . https://github.com/notifications/beacon/ABzUg5bm_2K2QWLXwiCWHDWgOUdg5A_cks5pOmzrgaJpZM4Gm_QF.gif

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163861552.

scargill commented 8 years ago

Here’s an interesting thing.

In my Spanish setup, I have TWO Blynk connections – same local server.. ONE of them is disconnected (lasted maybe 24 hours) – but the other is still connected – same server… that indicates to me that the underlying library isn’t at fault here??

Here’s the thing – I went over to the right side of Node-Red where you see the connections – and double clicked on the dead connection to take a look. At that point you have options to delete, cancel or update. I hit update – and despite not making any changes, the DEPLOY light came on at the top of the screen – I hit that and lo – the Blynk connection came back to life. Has to be a clue in there somewhere.

From: tzapu [mailto:notifications@github.com] Sent: 11 December 2015 07:33 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

look here http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#42-ways-of-starting-processes http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#42-ways-of-starting-processes

On 11 Dec 2015, at 09:15, Peter Scargill <notifications@github.com mailto:notifications@github.com > wrote:

Just a reminder that it DID come back up on Node-Red restart (not reboot of Pi)…

From: tzapu [mailto:notifications@github.com] Sent: 11 December 2015 07:04 To: tzapu/node-red-contrib-blynk <node-red-contrib-blynk@noreply.github.com mailto:node-red-contrib-blynk@noreply.github.com > Cc: Peter Scargill <pete@scargill.org mailto:pete@scargill.org > Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, found the disconnection 11 Dec 03:26:52 - [info] [blynk-server:9efc257a.6103d8] disconnected 11 Dec 00:57:23 - [info] [blynk-server:70d2fa56.8f2d04] disconnected

is there any chance you could start node-red in verbose mode so we get more data in the log? we re one step closer to this now. i know it s annoying to have to debug... mostly because of the time it needs to happen mine is still alive, connected and kicking data out btw

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163860122 . https://github.com/notifications/beacon/ABzUg5bm_2K2QWLXwiCWHDWgOUdg5A_cks5pOmzrgaJpZM4Gm_QF.gif

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163861552.

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-163865333 . https://github.com/notifications/beacon/ABzUg3HDiTuNvfvJlEbGiedUuRS4RexWks5pOnO_gaJpZM4Gm_QF.gif

tzapu commented 8 years ago

hi, hitting deploy does in essence what node red restart with do, clears and recreates the connections. my blynk has now been running and pushing data for 5 days without hickup. i need to get a scenario that s more similar to yours. i am using a single token currently, how many are you using? do you have the same pin numbers used on different tokens? like v0 used on both project key 1 and 2 and 3 ? and not sure what else to ask, maybe the issue is in the multiple running dashboards bit...

scargill commented 8 years ago

Hi

In England I am using one token with 16 connections…

In Spain I am using 2 tokens, the first has 4 connections – the second has 17 connections.

This morning both of the Spanish connection were broken.

The first one restarted when I hit UPDATE - DEPLOY

The second one refused to start up even then. However a Node-Red restart brought it back to life.

I’ve no choice but to use 2 connections as I’ve run out of space on the first page. I’ve griped to the BLYNK people about this but to no avail. Their RGB controls are far too big.

From: tzapu [mailto:notifications@github.com] Sent: 13 December 2015 06:15 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, hitting deploy does in essence what node red restart with do, clears and recreates the connections. my blynk has now been running and pushing data for 5 days without hickup. i need to get a scenario that s more similar to yours. i am using a single token currently, how many are you using? do you have the same pin numbers used on different tokens? like v0 used on both project key 1 and 2 and 3 ? and not sure what else to ask, maybe the issue is in the multiple running dashboards bit...

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-164232272 . https://github.com/notifications/beacon/ABzUg4C_FsWivU1UOw28pBcWgkrmqMSAks5pPQSAgaJpZM4Gm_QF.gif

scargill commented 8 years ago

The UK site which has only one connection – has died again. Node-red restart brought it back…

From: tzapu [mailto:notifications@github.com] Sent: 13 December 2015 06:15 To: tzapu/node-red-contrib-blynk node-red-contrib-blynk@noreply.github.com Cc: Peter Scargill pete@scargill.org Subject: Re: [node-red-contrib-blynk] Doesn't recover from server down (#16)

hi, hitting deploy does in essence what node red restart with do, clears and recreates the connections. my blynk has now been running and pushing data for 5 days without hickup. i need to get a scenario that s more similar to yours. i am using a single token currently, how many are you using? do you have the same pin numbers used on different tokens? like v0 used on both project key 1 and 2 and 3 ? and not sure what else to ask, maybe the issue is in the multiple running dashboards bit...

— Reply to this email directly or view it on GitHub https://github.com/tzapu/node-red-contrib-blynk/issues/16#issuecomment-164232272 . https://github.com/notifications/beacon/ABzUg4C_FsWivU1UOw28pBcWgkrmqMSAks5pPQSAgaJpZM4Gm_QF.gif