RedMatic Update 7.3.5

Node-RED als CCU3/RaspberryMatic Addon, WebApp, HomeKit, ...

Moderator: Co-Administratoren

hmpos365
Beiträge: 56
Registriert: 07.02.2018, 13:03
System: Alternative CCU (auf Basis OCCU)
Wohnort: 06686 Lützen
Hat sich bedankt: 1 Mal
Danksagung erhalten: 3 Mal

Re: RedMatic Update 7.3.5

Beitrag von hmpos365 » 12.01.2024, 18:19

Nun, der neue Versuch einer Installation der 7.3.5 ist wieder gescheitert, da die RedMatik nicht wieder startet, auch nicht im Safe Mode.
Das Log sieht so aus:

Code: Alles auswählen

Jan 12 17:58:57 homematic-raspi daemon.info redmatic: Henke Script redmatic init
Jan 12 17:59:14 homematic-raspi daemon.info redmatic: Henke Script redmatic start
Jan 12 17:59:14 homematic-raspi daemon.info redmatic: Henke Script redmaticVersions 
Jan 12 17:59:15 homematic-raspi daemon.info redmatic: Starting Node-RED after reboot ... waiting 30 seconds...
Jan 12 17:59:45 homematic-raspi daemon.info redmatic: RedMatic v7.3.5 (c) Sebastian Raff https://github.com/rdmtc/RedMatic - Patch Henke
Jan 12 17:59:45 homematic-raspi daemon.warn redmatic: Henke Script redmaticLoader
Jan 12 17:59:45 homematic-raspi daemon.info redmatic: Waiting 45 seconds before activating monit services
Jan 12 17:59:45 homematic-raspi daemon.warn redmatic: Henke checkNR start
Jan 12 17:59:54 homematic-raspi daemon.warn redmatic: Henke checkNR done false
Jan 12 17:59:54 homematic-raspi daemon.info redmatic: Starting Node-RED
Jan 12 18:00:05 homematic-raspi daemon.err node-red: /usr/local/addons/redmatic/lib/node_modules/@node-red/runtime/lib/flows/Flow.js:164
Jan 12 18:00:05 homematic-raspi daemon.err node-red:                     const globalCreds = credentials.get(node.id)?.map || {}
Jan 12 18:00:05 homematic-raspi daemon.err node-red:                                                                  ^
Jan 12 18:00:05 homematic-raspi daemon.err node-red: SyntaxError: Unexpected token '.'
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at wrapSafe (internal/modules/cjs/loader.js:915:16)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Module._compile (internal/modules/cjs/loader.js:963:27)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Module.load (internal/modules/cjs/loader.js:863:32)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Module.require (internal/modules/cjs/loader.js:887:19)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at require (internal/modules/cjs/helpers.js:74:18)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Object.<anonymous> (/usr/local/addons/redmatic/lib/node_modules/@node-red/runtime/lib/flows/index.js:19:12)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Module._compile (internal/modules/cjs/loader.js:999:30)
Jan 12 18:00:05 homematic-raspi daemon.err node-red:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Jan 12 18:00:05 homematic-raspi daemon.err node-red: Node-RED exited with non-zero exit status 1
Jan 12 18:00:30 homematic-raspi user.info monit[976]: 'redmatic-diskusage' monitor on user request
Jan 12 18:00:30 homematic-raspi user.info monit[976]: 'redmatic-nodered' monitor on user request
Jan 12 18:00:30 homematic-raspi user.info monit[976]: 'redmatic-nodered' monitor action done
Jan 12 18:00:30 homematic-raspi user.info monit[976]: 'redmatic-diskusage' monitor action done
Jan 12 18:00:31 homematic-raspi daemon.info redmatic: Henke Script redmaticVersions 
Ganz offensichtlich gibt es da auch einen Fehler!
Nochmal auch zu dem Punkt, an dem die RedMatic neu gestartet wird. Hier steht, wie ich auch schon in einem früheren Post schrieb, als Aufruf die IP-Adresse 127.0.0.1. Unter der Adresse wird meine RaspberryMatic/RedMatic aber nicht gefunden. Ich habe im Nachgang hier die eigentliche IP-Adresse 192.168.0.225 eingetragen und dann nochmal den Start-Botton gedrückt. Diese Änderung hätte ich vielleicht gleich am Anfang machen sollen.
Frage: Ist an dieser Installation noch was zu retten oder fange ich wieder ganz vorne an?
VG
Hubert

RaspberryMatic z.Zt in Version 3.73.9.20231130 mit
RedMatic Version 7.2.1
Weiterhin
RaspberryMatic als OVA unter VMware in Version 3.73.9.20231130 mit
RedMatic Version 7.2.1

drose28357
Beiträge: 184
Registriert: 14.10.2011, 09:05
System: CCU
Wohnort: Bremen
Hat sich bedankt: 61 Mal
Danksagung erhalten: 7 Mal

GELÖST: RedMatic Update 7.3.5 bricht ab

Beitrag von drose28357 » 16.01.2024, 10:14

Bei mir scheinen npm und node.js nicht durch den Update zu laufen.
Habe den Block "Update 7.3.5" und (nach ausreichender Zeit und npm-doctor) "Check/Install node.js" durchlaufen lassen, dann
Ergebnis npm doctor:

Code: Alles auswählen

Check                               Value   Recommendation/Notes
npm ping                            ok       
npm -v                              not ok  Use npm v10.3.0
node -v                             not ok  Use node v20.11.0 (current: v18.18.2)
npm config get registry             ok      using default registry (https://registry.npmjs.org/)
git executable in PATH              ok      /usr/local/addons/redmatic/bin/git
global bin folder in PATH           ok      /usr/bin
Perms check on cached files         ok       
Perms check on local node_modules   ok       
Perms check on global node_modules  ok       
Perms check on local bin folder     ok       
Perms check on global bin folder    ok       
Verify cache contents               ok      verified 51 tarballs
Hier mein letzter Versuch über den Block "update Redmatic":

Code: Alles auswählen

16.1.2024, 09:48:08node: Update NodeRed
Update NodeRed : msg : Object
{ _msgid: "782e99d01a075d54", topic: "Update NodeRed", filename: "/usr/local/addons/redmatic/lib…", node_js_ok: true, payload: object … }
16.1.2024, 09:48:08node: Update NodeRed
Update NodeRed : msg : Object
{ _msgid: "bfeaf6939efe4711", topic: "Update NodeRed", filename: "/usr/local/addons/redmatic/lib…", node_js_ok: true, payload: object … }
16.1.2024, 09:48:24node: 748c49a6a9855b6e
Update NodeRed : msg.payload : string[518]
string[518]
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /usr/local/addons/redmatic/lib/node_modules/@babel/runtime
npm ERR! dest /usr/local/addons/redmatic/lib/node_modules/@babel/.runtime-vBc27jZ6
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/addons/redmatic/lib/node_modules/@babel/runtime' -> '/usr/local/addons/redmatic/lib/node_modules/@babel/.runtime-vBc27jZ6'

npm ERR! A complete log of this run can be found in: /tmp/npm-cache/_logs/2024-01-16T08_48_08_743Z-debug-0.log
Das o.a. log "...743Z-debug.." kann ich in dem Verzeichnis nicht finden.
Von den vorhergehenden Läufen sind drei Log im Verzeichnis, die ich runterladen konnte.

Die Logs sende ich Michael per PN.
Gruß aus Bremen

Update: Habe in der SSH-Console das Script von "Install node.js" im Block "Check/Install node.js" ausgeführt.

Code: Alles auswählen

root@hmrpi4:/usr/local# node -v
v18.18.2
root@hmrpi4:/usr/local# npm -v
9.8.1
root@hmrpi4:/usr/local# npm install -g node@20.10.0

added 2 packages in 17s
root@hmrpi4:/usr/local# npm install -g npm
npm ERR! code ENOENT
npm ERR! syscall mkdir
npm ERR! path /root/.npm
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, mkdir '/root/.npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
root@hmrpi4:/usr/local# node -v
v18.18.2
root@hmrpi4:/usr/local# npm -v
9.8.1
dann mit verbose ...

Code: Alles auswählen

root@hmrpi4:/usr/local# npm install -g npm --loglevel=verbose
npm verb cli /usr/local/lib/node_modules/node/bin/node /usr/bin/npm
npm info using npm@9.8.1
npm info using node@v20.10.0
npm verb cache could not create cache: Error: ENOENT: no such file or directory, mkdir '/root/.npm'
npm verb logfile could not create logs-dir: Error: ENOENT: no such file or directory, mkdir '/root/.npm'
npm verb title npm install npm
npm verb argv "install" "--global" "npm" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/root/.npm/_logs/2024-01-16T10_03_22_586Z-
npm verb logfile could not be created: Error: ENOENT: no such file or directory, open '/root/.npm/_logs/2024-01-16T10_03_22_586Z-debug-0.log'
npm verb logfile no logfile created
npm verb stack Error: ENOENT: no such file or directory, mkdir '/root/.npm'
npm verb cwd /usr/local
npm verb Linux 6.1.63
npm verb node v20.10.0
npm verb npm  v9.8.1
npm ERR! code ENOENT
npm ERR! syscall mkdir
npm ERR! path /root/.npm
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, mkdir '/root/.npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm verb exit -2
npm verb unfinished npm timer command:install 1705399403266
npm verb code -2

npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Update 2:
Nach einiger Zeit scheint sich was geheilt zu haben :D
npm-doctor liefert jetzt dieses hier:

Code: Alles auswählen

npm doctor : msg.payload : string[795]
string[795]
Check                               Value   Recommendation/Notes
npm ping                            ok       
npm -v                              ok      current: v10.3.0, latest: v10.3.0
node -v                             not ok  Use node v20.11.0 (current: v20.10.0)
npm config get registry             ok      using default registry (https://registry.npmjs.org/)
git executable in PATH              ok      /usr/local/addons/redmatic/bin/git
global bin folder in PATH           ok      /usr/bin
Perms check on cached files         ok       
Perms check on local node_modules   ok       
Perms check on global node_modules  ok       
Perms check on local bin folder     ok       
Perms check on global bin folder    ok       
Verify cache contents               ok      verified 10 tarballs
RaspberryMatic auf Raspberry Pi 4 2Gbyte

Benutzeravatar
Henke
Beiträge: 1536
Registriert: 27.06.2022, 20:51
System: CCU
Hat sich bedankt: 144 Mal
Danksagung erhalten: 309 Mal

Re: RedMatic Update 7.3.5

Beitrag von Henke » 16.01.2024, 15:53

drose28357 hat geschrieben:
16.01.2024, 10:14
Block "update Redmatic"
Unter /usr/local/addons/redmatic/lib/node_modules/@babel/.runtime-vBc27jZ6 sind noch Überbleibsel eine fehlgeschlagenen Installation.
Den Ordner löschen, dann sollte es laufen.

npm
Was kommt dabei?

Code: Alles auswählen

cd /usr/local
npm config list

drose28357
Beiträge: 184
Registriert: 14.10.2011, 09:05
System: CCU
Wohnort: Bremen
Hat sich bedankt: 61 Mal
Danksagung erhalten: 7 Mal

Re: RedMatic Update 7.3.5

Beitrag von drose28357 » 16.01.2024, 17:37

here you are ....

Code: Alles auswählen

root@hmrpi4:/usr/local/addons/redmatic/lib/node_modules# cd /usr/local
root@hmrpi4:/usr/local# npm config list
; node bin location = /usr/local/lib/node_modules/node/bin/node
; node version = v20.10.0
; npm local prefix = /usr/local
; npm version = 10.3.0
; cwd = /usr/local
; HOME = /root
; Run `npm config ls -l` to show all defaults.
RaspberryMatic auf Raspberry Pi 4 2Gbyte

Benutzeravatar
Henke
Beiträge: 1536
Registriert: 27.06.2022, 20:51
System: CCU
Hat sich bedankt: 144 Mal
Danksagung erhalten: 309 Mal

Re: RedMatic Update 7.3.5

Beitrag von Henke » 16.01.2024, 17:55

1:1 wie bei mir
Wenn ich dann "npm install -g npm" eingebe kommt keine Fehlermeldung.

Abgesehen davon ist alles aktuell. Es gibt zwar schon die node.js v20.11.0, aber die ist noch nicht im v20-lts Zweig aktualisiert.
Siehe: "npm view node"
Sobald die dort erscheint, wird der flow auch die 20.11.0 installieren.

hkolb
Beiträge: 14
Registriert: 08.01.2024, 11:43
System: sonstige

Re: RedMatic Update 7.3.5

Beitrag von hkolb » 18.01.2024, 13:58

Hallo!

Heute hab ich mich nochmal an das Update gewagt, der erste Versuch klappte leider auch nicht.

Darum habe ich Redmatic vor dem Update de- und neu installiert.
Trotdem sind wieder Fehler aufgetreten. Hier für die Profis das Log:

Code: Alles auswählen

Jan 18 12:14:32 ccu3-webui daemon.info redmatic: Henke Script redmatic restart
Jan 18 12:14:32 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' unmonitor on user request
Jan 18 12:14:32 ccu3-webui user.info monit[2459]: 'redmatic-nodered' unmonitor on user request
Jan 18 12:14:32 ccu3-webui daemon.info redmatic: Stopping Node-RED
Jan 18 12:14:32 ccu3-webui daemon.info node-red[6524]: Flows stoppen
Jan 18 12:14:33 ccu3-webui user.info monit[2459]: 'redmatic-nodered' unmonitor action done
Jan 18 12:14:33 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' unmonitor action done
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] regadata saved to /usr/local/addons/redmatic/var/ccu_rega_localhost.json
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] values saved to /usr/local/addons/redmatic/var/ccu_values_localhost.json
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] de-init BidCos-RF http://127.0.0.1:2048 done
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] de-init HmIP-RF http://127.0.0.1:2048 done
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] de-init VirtualDevices http://127.0.0.1:2048 done
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] xmlrpc server closed
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: [ccu-connection:localhost] rpc close done
Jan 18 12:14:33 ccu3-webui daemon.info node-red[6524]: Flows gestoppt
Jan 18 12:14:34 ccu3-webui daemon.info redmatic: Node-RED stopped
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: RedMatic v7.3.5 (c) Sebastian Raff https://github.com/rdmtc/RedMatic - Patch Henke
Jan 18 12:14:45 ccu3-webui daemon.warn redmatic: Henke Script redmaticLoader
Jan 18 12:14:45 ccu3-webui daemon.warn redmatic: Henke checkNR start
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Waiting 45 seconds before activating monit services
Jan 18 12:14:45 ccu3-webui daemon.warn redmatic: Henke checkNR done true
Jan 18 12:14:45 ccu3-webui daemon.warn redmatic: Update NodeRed
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh node-red done
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh theme-collection done
Jan 18 12:14:45 ccu3-webui daemon.info redmatic: Starting Node-RED
Jan 18 12:14:49 ccu3-webui daemon.err node-red: (node:14366) [DEP0128] DeprecationWarning: Invalid 'main' field in '/usr/local/addons/redmatic/lib/node_modules/node-red/node_modules/@node-red/editor-client/package.json' of './lib/index.js'. Please either fix that or report it to the module author
Jan 18 12:14:49 ccu3-webui daemon.err node-red: (Use `node --trace-deprecation ...` to show where the warning was created)
Jan 18 12:15:30 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' monitor on user request
Jan 18 12:15:30 ccu3-webui user.info monit[2459]: 'redmatic-nodered' monitor on user request
Jan 18 12:15:32 ccu3-webui user.info monit[2459]: 'redmatic-nodered' monitor action done
Jan 18 12:15:32 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' monitor action done
Jan 18 12:17:06 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 12:25:38 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 12:44:49 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 12:47:34 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 12:47:34 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 12:47:45 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 12:47:45 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 12:47:46 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 12:47:46 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 13:14:15 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 13:14:15 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 13:14:25 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 13:14:25 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 13:14:25 ccu3-webui daemon.info redmatic: Henke Script redmatic info.de
Jan 18 13:14:26 ccu3-webui daemon.info redmatic: Henke Script redmatic info
Jan 18 13:14:45 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Nach einer Stunde sind nur noch die Zeilen "Henke Script redmatic info" und "Henke Script redmaticVersions " gekommen. Im Debug kam leider nur am Anfang eine Meldung, dann nichts mehr. Da habe ich Redmatic mal neu gestartet, mit folgendem Ergebnis:

Code: Alles auswählen

Jan 18 13:15:43 ccu3-webui daemon.info redmatic: Henke Script redmatic stop
Jan 18 13:15:43 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' unmonitor on user request
Jan 18 13:15:43 ccu3-webui user.info monit[2459]: 'redmatic-nodered' unmonitor on user request
Jan 18 13:15:43 ccu3-webui daemon.info redmatic: Stopping Node-RED
Jan 18 13:15:45 ccu3-webui daemon.info redmatic: Node-RED stopped
Jan 18 13:15:45 ccu3-webui user.info monit[2459]: 'redmatic-nodered' unmonitor action done
Jan 18 13:15:45 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' unmonitor action done
Jan 18 13:15:53 ccu3-webui daemon.info redmatic: Henke Script redmatic start
Jan 18 13:15:53 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: RedMatic v7.3.5 (c) Sebastian Raff https://github.com/rdmtc/RedMatic - Patch Henke
Jan 18 13:15:54 ccu3-webui daemon.warn redmatic: Henke Script redmaticLoader
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: Waiting 45 seconds before activating monit services
Jan 18 13:15:54 ccu3-webui daemon.warn redmatic: Henke checkNR start
Jan 18 13:15:54 ccu3-webui daemon.warn redmatic: Henke checkNR done true
Jan 18 13:15:54 ccu3-webui daemon.warn redmatic: Update NodeRed
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh node-red done
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh theme-collection done
Jan 18 13:15:54 ccu3-webui daemon.info redmatic: Starting Node-RED
Jan 18 13:15:54 ccu3-webui daemon.err node-red: /usr/local/addons/redmatic/bin/redmaticLoader: line 60: node: not found
Jan 18 13:15:54 ccu3-webui daemon.err node-red: Node-RED exited with non-zero exit status 127
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Henke Script redmatic start
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: RedMatic v7.3.5 (c) Sebastian Raff https://github.com/rdmtc/RedMatic - Patch Henke
Jan 18 13:16:14 ccu3-webui daemon.warn redmatic: Henke Script redmaticLoader
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Waiting 45 seconds before activating monit services
Jan 18 13:16:14 ccu3-webui daemon.warn redmatic: Henke checkNR start
Jan 18 13:16:14 ccu3-webui daemon.warn redmatic: Henke checkNR done true
Jan 18 13:16:14 ccu3-webui daemon.warn redmatic: Update NodeRed
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh node-red done
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Henke Script updateNodeRed.sh theme-collection done
Jan 18 13:16:14 ccu3-webui daemon.info redmatic: Starting Node-RED
Jan 18 13:16:14 ccu3-webui daemon.err node-red: /usr/local/addons/redmatic/bin/redmaticLoader: line 60: node: not found
Jan 18 13:16:14 ccu3-webui daemon.err node-red: Node-RED exited with non-zero exit status 127
Jan 18 13:16:39 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' monitor on user request
Jan 18 13:16:39 ccu3-webui user.info monit[2459]: 'redmatic-nodered' monitor on user request
Jan 18 13:16:39 ccu3-webui user.info monit[2459]: 'redmatic-nodered' monitor action done
Jan 18 13:16:39 ccu3-webui user.info monit[2459]: 'redmatic-diskusage' monitor action done
Jan 18 13:16:43 ccu3-webui daemon.info redmatic: Henke Script redmaticVersions 
Jan 18 13:16:44 ccu3-webui user.err monit[2459]: 'redmatic-nodered' process is not running
Ein Neustart der CCU hat Redmatic dann wiederbelebt. In "Zusatzsoftware" ist Redmatic jetzt mit 7.3.5 aufgeführt.
Allerdings klappt keine Installation/Update eines nodes.
Bei einer SSH-Verbindung kommt bei einerm "npm --version" nur " npm: not found". Scheinbar wird das Programm "npm" nicht (mehr) gefunden.

Leider sind meine Linux Kentnisse nur auf Anwender-Ebene, abtippen und einfachere Sachen klappen, das Lösen dieses Problems nicht.
LG, Harry

Benutzeravatar
Henke
Beiträge: 1536
Registriert: 27.06.2022, 20:51
System: CCU
Hat sich bedankt: 144 Mal
Danksagung erhalten: 309 Mal

Re: RedMatic Update 7.3.5

Beitrag von Henke » 18.01.2024, 16:04

hkolb hat geschrieben:
18.01.2024, 13:58
Allerdings klappt keine Installation/Update eines nodes.
Das heißt für mich, das RedMatic wieder läuft. Damit sind die beiden logs von dir nicht mehr interessant, da es da nicht gestartet ist.
Jetzt vermute ich, das wie bei vielen anderen irgendwo Reste einer fehlerhaften Installation sind.
Daher, bitte erst einmal folgendes ausprobieren um zu sehen ob npm, node und Rechte passen:
Hinweis: Die Zeilen mit # sind Kommentare, die einfach überspringen.

Code: Alles auswählen

#!/bin/sh
# Verzeichnis NodeRed mit flows und installierten nodes
cd /usr/local/addons/redmatic/var
# Setze Pfade für bin, lib, git
source /usr/local/addons/redmatic/home/.profile
npm doctor
Dann eine node installieren und davon dann das log, wenn es nicht läuft.

hkolb
Beiträge: 14
Registriert: 08.01.2024, 11:43
System: sonstige

Re: RedMatic Update 7.3.5

Beitrag von hkolb » 18.01.2024, 17:58

Hier die Ausgabe im Terminal:

Code: Alles auswählen

root@ccu3-webui:~# cd /usr/local/addons/redmatic/var
root@ccu3-webui:/usr/local/addons/redmatic/var# source /usr/local/addons/redmati
c/home/.profile
root@ccu3-webui:/usr/local/addons/redmatic/var# npm doctor
-sh: npm: not found
root@ccu3-webui:/usr/local/addons/redmatic/var#
Einen node kann ich jetzt über die WebUI gar nicht mehr installieren, der Menupunkt "Palette" fehlt.
Aber wie sollte das auch ohne npm funktionieren?
Dateianhänge
Redmatic.png
Redmatic.png (13.93 KiB) 227 mal betrachtet

Benutzeravatar
Henke
Beiträge: 1536
Registriert: 27.06.2022, 20:51
System: CCU
Hat sich bedankt: 144 Mal
Danksagung erhalten: 309 Mal

Re: RedMatic Update 7.3.5

Beitrag von Henke » 18.01.2024, 18:44

npm wird bei dir nicht mehr gefunden. Eigentlich sollte neu in /usr/local/bin eine Version sein und die alte noch in /usr/bin.
Die alte könnte man dann nutzen um wieder weiter zu machen.

Code: Alles auswählen

/usr/bin/npm -v
muss dann eine Version ausgeben.

Alternativ könnte jetzt auch mit einer sauberen Installation begonnen werden.
RedMatic deinstallieren.
Ordner /usr/local/addons/redmatic/ löschen
RedMatic installieren
Update durchführen
und wenn das läuft aus dem Backup nur den flow und die credentials übertragen sowie die fehlenden nodes installieren.

hkolb
Beiträge: 14
Registriert: 08.01.2024, 11:43
System: sonstige

Re: RedMatic Update 7.3.5

Beitrag von hkolb » 18.01.2024, 19:03

Code: Alles auswählen

root@ccu3-webui:/usr/local/addons/redmatic/var# /usr/bin/npm -v
-sh: /usr/bin/npm: not found
Allerdings hab ich eine npm auf dem System gefunden Und die gibt aus:

Code: Alles auswählen

root@ccu3-webui:/usr/local/addons/redmatic/var# /usr/local/lib/node_modules/node/bin/npm -version
10.3.0
Hilft das weiter?

Wie schon erwähnt ist das System mit Redmatic-Addon NEU installiert, direkt vor dem Update! Da dürfen/können keine Reste von alten Installationen sein. :?:

Danke für deine Unterstützung!

Antworten

Zurück zu „RedMatic“