Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hoobs 4 Homebridge crashes various times per day #105

Closed
3 of 7 tasks
Elch08 opened this issue Jan 6, 2022 · 11 comments
Closed
3 of 7 tasks

Hoobs 4 Homebridge crashes various times per day #105

Elch08 opened this issue Jan 6, 2022 · 11 comments

Comments

@Elch08
Copy link

Elch08 commented Jan 6, 2022

Description
A clear and concise description of what the bug is.
My Homebridge needs to restart various times per day. I have 15 Bridges with alltogether 17 Plugins installed. After restart Hoobs4 respectivly Homebridge runs for several hours (sometimes 5 h, sometimes less) and suddenly something causes it crashing. How can I find out what is causing the issue ? How can I debug it ?
Version
Please include the version of HOOBS you are using.
Version 4.1.20

Did you upgrade
Please let us know if you upgraded from a previous version.

  • Yes
  • No

Pervious version
If you upgraded, please let us know your previous version.

Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1?
Did you perform an upgrade from HOOBS 2.1.1? Some things are different.

  • Yes
  • No

What device are you using?
Please let us know the device you are running HOOBS on.

  • HOOBS Box
  • HOOBS SD Card
  • Custom Install

If this is a custom install, what's your operating system?
Please let us know what operating system and version you are using. Ex. Fedora 30 or macOS Catalina.
Raspberry Pi 3B

List your plugins
Please include a list of the plugins you are using. We need to be able to find it on NPM. If the plugin is no published, please include a link to the repository.

  1. Homebridge-samsung-tizen
  2. Homebridge-nest
  3. Homebridge-people-x
  4. Homebridge-shelly
  5. Homebridge-Lifx-lan
  6. Homebridge-nuki
  7. Homebridge-delay-switch
  8. homebridge-dummy
  9. homebridge-fritz
  10. homebridge-alexa
  11. homebridge-dyson-pure-cool
  12. homebridge-hue
  13. homebridge-wemo
  14. homebridge-doorbird
  15. Homebridge-fritz-platform
  16. Homebridge-harmony
  17. Homebridge-roomba2

Post your config
This can be found in the interface, Configuration -> Advanced or you can get it via SSH cat ~/.hoobs/etc/config.json

  • Remove any passwords from the config file. This is public.
POST CONFIG HERE

Post your log
You can get the log from the interface. This is in the Log section.

POST LOG HERE

Additional context
Add any other context about the problem here.

@BobbySlope
Copy link
Member

Please share the logs

@Elch08
Copy link
Author

Elch08 commented Jan 6, 2022

But how can I share it? When Hoobs is running I can see the logs and all seems ok. Do you want these logs?
Because when it crashes the old logs are gone.

@BobbySlope
Copy link
Member

The logs should be persistent. Do you power cycle the box? Or just restart the bridges?

@Elch08
Copy link
Author

Elch08 commented Jan 6, 2022

When the Hoobs crashes the only way to get it back running is by turning off and on the power of my Raspberry Pi. Because Hoobs.local is not accessible after a crash. It only shows a blank or black page.

@BobbySlope
Copy link
Member

Can u ssh into it? Via ssh hoobs@ipadress

https://support.hoobs.org/docs/60e6310b6c19a6a5ca8f5c5f

@Elch08
Copy link
Author

Elch08 commented Jan 6, 2022

I will try when I am back home from work this evening and will report. But of course only, if a crash will have happened again.
In case I am able to log in, what is the command to see the logs ?
And how do I export the logs?

@BobbySlope
Copy link
Member

Log

This will display the log from all bridges. You can also use this command to show the log from a single bridge.

sudo hbs log
You can also display debug information after the fact. This comes in handy if you can't tuen on debug mode.

Available options

Flag Description
-b, --bridge Show the log from a single bridge
-t, --tail Set the number of lines to show, default 50
-d, --debug Show debug messages

@BobbySlope
Copy link
Member

sudo hbs log -t 500

@mkellsy
Copy link
Contributor

mkellsy commented Jan 6, 2022

Transferring to the proper subproject.

@mkellsy mkellsy transferred this issue from hoobs-org/HOOBS Jan 6, 2022
@Elch08
Copy link
Author

Elch08 commented Jan 6, 2022

Ok, I came back home and Hoobs has crashed again. So I tried to SSH into my Raspberry Pi (it had a working internet connection) but I could not access it. The only thing I can do to get it connected back, is to power off and power on the device.
So I cannot produce any crashing logs.
I never had this problem when I was still on Hoobs 2. That was super stable, although there were some Plugins, which I did not update, because I was running on a quiet old Node.js version.

