homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.61k stars 376 forks source link

"No Homebridge instances have been discovered." #545

Closed jamesrod73 closed 4 years ago

jamesrod73 commented 4 years ago

Describe Your Problem:

I have been trying to get Homebridge up and running for months now with no success. Everything seems to be cleanly installed and even running internally to the computer (iMac 2017, MacOS 10.14.6). I cannot connect Homebridge to the Home app, however, and Config UI X reports "Homebridge Not Running" at the top of the Status window. Any help would be greatly appreciated! Logs:

[2/16/2020, 2:34:27 PM] [HB Supervisor] Stopping services... [2/16/2020, 2:34:27 PM] Got SIGTERM, shutting down Homebridge... [2/16/2020, 2:34:52 PM] [HB Supervisor] Homebridge Storage Path: /Users/james/.homebridge [2/16/2020, 2:34:52 PM] [HB Supervisor] Homebridge Config Path: /Users/james/.homebridge/config.json [2/16/2020, 2:34:52 PM] [HB Supervisor] Logging to /Users/james/.homebridge/homebridge.log [2/16/2020, 2:34:52 PM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge [2/16/2020, 2:34:52 PM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js [2/16/2020, 2:34:52 PM] [HB Supervisor] Started Homebridge with PID: 234 [2/16/2020, 2:35:16 PM] Loaded config.json with 0 accessories and 2 platforms. [2/16/2020, 2:35:16 PM] --- [2/16/2020, 2:35:16 PM] Loaded plugin: homebridge-config-ui-x [2/16/2020, 2:35:16 PM] Registering platform 'homebridge-config-ui-x.config' [2/16/2020, 2:35:16 PM] --- [2/16/2020, 2:35:16 PM] Loaded plugin: homebridge-myq2 [2/16/2020, 2:35:16 PM] Registering platform 'homebridge-myq2.MyQ2' [2/16/2020, 2:35:16 PM] --- [2/16/2020, 2:35:16 PM] Loading 2 platforms... [2/16/2020, 2:35:16 PM] [Config] Initializing config platform... [2/16/2020, 2:35:16 PM] [Config] Running in Standalone Mode. [2/16/2020, 2:35:16 PM] [Home] Initializing MyQ2 platform... [2/16/2020, 2:35:16 PM] Loading 0 accessories... Setup Payload: X-HM://0023WQ8AMOFAD Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 265-31-966 │     
└────────────┘     

[2/16/2020, 2:35:17 PM] Homebridge is running on port 51888. [2/16/2020, 2:35:18 PM] [Home] Initializing platform accessory 'Garage Door (ID: 10312867)'... [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] Starting Nest application... [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] ConfigModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] LoggerModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] PassportModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] CustomPluginsModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] PlatformToolsModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] AppModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] JwtModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] LogModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] AccessoriesModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] TerminalModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] HbServiceModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] ConfigEditorModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] StatusModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] HomebridgeRingModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] LinuxModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] DockerModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] UsersModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] ServerModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] AuthModule dependencies initialized [2/16/2020, 2:35:35 PM] [homebridge-config-ui-x] PluginsModule dependencies initialized [2/16/2020, 2:35:36 PM] [Config] Homebridge Config UI X v4.10.1 is listening on :: port 8581 [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] AppController {/api/}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] AuthController {/api/auth}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/login, POST} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/settings, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/noauth, POST} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] ServerController {/api/server}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/restart, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/qrcode.svg, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/reset-homebridge-accessory, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/reset-cached-accessories, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] ConfigEditorController {/api/config-editor}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, POST} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/backups, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/backups/:backupId(\d+), GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/backups, DELETE} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] PluginsController {/api/plugins}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/search/:query, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/config-schema/:pluginName, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/changelog/:pluginName, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/release/:pluginName, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] HomebridgeRingController {/api/plugins/custom-plugins/homebridge-ring}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/exchange-credentials, POST} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] UsersController {/api/users}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/, POST} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/:userId(\d+), PATCH} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/:userId(\d+), DELETE} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] LinuxController {/api/platform-tools/linux}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/restart-host, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/shutdown-host, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] DockerController {/api/platform-tools/docker}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/startup-script, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/startup-script, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/restart-container, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/env, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/env, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] HbServiceController {/api/platform-tools/hb-service}: [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/homebridge-startup-settings, GET} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Mapped {/homebridge-startup-settings, PUT} route [2/16/2020, 2:35:36 PM] [homebridge-config-ui-x] Nest application successfully started

[1581892618067] INFO (80 on iMac-Roduongo.local): incoming request reqId: 1 req: { "method": "GET", "url": "/", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49487 } [1581892618199] INFO (80 on iMac-Roduongo.local): request completed reqId: 1 res: { "statusCode": 200 } responseTime: 90.3857030000072 [1581892618702] INFO (80 on iMac-Roduongo.local): incoming request reqId: 2 req: { "method": "GET", "url": "/api/auth/settings", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49487 } [1581892618713] INFO (80 on iMac-Roduongo.local): request completed reqId: 2 res: { "statusCode": 200 } responseTime: 9.709010000020498 [1581892619203] INFO (80 on iMac-Roduongo.local): incoming request reqId: 3 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49488 } [1581892619228] INFO (80 on iMac-Roduongo.local): request completed reqId: 3 res: { "statusCode": 200 } responseTime: 24.599392000003718 [1581892718145] INFO (80 on iMac-Roduongo.local): incoming request reqId: 4 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49533 } [1581892718152] INFO (80 on iMac-Roduongo.local): request completed reqId: 4 res: { "statusCode": 200 } responseTime: 6.469215999997687 [1581892751704] INFO (80 on iMac-Roduongo.local): incoming request reqId: 5 req: { "method": "GET", "url": "/api/config-editor", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49546 } [1581892751707] INFO (80 on iMac-Roduongo.local): request completed reqId: 5 res: { "statusCode": 200 } responseTime: 2.6912519999896176 [2/16/2020, 2:44:35 PM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [2/16/2020, 2:44:35 PM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [2/16/2020, 2:44:38 PM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [1581893082278] INFO (80 on iMac-Roduongo.local): incoming request reqId: 6 req: { "method": "GET", "url": "/api/config-editor", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49685 } [1581893082281] INFO (80 on iMac-Roduongo.local): request completed reqId: 6 res: { "statusCode": 200 } responseTime: 2.1866369999479502 [1581893087312] INFO (80 on iMac-Roduongo.local): incoming request reqId: 7 req: { "method": "GET", "url": "/api/plugins", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49685 } [1581893087456] INFO (80 on iMac-Roduongo.local): request completed reqId: 7 res: { "statusCode": 200 } responseTime: 143.57548099989071 [1581893101051] INFO (80 on iMac-Roduongo.local): incoming request reqId: 8 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 49690 } [1581893101056] INFO (80 on iMac-Roduongo.local): request completed reqId: 8 res: { "statusCode": 200 } responseTime: 5.212778000044636 [1581894155400] INFO (80 on iMac-Roduongo.local): incoming request reqId: 9 req: { "method": "GET", "url": "/api/config-editor", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 50141 } [1581894155402] INFO (80 on iMac-Roduongo.local): request completed reqId: 9 res: { "statusCode": 200 } responseTime: 1.7633529999293387 [1581894156040] INFO (80 on iMac-Roduongo.local): incoming request reqId: 10 req: { "method": "GET", "url": "/api/plugins", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 50141 } [1581894156328] INFO (80 on iMac-Roduongo.local): request completed reqId: 10 res: { "statusCode": 200 } responseTime: 287.4247719999403 [1581894171627] INFO (80 on iMac-Roduongo.local): incoming request reqId: 11 req: { "method": "GET", "url": "/api/server/qrcode.svg", "hostname": "10.0.112.3:8581", "remoteAddress": "::ffff:10.0.112.3", "remotePort": 50145 } [1581894171632] INFO (80 on iMac-Roduongo.local): request completed reqId: 11 res: { "statusCode": 200 } responseTime: 4.6980409999378026

Homebridge Config:

{ "bridge": { "name": "Homeboy", "username": "0E:89:D4:F5:A6:5D", "port": 51888, "pin": "265-31-966" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "auth": "form", "theme": "auto", "tempUnits": "f", "debug": true, "platform": "config" }, { "name": "Home", "email": "(censored)", "password": "(censored)", "platform": "MyQ2" } ] }

Screenshots:

Screen Shot 2020-02-16 at 3 06 55 PM

Environment:

oznu commented 4 years ago

Are you running any third party firewall or av software that might be blocking incoming connections?

jamesrod73 commented 4 years ago

No, the system firewall was running but disabling it and restarting doesn't seem to have an effect.

antagosteenl commented 4 years ago

I am having the same problem.

[2/25/2020, 1:16:37 PM] Homebridge is running on port 51826. [2/25/2020, 1:16:42 PM] [My FritzBox] Fritz!Box session renewed [2/25/2020, 1:16:42 PM] [My FritzBox] renewed:31e253d78c8a44c7 [2/25/2020, 1:16:42 PM] [My FritzBox] renewed, now calling:31e253d78c8a44c7,[object Object] [2/25/2020, 1:16:53 PM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [2/25/2020, 1:16:53 PM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [2/25/2020, 1:16:56 PM] [My FritzBox] Updating guest WLAN homebridge : TTY=pts/7 ; PWD=/var/homebridge ; USER=root ; COMMAND=/bin/journalctl -o cat -n 500 -f -u homebridge pam_unix(sudo:session): session opened for user root by (uid=0) [2/25/2020, 1:17:02 PM] [Config] [homebridge] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-config-ui-x] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-fritz] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-neato] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-rfoutlets] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-shelly] Error: ETIMEDOUT [2/25/2020, 1:17:07 PM] [Config] [homebridge-wol] Error: ETIMEDOUT

And no Devices are shown.

Agrm930 commented 4 years ago

I too am having this problem. Running windows 10 as OS [3/2/2020, 10:57:07 AM] [HB Supervisor] Homebridge Path: C:\Users\arunk\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge [3/2/2020, 10:57:07 AM] [HB Supervisor] UI Path: C:\Users\arunk\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js [3/2/2020, 10:57:07 AM] [HB Supervisor] Started Homebridge with PID: 15872 [3/2/2020, 10:57:07 AM] Loaded config.json with 0 accessories and 4 platforms. [3/2/2020, 10:57:07 AM] --- [3/2/2020, 10:57:07 AM] Loaded plugin: homebridge-config-ui-x [3/2/2020, 10:57:07 AM] Registering platform 'homebridge-config-ui-x.config' [3/2/2020, 10:57:07 AM] --- [3/2/2020, 10:57:07 AM] Loaded plugin: homebridge-google-nest [3/2/2020, 10:57:07 AM] Registering platform 'homebridge-nest.Nest' [3/2/2020, 10:57:07 AM] --- [3/2/2020, 10:57:07 AM] Loaded plugin: homebridge-gsh [3/2/2020, 10:57:07 AM] Registering platform 'homebridge-gsh.google-smarthome' [3/2/2020, 10:57:07 AM] --- [3/2/2020, 10:57:08 AM] Loaded plugin: homebridge-harmony [3/2/2020, 10:57:08 AM] Registering platform 'homebridge-harmonyHub.HarmonyHubWebSocket' [3/2/2020, 10:57:08 AM] --- [3/2/2020, 10:57:08 AM] [Config] Homebridge Config UI X v4.11.0 is listening on :: port 8581 [3/2/2020, 10:57:08 AM] Loaded plugin: homebridge-ring [3/2/2020, 10:57:08 AM] Registering platform 'homebridge-ring.Ring' [3/2/2020, 10:57:08 AM] --- [3/2/2020, 10:57:08 AM] Loading 4 platforms... [3/2/2020, 10:57:08 AM] [Config] Initializing config platform... [3/2/2020, 10:57:08 AM] [Config] Running in Standalone Mode. [3/2/2020, 10:57:08 AM] [Nest] Initializing Nest platform... [3/2/2020, 10:57:08 AM] [Nest] Fetching Nest devices. [3/2/2020, 10:57:08 AM] [Google Smart Home] Initializing google-smarthome platform... [3/2/2020, 10:57:08 AM] [HarmonyHub] Initializing HarmonyHubWebSocket platform... [3/2/2020, 10:57:08 AM] [HarmonyHub] HarmonyPlatform Init [3/2/2020, 10:57:08 AM] Loading 0 accessories... Load homebridge-ring.Ring [3/2/2020, 10:57:08 AM] [homebridge-ring.Ring] No configuration found for platform Ring [3/2/2020, 10:57:08 AM] [HarmonyHub] WARNING - configureAccessory - TV accessory added in your bridge from cache, if another plugin is exposing a TV accessory this one might not be visible in your remote widget [3/2/2020, 10:57:08 AM] [HarmonyHub] DidFinishLaunching [3/2/2020, 10:57:08 AM] [HarmonyHub] INFO - Loading activities... [3/2/2020, 10:57:10 AM] [Nest] Auth failed: access token specified in Homebridge configuration rejected [3/2/2020, 10:57:10 AM] [Google Smart Home] Connected (1) - wss://homebridge-gsh.iot.oz.nu [3/2/2020, 10:57:10 AM] [HarmonyHub] (HarmonyHub)INFO - configuring Main TV Service [3/2/2020, 10:57:10 AM] [HarmonyHub] (HarmonyHub)INFO - Configuring Main Activity Play Xbox One [3/2/2020, 10:57:10 AM] [HarmonyHub] INFO - Loading geeneral mute Switch... [3/2/2020, 10:57:34 AM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [3/2/2020, 10:57:34 AM] [Config] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. [3/2/2020, 10:57:34 AM] [Google Smart Home] Finished instance discovery [3/2/2020, 10:57:49 AM] [Google Smart Home] Sending Sync Request [3/2/2020, 10:57:50 AM] [Google Smart Home] Received SYNC intent

Agrm930 commented 4 years ago

yo, I think I solved it. just typed "hb-service run" into node.js cmd prompt as administrator.

Agrm930 commented 4 years ago

^nevermind it broke again

Agrm930 commented 4 years ago

but it is working when you remove all plugins

oznu commented 4 years ago

@Agrm930 you have an issue with the nest plugin in.

[3/2/2020, 10:57:10 AM] [Nest] Auth failed: access token specified in Homebridge configuration rejected
stale[bot] commented 4 years ago

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.

antagosteenl commented 4 years ago

My solution is a new installation of Hoobs.