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

v2.2.3 crashing Homebridge and causing service restart loop #392

Closed
idealdreams opened this issue Sep 30, 2021 · 68 comments
Closed

v2.2.3 crashing Homebridge and causing service restart loop #392

idealdreams opened this issue Sep 30, 2021 · 68 comments

Comments

@idealdreams
Copy link

I updated to version 2.2.3 this evening. I noticed if I interact with my TVs in the Home app, it sends my Homebridge service into a restart loop. Each time the loop cycles, my LG TV asks me if I want to accept the pairing request for the LG Connect app. When I click yes, nothing happens on the TV and then the Homebridge service restarts.

I had to uninstall the plugin to stabilize Homebridge. This plugin has worked seamlessly for me for the better part of two years now so I'm not sure what changed. All configurations on my end remain the same.

@calvinyeap
Copy link

I'm having the same issue too and reverting back to v2.2.2 didn't solve the problem either. Weirdly enough, everything loads just fine if my TV is switched off. When I turn it on, it will caught in the following loop.

[30/09/2021, 12:22:10] Homebridge v1.3.4 (homebridge-webos-tv) is running on port 59611.
Preparing Advertiser for 'LG TV C0D3' using bonjour-hap backend!
Starting to advertise 'LG TV C0D3' using bonjour-hap backend!
[30/09/2021, 12:22:10] LG TV C0D3 is running on port 41449.
[30/09/2021, 12:22:10] Please add [LG TV C0D3] manually in Home app. Setup Code: 314-94-553
[30/09/2021, 12:23:04] [homebridge-webos-tv] [LG TV] Connected to TV
[30/09/2021, 12:23:04] [homebridge-webos-tv] Child bridge process ended
[30/09/2021, 12:23:04] [homebridge-webos-tv] Process Ended. Code: null, Signal: SIGBUS
[30/09/2021, 12:23:11] [homebridge-webos-tv] Restarting Process...
Initializing HAP-NodeJS v0.9.4...
[30/09/2021, 12:23:13] [homebridge-webos-tv] Launched child bridge with PID 1723
[30/09/2021, 12:23:13] Registering platform 'homebridge-webos-tv.webostv'
[30/09/2021, 12:23:13] [homebridge-webos-tv] Loaded homebridge-webos-tv v2.2.3 child bridge successfully
[30/09/2021, 12:23:14] Loaded 0 cached accessories from cachedAccessories.0EFDA1BF55FD.
Preparing Advertiser for 'homebridge-webos-tv 5ED5' using bonjour-hap backend!
[30/09/2021, 12:23:14] [homebridge-webos-tv] Init - initializing devices
[30/09/2021, 12:23:14] [homebridge-webos-tv] [LG TV] Init - got TV configuration, initializing device with name: LG TV
Starting to advertise 'homebridge-webos-tv 5ED5' using bonjour-hap backend!
[30/09/2021, 12:23:14] Homebridge v1.3.4 (homebridge-webos-tv) is running on port 59611.
Preparing Advertiser for 'LG TV C0D3' using bonjour-hap backend!
Starting to advertise 'LG TV C0D3' using bonjour-hap backend!
[30/09/2021, 12:23:14] LG TV C0D3 is running on port 43807.
[30/09/2021, 12:23:14] Please add [LG TV C0D3] manually in Home app. Setup Code: 314-94-553
[30/09/2021, 12:23:14] [homebridge-webos-tv] [LG TV] Connected to TV
[30/09/2021, 12:23:14] [homebridge-webos-tv] Child bridge process ended
[30/09/2021, 12:23:14] [homebridge-webos-tv] Process Ended. Code: null, Signal: SIGBUS
[30/09/2021, 12:23:21] [homebridge-webos-tv] Restarting Process...
Initializing HAP-NodeJS v0.9.4...
[30/09/2021, 12:23:43] [homebridge-webos-tv] Process Ended. Code: null, Signal: SIGBUS

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

That is strange. The changes in the latest version are certainly not causing the issue.

I suspect that during the update maybe also some dependencies did update and one of them is now causing the issue. That is why @calvinyeap even a revert does not fix it anymore for you.

I would not to have some detailed log, ideally with a call stack for the error or crash. Right now I only see that homebridge did restart from your logs but that does not help me in any way...

@calvinyeap
Copy link

Sure, can you guide me how to pull that for you?

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

I think you should try to start homebridge in debug mode and see if additional stuff comes up, also I see that you are running child bridge, so not sure if that affects the output log...

Also I know that there are some files that homebridge generates in case of an error, try to look them up.

@calvinyeap
Copy link

That's right. I tried to disable as a child device earlier and when I do, my entire homebridge is be on a restart loop. When I enabled back as child device, my homebridge is running fine. In fact, the webos child device is also running until I switch on my TV, then it gets into a restart loop. Here's the log file and at 30/09/2021, 16:03:25 is was me using my phone to turn on the TV which works by the way, but then the TV control becomes unresponsive as the child devices keeps restarting on a loop thereafter.

[30/09/2021, 16:03:09] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:17] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:25] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:25] [homebridge-webos-tv] [LG TV] Wake on LAN callback - sent magic packet, trying to connect to tv...
[30/09/2021, 16:03:25] [homebridge-webos-tv] [LG TV] Trying to wake up TV! Mac: C8-08-E9-CB-5D-98, BroadcastAdr: 255.255.255.255
[30/09/2021, 16:03:25] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:33] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:33] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:35] [homebridge-webos-tv] [LG TV] Error - Error: connect ECONNREFUSED 192.168.68.210:3000
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.68.210',
port: 3000
}
[30/09/2021, 16:03:40] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:40] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:45] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:45] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:50] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:50] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:55] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:03:55] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Error - Error: Sec-WebSocket-Accept header from server didn't match expected value of OjqQoIAS/FfQXENsiOtmNH9K5YI=
at WebSocketClient.failHandshake (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:339:32)
at WebSocketClient.validateHandshake (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:326:14)
at ClientRequest.handleRequestUpgrade (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:261:14)
at ClientRequest.emit (events.js:400:28)
at Socket.socketOnData (_http_client.js:553:11)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Message from TV

[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] {
type: 'utf8',
utf8Data: '{"type":"registered","id":"e892ef0e0000","payload":{"client-key":"bf631c7ffdfe30012d2ccea136e1f102"}}'
}
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Connected to TV
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] Requesting TV information
[30/09/2021, 16:04:00] [homebridge-webos-tv] [LG TV] system service - getSystemInfo requested.
[30/09/2021, 16:04:00] [homebridge-webos-tv] Child bridge process ended
[30/09/2021, 16:04:00] [homebridge-webos-tv] Process Ended. Code: null, Signal: SIGBUS
[30/09/2021, 16:04:02] [Broadlink RM] **Fakegato-timer: addData Master Bedroom Aircon { time: 1632989042, temp: 29.1 } immediate: false
[30/09/2021, 16:04:07] [homebridge-webos-tv] Restarting Process...
Initializing HAP-NodeJS v0.9.4...
[30/09/2021, 16:04:09] [homebridge-webos-tv] Launched child bridge with PID 515
[30/09/2021, 16:04:09] Registering platform 'homebridge-webos-tv.webostv'
[30/09/2021, 16:04:10] [homebridge-webos-tv] Loaded homebridge-webos-tv v2.2.3 child bridge successfully
[30/09/2021, 16:04:10] Loaded 0 cached accessories from cachedAccessories.0EFDA1BF55FD.
Preparing Advertiser for 'homebridge-webos-tv 5ED5' using bonjour-hap backend!
[30/09/2021, 16:04:10] [homebridge-webos-tv] Init - initializing devices
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Init - got TV configuration, initializing device with name: LG TV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Adding 17 new input sources!
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.hdmi1, name: Apple TV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.hdmi3, name: Astro NJOI
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.camera, name: Camera
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.connectionwizard, name: Device Connector
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.discovery, name: LG Content Store
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.capturetv, name: LG Photo Editor
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.livetv, name: Live TV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.notificationcenter, name: Notifications
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.scheduler, name: Scheduler
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.miracast, name: Screen Share
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.smartshare, name: SmartShare
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.tvguide, name: TV Guide
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.hdmi2, name: Unifi TV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.tvuserguide, name: User Guide
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.browser, name: Web Browser
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.externalinput.av1, name: AV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Created new input source: appId: com.webos.app.externalinput.component, name: Component
Starting to advertise 'homebridge-webos-tv 5ED5' using bonjour-hap backend!
[30/09/2021, 16:04:10] Homebridge v1.3.4 (homebridge-webos-tv) is running on port 59611.
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Connecting to TV
Preparing Advertiser for 'LG TV C0D3' using bonjour-hap backend!
Starting to advertise 'LG TV C0D3' using bonjour-hap backend!
[30/09/2021, 16:04:10] LG TV C0D3 is running on port 34131.
[30/09/2021, 16:04:10] Please add [LG TV C0D3] manually in Home app. Setup Code: 314-94-553
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Message from TV

[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] {
type: 'utf8',
utf8Data: '{"type":"registered","id":"8f458f440000","payload":{"client-key":"bf631c7ffdfe30012d2ccea136e1f102"}}'
}
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Connected to TV
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] Requesting TV information
[30/09/2021, 16:04:10] [homebridge-webos-tv] [LG TV] system service - getSystemInfo requested.
[30/09/2021, 16:04:10] [homebridge-webos-tv] Child bridge process ended

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

This is highly strange... it just says that child bridge is being restarted but does not actually say why... without a clear indication where the issue originated from it will be hard to fix especially since I cannot reproduce this with my tv.

Could you please dig through some homebridge logs and find if there is somewhere an error?

@OrigSorceror
Copy link

same happening with me. initially thought my homebridge install was corrupted (as i lost controll of all my C-Bus devices) I was on HOOBs, which had other issues as well with the Ring plugin, so i decided to do a full fresh rebuild using raspberry Pi OS (lite with desktop) and as soon as i install the webos plugin it asks for pairing when click ok homebridge reports tv connected then reboots and i get the pairing request installed.

uninstalling the plugin for now as i need to get the rest of the plugins up and running so i can get voice control of my home again.

@calvinyeap
Copy link

This is the full log, when my TV is switched off, the child device seems to be running and log shows "Connecting to TV" all the time. When I finall press to turn on the TV using my phone, the TV switches on and then the following error occurs.

[30/09/2021, 17:06:49] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:06:56] [homebridge-webos-tv] [LG TV] Wake on LAN callback - sent magic packet, trying to connect to tv...
[30/09/2021, 17:06:56] [homebridge-webos-tv] [LG TV] Trying to wake up TV! Mac: C8-08-E9-CB-5D-98, BroadcastAdr: 255.255.255.255
[30/09/2021, 17:06:56] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:06:58] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:01] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:06] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:06] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:06] [homebridge-webos-tv] [LG TV] Error - Error: connect ECONNREFUSED 192.168.68.210:3000
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.68.210',
port: 3000
}
[30/09/2021, 17:07:11] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:11] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:12] [Broadlink RM] **Fakegato-timer: addData Master Bedroom Aircon { time: 1632992832, temp: 29.2 } immediate: false
[30/09/2021, 17:07:16] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:16] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:21] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:21] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:22] [Broadlink RM] **Fakegato-timer: addData Master Bedroom Aircon { time: 1632992842, temp: 29.3 } immediate: false
[30/09/2021, 17:07:26] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:26] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Connecting to TV
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Error - Error: Sec-WebSocket-Accept header from server didn't match expected value of gQLTKtNZnN4bPsR0+YqPwOFiQBA=
at WebSocketClient.failHandshake (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:339:32)
at WebSocketClient.validateHandshake (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:326:14)
at ClientRequest.handleRequestUpgrade (/usr/local/lib/node_modules/homebridge-webos-tv/node_modules/websocket/lib/WebSocketClient.js:261:14)
at ClientRequest.emit (events.js:400:28)
at Socket.socketOnData (_http_client.js:553:11)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Message from TV

[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] {
type: 'utf8',
utf8Data: '{"type":"registered","id":"385827880000","payload":{"client-key":"bf631c7ffdfe30012d2ccea136e1f102"}}'
}
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Connected to TV
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] Requesting TV information
[30/09/2021, 17:07:31] [homebridge-webos-tv] [LG TV] system service - getSystemInfo requested.
[30/09/2021, 17:07:31] [homebridge-webos-tv] Child bridge process ended

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

Are you guys by any chance using the 64 but version of raspberry pi os or set the 64 bit flag in the config.json? I know that homebridge has issues with that currently...

@calvinyeap those Websocket errors are fine and should not have any impact.

@calvinyeap
Copy link

Ah ok. I believe I'm running on 32 at the moment. Not sure if below is the right way to check though. I have also checkec my config.json, I don't see any 64 bit flag as well.

pi@homebridge:/var/lib/homebridge $ uname -m
armv7l
pi@homebridge:/var/lib/homebridge $ getconf LONG_BIT
32

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

Ok, this does not look like 64 bit so at least we can exclude that!

But we still need to find out what exactly crashes the bridge, my suspicion is that might be one of the dependencies...

@DJay-X
Copy link

DJay-X commented Sep 30, 2021

OMG... Good I had a look here.
I'm running mad for hours now. I updated the plugin like I always do and didn't thought about when I left the home. Outside home I was wondering why nothing is working anymore.

However... Homebridge is now starting over and over. Nothing to see in the log.
Only Homebridge Process Ended. Code: null, Signal: SIGBUS and the restart begins again.
Back to 2.2.2 changed nothing.

Node.js Version v14.18.0
Npm Version v7.24.1

2nd-Instance on the same Raspberry is working finde.
But the main Homebridge that is not working now is mainly important.
I hope you can help. Thanks in advance.

@TzachiGuetta
Copy link

maybe its realted to Node.js Version v14.18.0 ? @merdok

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

Oh, it might also be related to the nodejs version.
Could you guys try to downgrade nodejs to a lower version and try it out?

@DJay-X
Copy link

DJay-X commented Sep 30, 2021

That was the first thing I did downgrade to Node 14.17.6 but that didn't help.

pi@raspberrypi-3BPlus:~ $ uname -m
armv7l
pi@raspberrypi-3BPlus:~ $ getconf LONG_BIT
32

Homebridge v1.3.4
OS Raspbian GNU/Linux Stretch (9)
Hostname raspberrypi-3BPlus
IPv4 (wlan0) xxx
IPv6 (wlan0) xxx
Node.js Version v14.18.0
Npm Version v7.24.1
Benutzer homebridge
Speicherpfad /var/lib/homebridge
Konfigurationspfad /var/lib/homebridge/config.json
Service-Modus Yes

LG Modell 55EG9209-ZA, Software 04.26.00, webOS 2.2.3-1351 (beehive-biscayne)

  {
            "devices": [
                {
                    "name": "LG webOS TV",
                    "ip": "xxx.xxx.xxx.xx",
                    "mac": "a1:b2:c3:45:de:67",
                    "pollingInterval": 10,
                    "volumeLimit": 100,
                    "volumeControl": "none",
                    "channelControl": false,
                    "appButtons": [
                        {
                            "appId": "com.webos.app.hdmi1",
                            "name": "Hauptbildschirm"
                        }
                    ],
                    "notificationButtons": [
                        {
                            "message": "Backofen vorgeheizt.",
                            "name": "LG Backofen Notify"
                        },
                        {
                            "message": "Wasserkocher fertig..",
                            "name": "LG Wasserkocher Notify"
                        },
                        {
                            "message": "Luftqualität in der Wohnung schlecht. Bitte lüften",
                            "name": "LG Luftqualität Notify"
                        }
                    ]
                }
            ],
            "platform": "webostv"
        },

@idealdreams
Copy link
Author

My logs do not look any different than what have been posted but wanted to provide a little more detail.

The plug-in appears stable when the TV is off. When I turn the TV on, it prompts me to accept or decline the pairing request through LG connect. If I click no, nothing happens and Homebridge remains stable.

If I select yes, the Homebridge service immediately restarts and when it comes back up, my TV asks me again if I’d like to pair. Selecting yes will cause another restart cycle.

I’ve tried multiple versions of the plug-in and experience the same behavior each time so agreed that it sounds like an issue with one of the plug-in’s dependencies.

@DJay-X
Copy link

DJay-X commented Sep 30, 2021

The plug-in appears stable when the TV is off.

Thanks for that hint. Same here. When the TV is off there is no restart loop.
LG Modell 55EG9209-ZA, Software 04.26.00, webOS 2.2.3-1351 (beehive-biscayne)

Though I don't get any prompt to accept or decline pairing.

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

What makes me think that this is definitely related to on of the dependencies is that for me everything runs fine and I did not update any of my dependencies since a long time. Besides you all report the same issue that even after downgrading the plugin to a previous version the issue is still there where before it was not there.

So the question is now which dependency it is🙃
Since you all tell that it happens after you accept the pairing request then my suspicion would be that it is something related to either the network connection or file writing. Whenever you accept the pairing request the key file should be created in the prefs directory, is that case or is the file not created?

@OrigSorceror
Copy link

I am thinking it must either be node or a dependent. I am having issues with another plugin too one that sends a login credentials to an external web server, that keeps reporting incorrect username or password (which are correct as i can log in to the web server with them)..

Since i am doing a fresh rebuild. I might re-start the rebuild and install an older version of node and npm and see how that pans out.

At this stage i am fresh out of ideas as to what is causing the issues.

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

You should try to downgrade node to version 13.x or even 12.x and see if that helps. I will later check which one I have installed...

@OrigSorceror
Copy link

Just for interest i had an old rapberry pi 3b hanging around and set that one up again with the old plugins and it is running node v14.17.1. and everything was working. so i started updating the plugins
These are the plugins i have
Homebridge-Cbus
homebridge ring
homebridge camera FFMpeg
homebridge eufysecurity
homebridge wiz lan

and now it is failing again. looks like one of those plugin updates has change a dependent which is causing the issues..

@OrigSorceror
Copy link

no good i'm afraid.. even with a fresh install and only the CBus plugin installed it still loops homebridge.. unfortunately the fault is not only this plugin but the one by grzegorz as well.
grzegorz914/homebridge-lgwebos-tv#110

when it connects to the LG TV homebridge reboots..

@carlosgamezvillegas
Copy link

I don't know if this helps but this is what I get in the log window after I press to accept the connection in the TV

[9/30/2021, 9:47:38 AM] [webostv] [LG TV] Connected to TV
homebridge.service: Main process exited, code=killed, status=7/BUS
homebridge.service: Failed with result 'signal'.

Please let us know what we can help to solve this issue. This is one of the plugins I use the most.

Kind regards

@Garia666
Copy link

Like in my post, the other webos plug-in has the same issues. The only thing different that it happens at the moment you accept the plug-in to control your tv. Recently the tv received an update as well.

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

The problem here is that the error output for the issue is really bad or basically does not not exists... We can certainly say that one of the dependencies is the root cause here but the dependency needs to be identified.
Can you guys please run this command npm list -g --depth=4 which lists the used dependencies and post the results here:

─┬ [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]
│ ├── [email protected]
│ └── [email protected]

I think depth=4 should be enough for now. From those above only bufferutil was updated recently as far as i saw...

BTW, i am still running on nodejs 12.22.4

@OrigSorceror
Copy link

OrigSorceror commented Sep 30, 2021

├─┬ [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]
│ ├── [email protected]
│ └── [email protected]

looks like utf-8-validate is newer with mine

@merdok
Copy link
Owner

merdok commented Sep 30, 2021

I do not think that utf-8-validate should have anything to do with that...
I kind of suspect it might be node-gyp-build, could some of you try to downgrade that one to like 4.2.3?

@OrigSorceror
Copy link

tried to downgrade it but no luck.
I installed version 4.2.3 by using sudo npm install -g [email protected] which shows up as a separate package in the node list.
But 4.3.0 still appears under the lg web os package list.
tried to uninstall that using sudo uninstall [email protected] and get no such file or directory. So it must be installed as part of the package for webOS, i do not know how to change it from within a package.

@merdok
Copy link
Owner

merdok commented Oct 1, 2021

Yes, you should not install it using with the -g command which installs it globally. You have to navigate to the homebrige-webos-tv directory and the go to node_modules and there you have to navigate yourself through the lgtv2, websocket and bufferutils directories(they should again be in the node_modules directories) and there you execute the npm install command but without the -g parameter and that should work.

@OrigSorceror
Copy link

Successfully downgraded nod-gyp-build to 4.2.3
├─┬ [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]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]

Same issue though. after accepting the pairing on the TV, everything crashes and homebridge reboots. so node-gyp-build was not the cause.

@merdok
Copy link
Owner

merdok commented Oct 1, 2021

Try 2.2.5, now it should hopefully work...

@OrigSorceror
Copy link

that one appears to be working fine :)

@OrigSorceror
Copy link

i guess the next thing to figure out now that it has been fixed, is what caused bufferutil to break the plugin in the first place. Eventually (will take a while) but bufferutil 4.0.3 will eventually be deprecated, so hopefully the issue with 4.0.4 get rectified and does not get carried over to newer packages.

@merdok
Copy link
Owner

merdok commented Oct 1, 2021

I will investigate that... Important for now is that the plugin is working again!

@OrigSorceror
Copy link

yup

@falinka
Copy link

falinka commented Oct 1, 2021

I confirm, all good with 2.2.5.

@hruskat
Copy link

hruskat commented Oct 12, 2021

Hi guys, I have the same issue with version 2.2.5. as you described. What should I do?

    1. 2021 14:34:24WebOS Tv Bridge starting
    1. 2021 14:34:27WebOS Tv BridgeLoaded plugin 'homebridge-webos-tv'
    1. 2021 14:34:27WebOS Tv BridgeLoading 1 platforms...
    1. 2021 14:34:27WebOS Tv BridgewebostvInit - initializing devices
    1. 2021 14:34:27WebOS Tv Bridgewebostv[LG Hoobs] Init - got TV configuration, initializing device with name: LG Hoobs
    1. 2021 14:34:27WebOS Tv BridgeLG Hoobs C4BF is running on port 44245.
    1. 2021 14:34:27WebOS Tv BridgeBridge is running on port 51836.
    1. 2021 14:34:27WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!
    1. 2021 14:34:33WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!
    1. 2021 14:36:36webostvbridge stopping
    1. 2021 14:36:42WebOS Tv Bridge starting
    1. 2021 14:36:44WebOS Tv BridgeLoaded plugin 'homebridge-webos-tv'
    1. 2021 14:36:44WebOS Tv BridgeLoading 1 platforms...
    1. 2021 14:36:44WebOS Tv BridgewebostvInit - initializing devices
    1. 2021 14:36:44WebOS Tv Bridgewebostv[LG Hoobs] Init - got TV configuration, initializing device with name: LG Hoobs
    1. 2021 14:36:44WebOS Tv BridgeLG Hoobs C4BF is running on port 34873.
    1. 2021 14:36:44WebOS Tv BridgeBridge is running on port 51836.
    1. 2021 14:36:44WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!
    1. 2021 14:36:48WebOS Tv Bridgewebostv[LG Hoobs] Connected to TV
    1. 2021 14:36:55WebOS Tv Bridge starting
    1. 2021 14:36:58WebOS Tv BridgeLoaded plugin 'homebridge-webos-tv'
    1. 2021 14:36:58WebOS Tv BridgeLoading 1 platforms...
    1. 2021 14:36:58WebOS Tv BridgewebostvInit - initializing devices
    1. 2021 14:36:58WebOS Tv Bridgewebostv[LG Hoobs] Init - got TV configuration, initializing device with name: LG Hoobs
    1. 2021 14:36:58WebOS Tv BridgeLG Hoobs C4BF is running on port 32777.
    1. 2021 14:36:58WebOS Tv BridgeBridge is running on port 51836.
    1. 2021 14:36:58WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!
    1. 2021 14:37:01WebOS Tv Bridgewebostv[LG Hoobs] Connected to TV
    1. 2021 14:37:08WebOS Tv Bridge starting
    1. 2021 14:37:11WebOS Tv BridgeLoaded plugin 'homebridge-webos-tv'
    1. 2021 14:37:11WebOS Tv BridgeLoading 1 platforms...
    1. 2021 14:37:11WebOS Tv BridgewebostvInit - initializing devices
    1. 2021 14:37:11WebOS Tv Bridgewebostv[LG Hoobs] Init - got TV configuration, initializing device with name: LG Hoobs
    1. 2021 14:37:11WebOS Tv BridgeLG Hoobs C4BF is running on port 41253.
    1. 2021 14:37:11WebOS Tv BridgeBridge is running on port 51836.
    1. 2021 14:37:11WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!
    1. 2021 14:37:13WebOS Tv Bridgewebostv[LG Hoobs] Connected to TV
    1. 2021 14:37:20WebOS Tv Bridge starting
    1. 2021 14:37:23WebOS Tv BridgeLoaded plugin 'homebridge-webos-tv'
    1. 2021 14:37:23WebOS Tv BridgeLoading 1 platforms...
    1. 2021 14:37:23WebOS Tv BridgewebostvInit - initializing devices
    1. 2021 14:37:23WebOS Tv Bridgewebostv[LG Hoobs] Init - got TV configuration, initializing device with name: LG Hoobs
    1. 2021 14:37:23WebOS Tv BridgeLG Hoobs C4BF is running on port 37713.
    1. 2021 14:37:23WebOS Tv BridgeBridge is running on port 51836.
    1. 2021 14:37:23WebOS Tv Bridgewebostv[LG Hoobs] Prompt for confirmation. Please accept the pairing request on the TV!

@OrigSorceror
Copy link

@hruskat
We need to see what dependencies are running.. SSH into your Pi and run the command npm list -g --depth=4
this will print out the dependencies list.. copy and past the tree here so we can see

@hruskat
Copy link

hruskat commented Oct 12, 2021

@OrigSorceror here it is

│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [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]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [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] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ ├─┬ [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] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ └── [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]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [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]
│ │ │ ├─┬ [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] deduped
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├─┬ UNMET PEER DEPENDENCY [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [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] 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] deduped
│ │ └── [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]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [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]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [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]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [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]
│ │ ├── [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]
│ └── [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] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ └── [email protected] deduped
├── [email protected]
├── [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] 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]
├── [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] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ └─┬ [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] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [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] deduped
│ └── [email protected] deduped
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [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] deduped
│ ├── [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] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [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] deduped
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [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] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [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]
│ ├─┬ [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] 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]
├── [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] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [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] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ └─┬ [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] deduped
│ ├── [email protected] deduped
│ ├── [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] deduped
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [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]
│ ├─┬ [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]
├─┬ [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] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [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]
│ │ ├── [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]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [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]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├─┬ [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]
├─┬ [email protected]
│ └── [email protected] deduped
├── [email protected]
├── [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] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [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] deduped
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├─┬ [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] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [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]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └── [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] deduped
├── [email protected] deduped
└── [email protected] deduped

npm ERR! peer dep missing: ajv@^5.0.0, required by [email protected]
npm ERR! peer dep missing: eslint@^2.0.0 || ^3.0.0, required by [email protected]
hoobs@hoobs:~ $

@OrigSorceror
Copy link

OrigSorceror commented Oct 12, 2021

@hruskat should have had you upload that as a txt file but oh well. I do not see the webos package listed in the tree. are you sure it is installed? NM Homebridge not showing either so you must be missing a lot of the data. Pipe the output to a txt file and upload the txt file.. your tree has a lot of packages in it that it is scrolling out the top packages past the console buffer.
to send the command to a txt file i.e dependencies.txt type the following.
npm list -g --depth=4 > dependencies.txt

then use a FILE transfer program like filezilla to remote in and grab the txt file to upload it here.

@OrigSorceror
Copy link

@hruskat alternatively the main package we are looking for is bufferutil as that is what originally caused the issue. you can retrieve that info by using the command.
npm list -g bufferutil

that will list the version of all bufferutil packages. the 4.0.4 package version breaks the plugin so if you have 4.0.4 you will need to downgrade it to 4.0.3...

@hruskat
Copy link

hruskat commented Oct 12, 2021

dependencies.zip
@OrigSorceror
oh well sorry :) log is attached. I also tried the list of bufferutil and this seems to be a problem.. via below. I didn't mentioned that I installed the plugin in the Hoobs and didn't installed manually in the terminal. I tried also uninstall and install again - same problem. It is works perfectly before migration to hoobs 4.

hoobs@hoobs:~ $ npm list -g bufferutil
/usr/lib
└── (empty)
hoobs@hoobs:~ $

@OrigSorceror
Copy link

@hruskat thats strange you should have got output like.
pi@raspberrypi:~ $ npm list -g bufferutil
/usr/lib
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]

are you running the commands from a SSH terminal program like putty or the terminal within homebridge web UI?

I'll check the txt..

@OrigSorceror
Copy link

OrigSorceror commented Oct 12, 2021

@hruskat I think Hoobs is the issue. It got a wierd NPM package structure and does not show any packages associated with homebridge (including the homebridge package). It could be hidden deeper in the dependency tree. re-run the command again this time make the depth=8 upload the rtf file. Or HOOBS could be running the homebridge from within a docker VM. I am not familiar with HOOBS setup. .

@OrigSorceror
Copy link

@hruskat it would appear HOOBS is just another UI instead of the homebridge web UI X interface that buster (Raspian) users uses. not sure on why the homepridge plugins ets are not listed in the NPM list though :(.

anyway try locate the directory where the webos plugin is located.
could be /usr/local/lib/node_modules/ so cd to that directory and run ls to see if the homebridge-webos-tv plugin directory is there. if it is cd to that directory and cd to the node_modules directory within the webos plugin.

run ls again and see if the bufferutil directory is there. It is possible that HOOBS updated all the packages to the latest ones in which case your bufferutil will be version 4.04.. downgrade it back to version 4.0.3 by using the following command within the homebridge-webos-tv/node_modules/ directory.

sudo npm install [email protected]

that will downgrade the bufferutil package to 4.0.3 restart homebridge and it should hopefully solve the issue. Bare in mind if HOOBS updates plugin dependencies automatically or when you upgrade to a new version it may also upgrade this bufferutil package and break the webos plugin so all you have to do to fix is repeat the downgrade again to 4.0.3.

@hruskat
Copy link

hruskat commented Oct 12, 2021

@OrigSorceror thanks for your help, but my knowledge is on the low level :) so I tried to do what you advices, but not sure if correct :) rft file is attached - it looks like the same like =4. I also tried to manually install webostv by sudo with error.
dependencies 2.zip

