Skip to content

Upating Plugin via Admin UI breaks multiple plugins #580

@mStirner

Description

@mStirner

After releasing a new version of the node-red plugin, and updating via admin ui, the "lowboard" (32ae791a-a073-4c2c-a2e9-1a9ca0d572ed) and "node-red" (09d24b11-041f-4d4b-911c-f2ab04b4f60d) plugin are broken.

Aug 24 20:31:51 open-haus.lan node[2935326]: Starting OpenHaus in "development" mode v3.2.2...
Aug 24 20:31:51 open-haus.lan node[2935326]: [2025.08.24 - 20:31:51.645][warn][system] > OpenHaus runs not in production mode! (development)

Aug 24 20:32:07 open-haus.lan node[2935326]: [2025.08.24 - 20:32:07.299][debug][system] Init Database...
Aug 24 20:32:07 open-haus.lan node[2935326]: [2025.08.24 - 20:32:07.401][info][system] Connected to "mongodb://127.0.0.1:27017/OpenHaus"
Aug 24 20:32:07 open-haus.lan node[2935326]: [2025.08.24 - 20:32:07.402][debug][system] Init components...
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.397][debug][system] Component "vault" ready to use. (1/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.418][debug][system] Component "users" ready to use. (2/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.422][debug][system] Component "ssdp" ready to use. (3/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.427][debug][system] Component "mqtt" ready to use. (4/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.437][debug][system] Component "devices" ready to use. (5/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.443][debug][system] Component "mdns" ready to use. (6/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.470][debug][system] Component "endpoints" ready to use. (7/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.477][debug][system] Component "scenes" ready to use. (8/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.486][debug][system] Component "plugins" ready to use. (9/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.490][debug][system] Component "webhooks" ready to use. (10/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.493][debug][system] Component "store" ready to use. (11/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.495][debug][system] Component "rooms" ready to use. (12/12)
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.495][info][system] All 12 Components ready
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.495][debug][system] Init http server...
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.506][info][system] HTTP Server listening on /tmp/open-haus.sock
Aug 24 20:32:42 open-haus.lan node[2935326]: [2025.08.24 - 20:32:42.506][info][system] HTTP Server listening on http://0.0.0.0:8080
Aug 24 20:32:43 open-haus.lan node[2935326]: [2025.08.24 - 20:32:43.109][warn][system] http://0.0.0.0:8080/api/about is derpecated and will be removed in v4
Aug 24 20:32:43 open-haus.lan node[2935326]: [2025.08.24 - 20:32:43.109][warn][system] http://0.0.0.0:8080/api/logs is derpecated and will be removed in v4
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.166][debug][system] Starting plugins...
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.167][debug][system] Start plugin "Lowboard"...
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.187][error][system] Error in plugin "Lowboard":
Aug 24 20:32:45 open-haus.lan node[2935326]: Error: Cannot find module 'node-red'
Aug 24 20:32:45 open-haus.lan node[2935326]: Require stack:
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/plugins/32ae791a-a073-4c2c-a2e9-1a9ca0d572ed/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/components/plugins/class.plugin.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/components/plugins/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/system/init/init.components.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Function._load (node:internal/modules/cjs/loader:1211:37)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Module.require (node:internal/modules/cjs/loader:1487:12)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at require (node:internal/modules/helpers:135:16)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Object.<anonymous> (/opt/OpenHaus/backend-nightly/plugins/32ae791a-a073-4c2c-a2e9-1a9ca0d572ed/index.js:1:7)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Module._compile (node:internal/modules/cjs/loader:1730:14)
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.187][error][system] Could not boot plugin "Lowboard" (32ae791a-a073-4c2c-a2e9-1a9ca0d572ed)
Aug 24 20:32:45 open-haus.lan node[2935326]: Error: Cannot find module 'node-red'
Aug 24 20:32:45 open-haus.lan node[2935326]: Require stack:
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/plugins/32ae791a-a073-4c2c-a2e9-1a9ca0d572ed/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/components/plugins/class.plugin.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/components/plugins/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/system/init/init.components.js
Aug 24 20:32:45 open-haus.lan node[2935326]: - /opt/OpenHaus/backend-nightly/index.js
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Function._load (node:internal/modules/cjs/loader:1211:37)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Module.require (node:internal/modules/cjs/loader:1487:12)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at require (node:internal/modules/helpers:135:16)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Object.<anonymous> (/opt/OpenHaus/backend-nightly/plugins/32ae791a-a073-4c2c-a2e9-1a9ca0d572ed/index.js:1:7)
Aug 24 20:32:45 open-haus.lan node[2935326]:     at Module._compile (node:internal/modules/cjs/loader:1730:14)
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.188][debug][system] Start plugin "Phoscon Gateway"...
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.196][debug][plugins/8f00a50c-39dc-408d-a621-b56363ab2b69] Store for device "Phoscon Gateway" found
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.196][debug][plugins/8f00a50c-39dc-408d-a621-b56363ab2b69] Vault for device "Phoscon Gateway" found
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.420][warn][plugins/8f00a50c-39dc-408d-a621-b56363ab2b69] WebSocket interface bridged, connect...
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.428][debug][plugins/8f00a50c-39dc-408d-a621-b56363ab2b69] Plugin started
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.428][debug][system] Start plugin "Shelly Gen 1 Integration"...
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.448][warn][plugins/79ff8232-3084-4bbc-8e9c-42bb03203fb0] Hello from plugin Shelly Gen 1 Integration [Function: init]
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.666][debug][plugins/79ff8232-3084-4bbc-8e9c-42bb03203fb0] Plugin started
Aug 24 20:32:45 open-haus.lan node[2935326]: [2025.08.24 - 20:32:45.666][debug][system] Start plugin "Particlesensor MQTT bridge"...

Seems like the update process has overriden the lowboard plugin floder.
Also no npm install was executed after extracting.


TLDR:

  • lowboard plugin folder was overridden
  • no npm install was executed after extrating

Metadata

Metadata

Assignees

No one assigned

    Labels

    closeDiscuss to be closed or closed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions