Closed raulfunkie closed 4 years ago
Hi, @raulfunkie. What happens when you restart Homebridge? Does it then work again?
Yes. It starts to work normally again. And this happens after a while (again).
@raulfunkie - in that case, what we really need is a log showing what happens around the time this problem starts happening.
Please can you add "Debug.Verbose" to the "options" array in your config.json, and run: homebridge -D
Then see if you can catch the problem starting, and email me the complete log (it will be quite large) to me at adrian.cable@gmail.com. Also let me know whether you are using a Nest account or a Google account. Thanks!
Can I add that value to the config.json file and then run homebridge using pm2? It's keeping an error log and output log too.
Just confirm and I'll do it right away and wait for it to happen.
Yes - just to be clear - in config.json, under
“platform”: “Nest”,
add
“options”: [ “Debug.Verbose” ],
You’ll also need to make sure homebridge runs with the -D command line parameter. (This is not the same as setting the DEBUG environment variable, which I don’t need.)
On Jun 5, 2020, at 17:29, Raul Rincon notifications@github.com wrote:
Can I add that value to the config.json file and then run homebridge using pm2? It's keeping an error log and output log too.
Just confirm and I'll do it right away and wait for it to happen.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Like that?
Raul - exactly - and run Homebridge with the -D command line parameter.
On Jun 6, 2020, at 10:42, Raul Rincon notifications@github.com wrote:
Like that?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Alright just did that, but I'm not sure where I can find the log for this particular run of homebridge.
Raul - you use pm2, right? I believe that stores logs on your behalf.
Or just stop pm2 and run Homebridge manually, and the logs will appear on the console.
On Jun 6, 2020, at 10:56, Raul Rincon notifications@github.com wrote:
Alright just did that, but I'm not sure where I can find the log for this particular run of homebridge.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
There you go.
Raul - great - the log is set up correctly. But we will need to wait till you get the error, and then send me the log straight after.
In this log, I see you connecting to the Nest service fine, and then the log stops before there are any errors.
On Jun 6, 2020, at 11:04, Raul Rincon notifications@github.com wrote:
hb-verbose.log
There you go.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Oh that makes sense. I’ll run it again and leave it be so it registers what happens when it fails. Sorry about that!
Raul - perfect! Thanks for your help.
On Jun 6, 2020, at 11:18, Raul Rincon notifications@github.com wrote:
Oh that makes sense. I’ll run it again and leave it be so it registers what happens when it fails. Sorry about that!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
I just ran the command again adding: tee /home/pi/hb.log
so it logs the console output. I'll keep an eye out when it crashes so I can attach the log right away here.
Thanks for your help and time!
Not sure what happened but the console (terminal window) stopped updating events at around 3:41pm, and I checked the .log file and it stopped updating around 3:57pm (I can't see an error on the console tho.)
I stopped the process (ctrl+c) and this showed:
[6/6/2020, 3:40:56 PM] [Hue] zigbee: gateway request 967: get /sensors
[6/6/2020, 3:40:56 PM] [Hue] zigbee: gateway request 967: ok
[6/6/2020, 3:41:01 PM] [Hue] zigbee: gateway request 968: get /sensors
[6/6/2020, 3:41:01 PM] [Hue] zigbee: gateway request 968: ok
[6/6/2020, 3:41:06 PM] [Hue] zigbee: gateway request 969: get /sensors
[6/6/2020, 3:41:06 PM] [Hue] zigbee: gateway request 969: ok
[6/6/2020, 3:41:11 PM] [Hue] zigbee: gateway request 970: get /sensors
[6/6/2020, 3:41:11 PM] [Hue] zigbee: gateway request 970: ok
client_loop: send disconnect: Broken pipe
Here's the file for reference: hb-verbose2.log
So, I'm running homebridge again using this command to run it from pm2: pm2 start homebridge -- -D
.
It will pass the -D
argument to homebridge, and will also keep the logs of the console and any errors homebridge might throw. Let's see how this one works.
Died on me again. Here are the logs. Not even sure if it's related to Nest or what, since it keeps on logging things (but home app shows devices from Homebridge as No Response). homebridge-out.log homebridge-error.log
@raulfunkie - the logs look fine. We don't see any evidence of the 400/502 errors you saw before. Is it all your Homebridge devices going to 'No Response' or just the Nest devices? If the former, it probably isn't to do with the Nest plug-in. (although I do still want to troubleshoot the 400/502 errors you're getting, if you can reproduce that.)
Yeah seems like it’s something else causing the issue. All devices go No Response
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug Getting a bunch of errors on homebridge and rendering all devices useless. (No Response)
To Reproduce Steps to reproduce the behavior:
Expected behavior It should work forever and ever and ever and ever.
Include with your bug report this version info:
Make sure you have the latest LTS from https://nodejs.org and the latest packages:
npm upgrade -g homebridge homebridge-nest
Also include debug log output from startup through seeing the issue:
DEBUG=* homebridge -D