But before Christmas I decided to switch to Hoobs 4. I installed my plugins on several bridges. I updated to the latest Hoobs version (4.1.20) and the latest Node.js version (16.XXX). The crashing happened also before I updated the Hoobs version, but now they are more frequent.
My suspected Plugins which may be causing the crash could be homebridge-hue (because this needs Homebridge version 1.39, whereas currently Hoobs is running on 1.38). Update expected next week.
Anothereone could be Homebridge-Harmony or Homebridge-Fritz-platform or Homebridge-doorbird, they all run on a proper Bridge. All of the three I had not installed on Hoobs 2.

I tried to sort out the problem by stopping different bridges within Hoobs 4. But I can only stop 1 Bridge at a time and not several.
By now, I am clueless, what could cause the crashing problem. Any further ideas ?

@Elch08
Copy link
Author

Elch08 commented Jan 6, 2022

After restarting Hoobs (power off and on) I used the first of yours commands and got the following logs:

hoobs@hoobs:~ $ sudo hbs log
[sudo] password for hoobs:
1/6/2022, 4:42:35 PM Dummy Bridge Alexa alexaDiscovery - returned 17 devices
1/6/2022, 4:42:36 PM Samsung Tizen Bridge Samsung Schlafzimmer ERROR Failed to pair! Make sure TV is online and you click "Allow" on the popup
1/6/2022, 4:42:36 PM Samsung Tizen Bridge Samsung Wohnzimmer ERROR Failed to pair! Make sure TV is online and you click "Allow" on the popup
1/6/2022, 4:42:39 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:42:41 PM Dummy Bridge My FritzBox Alarm sensors found: none
1/6/2022, 4:42:41 PM Dummy Bridge My FritzBox Buttons found: none
1/6/2022, 4:42:42 PM Dummy Bridge My FritzBox Outlets found: 087610035440,087610387107
1/6/2022, 4:42:42 PM Dummy Bridge My FritzBox Updating outlet 087610035440
1/6/2022, 4:42:42 PM Dummy Bridge My FritzBox Updating outlet 087610387107
1/6/2022, 4:42:43 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(3)
1/6/2022, 4:42:43 PM Dummy Bridge My FritzBox Thermostats found: none
1/6/2022, 4:42:43 PM Dummy Bridge My FritzBox Sensors found: none
1/6/2022, 4:42:43 PM Dummy Bridge Bridge is running on port 51846.
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting guest WLAN state
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610035440 state
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610035440 power usage
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610035440 energy consumption
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610035440 temperature
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610387107 state
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610387107 power usage
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610387107 energy consumption
1/6/2022, 4:42:45 PM Dummy Bridge My FritzBox Getting outlet 087610387107 temperature
1/6/2022, 4:42:53 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] initialising with options {"logging":"standard","showAs":"outlet","timeDiff":false,"wattDiff":1}.
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] initialised with s/n 221513K1200D5B and ip/port 192.168.1.61:49154
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] http has been established.
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] upnp has been established.
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] current state [off].
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] current outlet-in-use [no].
1/6/2022, 4:42:53 PM Wemo Bridge Wemo [Standlicht] current consumption [0W].
1/6/2022, 4:42:56 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(4)
1/6/2022, 4:43:06 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:43:09 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(5)
1/6/2022, 4:43:19 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:43:20 PM Dummy Bridge My FritzBox Updating guest WLAN
1/6/2022, 4:43:22 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(6)
1/6/2022, 4:43:32 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:43:35 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(7)
1/6/2022, 4:43:42 PM Dummy Bridge My FritzBox Updating outlet 087610035440
1/6/2022, 4:43:42 PM Dummy Bridge My FritzBox Updating outlet 087610387107
1/6/2022, 4:43:45 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
1/6/2022, 4:43:48 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)Error - Error retrieving info from hub : request to http://192.168.1.120:8088/ failed, reason: connect EHOSTUNREACH 192.168.1.120:8088-(8)
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] initialising with options {"logging":"standard","showAs":"outlet","timeDiff":false,"wattDiff":1}.
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] initialised with s/n 221517K1200100 and ip/port 192.168.1.103:49153
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] http has been established.
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] upnp has been established.
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] current state [off].
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] current outlet-in-use [no].
1/6/2022, 4:43:58 PM Wemo Bridge Wemo [Lars TV] current consumption [0W].
1/6/2022, 4:43:58 PM Harmony Bridge Fernseher Schlafzimmer (Fernseher Schlafzimmer)INFO - Loading activities...
hoobs@hoobs:~ $

Does this help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants