sskmy1024y / homebridge-assistant-ui

User Interface for Operating IoT Devices with VRM Avatars
MIT License
3 stars 2 forks source link

Error Loading Plugin #5

Open siobhanellis opened 3 years ago

siobhanellis commented 3 years ago

Installed with Config-UI

ERROR LOADING PLUGIN homebridge-assistant-ui: [1/6/2021, 8:50:16 PM] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-assistant-ui/index.js' Require stack:

sskmy1024y commented 3 years ago

@siobhanellis Thanks for submitting the issue. I've released 0.0.1-beta.14, which fixes this issue, on npm. Please give it a try.

siobhanellis commented 3 years ago

Error: The requested platform 'homebridge-assistant-ui' was not registered by any plugin. at PluginManager.getPluginForPlatform (/usr/local/lib/node_modules/homebridge/lib/pluginManager.js:152:23) at /usr/local/lib/node_modules/homebridge/lib/server.js:271:45 at Array.forEach (:null:null) at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:260:31) at Server.start (/usr/local/lib/node_modules/homebridge/lib/server.js:73:35) at cli (/usr/local/lib/node_modules/homebridge/lib/cli.js:88:12) at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

sskmy1024y commented 3 years ago

@siobhanellis Thanks for trying. However, I was not able to reproduce the same error with my environment. I tried with a macOS 10.15 and RaspberryPi (Ubuntu). homebrige and other plugins are up to date.

Please let me know your environment. Also, is this error shown in the config-ui screen?

siobhanellis commented 3 years ago

macOS 11.1 on a Macmini

Everything is up to date.

Homebridge V1.2.5 Nodes 14.3.0 Nom 6.14.7

It seems to me the problem is how it gets added to the config.json, that homebridge-assistant-ui is not recognised.

I also saw:

Error loading platform requested in your config.json at position 7

These errors are in my log, which is shown on the main screen of Homebridge UI

So, the issue seems to be that the platform is not loaded.

Siobhan

On Jan 7, 2021, at 9:30 AM, sho yamashita notifications@github.com<mailto:notifications@github.com> wrote:

@siobhanellishttps://github.com/siobhanellis Thanks for trying. However, I was not able to reproduce the same error with my equipment. I tried with a RaspberryPi with macOS 10.15 and Ubuntu. homebrige and other plugins are up to date.

Please let me know your environment. Also, is this error shown in the config-ui screen?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/sskmy1024y/homebridge-assistant-ui/issues/5#issuecomment-756262921, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5APBJU7PWIYLTRY2XNMP3SYXVT5ANCNFSM4VYOOJ7Q.

siobhanellis commented 3 years ago

OK, it is because platform, in config.json, needs to be assistant-ui, not homebridge-assistant-ui

Now getting more errors:

[Nest] 42059 - 01/07/2021, 2:16:45 PM [NestFactory] Starting Nest application... [Nest] 42059 - 01/07/2021, 2:16:45 PM [TypeOrmModule] Unable to connect to the database. Retrying (1)... +63ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42059 - 01/07/2021, 2:16:45 PM [InstanceLoader] TypeOrmModule dependencies initialized +2ms [Nest] 42059 - 01/07/2021, 2:16:45 PM [InstanceLoader] AppModule dependencies initialized +0ms [Nest] 42059 - 01/07/2021, 2:16:45 PM [InstanceLoader] ConfigModule dependencies initialized +1ms [Nest] 42059 - 01/07/2021, 2:16:45 PM [InstanceLoader] LayoutModule dependencies initialized +0ms [Nest] 42059 - 01/07/2021, 2:16:45 PM [InstanceLoader] AuthModule dependencies initialized +0ms

And

[Nest] 42213 - 01/07/2021, 2:20:02 PM [TypeOrmModule] Unable to connect to the database. Retrying (3)... +3001ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:05 PM [TypeOrmModule] Unable to connect to the database. Retrying (4)... +3077ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:08 PM [TypeOrmModule] Unable to connect to the database. Retrying (5)... +3114ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:11 PM [TypeOrmModule] Unable to connect to the database. Retrying (6)... +3120ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:15 PM [TypeOrmModule] Unable to connect to the database. Retrying (7)... +3087ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:18 PM [TypeOrmModule] Unable to connect to the database. Retrying (8)... +3137ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:21 PM [TypeOrmModule] Unable to connect to the database. Retrying (9)... +3139ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 42213 - 01/07/2021, 2:20:21 PM [ExceptionHandler] No connection options were found in any orm configuration files. +1ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)

On Jan 7, 2021, at 9:30 AM, sho yamashita notifications@github.com<mailto:notifications@github.com> wrote:

@siobhanellishttps://github.com/siobhanellis Thanks for trying. However, I was not able to reproduce the same error with my equipment. I tried with a RaspberryPi with macOS 10.15 and Ubuntu. homebrige and other plugins are up to date.

Please let me know your environment. Also, is this error shown in the config-ui screen?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/sskmy1024y/homebridge-assistant-ui/issues/5#issuecomment-756262921, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5APBJU7PWIYLTRY2XNMP3SYXVT5ANCNFSM4VYOOJ7Q.

sskmy1024y commented 3 years ago

@siobhanellis I understand this problem and have published a fix (v0.0.1-beta.16) .

I also tried it using macOS11.1, but I didn't get any TypeOrmModule errors. This has been fixed by 0.0.1-beta.14. Please try uninstalling homebridge-assistant-ui once and then install it again.

image

siobhanellis commented 3 years ago

Still getting errors:

[Nest] 63392 - 01/07/2021, 11:24:58 PM [NestFactory] Starting Nest application... [Nest] 63392 - 01/07/2021, 11:24:58 PM [TypeOrmModule] Unable to connect to the database. Retrying (1)... +60ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:24:58 PM [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 63392 - 01/07/2021, 11:24:58 PM [InstanceLoader] AppModule dependencies initialized +1ms [Nest] 63392 - 01/07/2021, 11:24:58 PM [InstanceLoader] ConfigModule dependencies initialized +0ms [Nest] 63392 - 01/07/2021, 11:24:58 PM [InstanceLoader] LayoutModule dependencies initialized +0ms [Nest] 63392 - 01/07/2021, 11:24:58 PM [InstanceLoader] AuthModule dependencies initialized +1ms [Nest] 63392 - 01/07/2021, 11:25:01 PM [TypeOrmModule] Unable to connect to the database. Retrying (2)... +3144ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:04 PM [TypeOrmModule] Unable to connect to the database. Retrying (3)... +3103ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:07 PM [TypeOrmModule] Unable to connect to the database. Retrying (4)... +3132ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:10 PM [TypeOrmModule] Unable to connect to the database. Retrying (5)... +3132ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:13 PM [TypeOrmModule] Unable to connect to the database. Retrying (6)... +3149ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:17 PM [TypeOrmModule] Unable to connect to the database. Retrying (7)... +3110ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) at runNextTicks (internal/process/task_queues.js:62:5) at processTimers (internal/timers.js:489:9) [Nest] 63392 - 01/07/2021, 11:25:20 PM [TypeOrmModule] Unable to connect to the database. Retrying (8)... +3088ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:23 PM [TypeOrmModule] Unable to connect to the database. Retrying (9)... +3060ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62) [Nest] 63392 - 01/07/2021, 11:25:23 PM [ExceptionHandler] No connection options were found in any orm configuration files. +1ms Error: No connection options were found in any orm configuration files. at ConnectionOptionsReader. (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/connection/ConnectionOptionsReader.js:35:35) at step (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:141:27) at Object.next (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:122:57) at fulfilled (/usr/local/lib/node_modules/homebridge-assistant-ui/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)

sskmy1024y commented 3 years ago

@siobhanellis Thank you for trying again and again. I am very grateful for your help.

But unfortunately, I cannot reproduce your error. Could you please help me with the following questions?

And, please check to see file exists /usr/local/lib/node_modules/homebridge-assistant-ui/dist/ormconfig.js. If it does not exist, you may have an older version installed.

I will continue my investigation. Thank you so much.

siobhanellis commented 3 years ago

And, please check to see file exists /usr/local/lib/node_modules/homebridge-assistant-ui/dist/ormconfig.js. - Yes it does