hoobs@hoobs:~ $
hoobs@hoobs:~ $ sudo npm install -g homebridge-webostv
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/homebridge-webostv - Not found
npm ERR! 404
npm ERR! 404 'homebridge-webostv@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-12T16_31_14_925Z-debug.log
hoobs@hoobs:~ $

installation [email protected] also unsuccessful

[email protected] install /home/hoobs/node_modules/bufferutil
node-gyp-build

npm WARN saveError ENOENT: no such file or directory, open '/home/hoobs/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/hoobs/package.json'
npm WARN hoobs No description
npm WARN hoobs No repository field.
npm WARN hoobs No README data
npm WARN hoobs No license field.

  • [email protected]
    updated 1 package and audited 3 packages in 1.467s
    found 0 vulnerabilities

hoobs@hoobs:~ $

@OrigSorceror
Copy link

@hruskat that 404 error is because you got the package name wrong so it could not find the package.
did you find the homebridge-webos-tv directory in /usr/local/lib/node_modules/ ? if it is not there you will have to go hunting for it.

try /lib/node_modules

Looks as though the install of [email protected] did succeed.

Sorry i have not played with a HOOBS build, so without access to a hoobs build device it is hard to diagnose.

@OrigSorceror
Copy link

@hruskat I a building w HOOBS Pi using a spare rPi 3b i have laying around.. I'll have a look and see what i can find out that can be of assistance.

@OrigSorceror
Copy link

OrigSorceror commented Oct 13, 2021

@hruskat
Ok found it.. webos package resides in /var/lib/hoobs/ and i can confirm that HOOBS loads the 4.0.4 package.

so in terminal cd to /var/lib/hoobs/webostvbridge/node_modules/
the bufferutil package is installed there so you can run the npm list bufferutil command and you should get something like this.
hoobs@hoobs:/var/lib/hoobs/webostvbridge/node_modules $ npm list bufferutil
plugins@ /var/lib/hoobs/webostvbridge
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
NOTE the version is 4.0.4...
so from this directory then run the following.
sudo npm install [email protected]

You should get the following.
hoobs@hoobs:/var/lib/hoobs/webostvbridge/node_modules $ sudo npm install [email protected]
npm WARN rm not removing /var/lib/hoobs/webostvbridge/node_modules/.bin/mkdirp as it wasn't installed by /var/lib/hoobs/webostvbridge/node_modules/mkdirp

[email protected] install /var/lib/hoobs/webostvbridge/node_modules/bufferutil
node-gyp-build

[email protected] install /var/lib/hoobs/webostvbridge/node_modules/utf-8-validate
node-gyp-build

npm notice created a lockfile as package-lock.json. You should commit this file.

40 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

confirm it is installed by re running the npm list bufferutil command again to get the following.
hoobs@hoobs:/var/lib/hoobs/webostvbridge/node_modules $ npm list bufferutil
plugins@ /var/lib/hoobs/webostvbridge
├── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected] deduped

That should install the correct version and your web os TV bridge should be working from then on and not reset once paired.

HOOBS is weird as it installs all the dependent packages to the one directory taking them out of the package directory... So if you cd to homebridge-webos-tv/node_modules/ and run ls it will show an empty directory (strange it does that even though it appears correct in the tree structure on install according to NPM tree) but anyway the way node works is to always use the dependant that is either in the package or if there is not one there use one higher up in the NPM tree.. so by installing (downgrading the bufferutil to 4.0.3) we are actually installing it up a level in the tree, and then due to NPM's removal of duplicate references it reports the package as deduped..

Let me know how you proceed.

@merdok
Copy link
Owner

merdok commented Oct 13, 2021

As a small update for the people who are still affected. I have been in contact with the bufferutil devs and helped them to identify the problem with the their package. They should provide an update soon which will fix the issue for everyone.

@OrigSorceror
Copy link

@merdok what was the issue just out of interest??

@merdok
Copy link
Owner

merdok commented Oct 13, 2021

You can have a look here websockets/bufferutil#137

@OrigSorceror
Copy link

@merdok
Cool thanks. Also confirming the new versions of both the bufferutil and the plugin are working 100%. :)

@iCarl
Copy link

iCarl commented Jan 4, 2022

I am still having this exact issue

@merdok
Copy link
Owner

merdok commented Jan 4, 2022

@iCarl either your bufferutil dependency is not up to date or you have a different issue.

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