NEWS
Update tr-064 Adapter
-
Hallo,
seit einiger Zeit wird im iobroker ein Update angeboten, welches aber nicht installiert werden kann. Im Log steht Folgendes :tr-064.0 2020-06-01 09:18:46.824 info (4526) Terminated (NO_ERROR): Without reason
tr-064.0 2020-06-01 09:18:46.822 info (4526) terminating
tr-064.0 2020-06-01 09:18:46.785 error (4526) TypeError: Cannot read property 'getState' of undefined at checkIfUpdated (/opt/iobroker/node_modules/iobroker.tr-064/node_modules/soef/soef.js:1239:20) at Object.options.ready (/opt/io
tr-064.0 2020-06-01 09:18:46.782 error (4526) unhandled promise rejection: Cannot read property 'getState' of undefined
tr-064.0 2020-06-01 09:18:46.781 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
tr-064.0 2020-06-01 09:18:46.724 info (4526) starting. Version 0.4.18 in /opt/iobroker/node_modules/iobroker.tr-064, node: v10.20.1, js-controller: 3.1.4
tr-064.0 2020-06-01 09:18:13.493 info (3556) Terminated (NO_ERROR): Without reason
tr-064.0 2020-06-01 09:18:13.492 info (3556) terminating
tr-064.0 2020-06-01 09:18:13.459 error (3556) TypeError: Cannot read property 'getState' of undefined at checkIfUpdated (/opt/iobroker/node_modules/iobroker.tr-064/node_modules/soef/soef.js:1239:20) at Object.options.ready (/opt/io
tr-064.0 2020-06-01 09:18:13.455 error (3556) unhandled promise rejection: Cannot read property 'getState' of undefined
tr-064.0 2020-06-01 09:18:13.454 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
tr-064.0 2020-06-01 09:18:13.394 info (3556) starting. Version 0.4.18 in /opt/iobroker/node_modules/iobroker.tr-064, node: v10.20.1, js-controller: 3.1.4
tr-064.0 2020-06-01 09:17:40.102 info (2500) Terminated (NO_ERROR): Without reason
tr-064.0 2020-06-01 09:17:40.101 info (2500) terminating
tr-064.0 2020-06-01 09:17:40.067 error (2500) TypeError: Cannot read property 'getState' of undefined at checkIfUpdated (/opt/iobroker/node_modules/iobroker.tr-064/node_modules/soef/soef.js:1239:20) at Object.options.ready (/opt/io
tr-064.0 2020-06-01 09:17:40.064 error (2500) unhandled promise rejection: Cannot read property 'getState' of undefined
tr-064.0 2020-06-01 09:17:40.062 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
tr-064.0 2020-06-01 09:17:39.999 info (2500) starting. Version 0.4.18 in /opt/iobroker/node_modules/iobroker.tr-064, node: v10.20.1, js-controller: 3.1.4
tr-064.0 2020-06-01 09:17:06.757 info (1576) Terminated (NO_ERROR): Without reason
tr-064.0 2020-06-01 09:17:06.756 info (1576) terminatingDer Adapter ist rot und lässt sich auch nicht mehr starten.
Kann da vielleicht jemand helfen ?
-
@Ralf EInmal den Adapter deinstallieren und dann neuinstallieren.
BTW: Fehlermeldungen bitte in </> CodeTags setzen.
-
@Thomas-Braun Nach der Deinstallation und Restart von iobroker wird immer noch das Update angeboten obwohl der Adapter in den Instanzen nicht mehr vorhanden ist. Blicke im Moment leider nicht durch.
-
@Ralf
Du hast wohl nur die Instanz deinstalliert und nicht den ganzen Adapter -
iobroker list adapters iobroker update iobroker del tr-064 iobroker add tr-064
-
@Thomas-Braun sagte in Update tr-064 Adapter:
iobroker del tr-064
Adapter lässt sich nicht deinstallieren :
<Delete adapter "tr-064"
npm uninstall iobroker.tr-064 --error --prefix "/opt/iobroker" (System call)
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/dgram
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/ip
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/safe-buffer
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/dns-packet
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/sprintf-js
npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/soef
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.5 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext'
npm ERR! { [Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.npm ERR! A complete log of this run can be found in:
npm ERR! /home/iobroker/.npm/_logs/2020-06-01T08_05_12_110Z-debug.log
Error deleting adapter tr-064 from disk: Error: host.debian-iobroker: Cannot uninstall iobroker.tr-064: 243
You might have to delete it yourself!
root@debian-iobroker:~# -
@Ralf
Nicht als root rumhampeln und Konsolenausgaben in CodeTags setzen. -
-
@Thomas-Braun Meldung in der Konsole :
Leider darf der Benutzer ralf »/usr/bin/iobroker update« als root auf debian-iobroker nicht ausführen. -
@sigi234 sagte in Update tr-064 Adapter:
Bitte benutzt die Code Tags Funktion -> </>
Finde leider nichts dazu wie man´s macht.
-
@Ralf
Wie man mit der Maus scrollt ist aber bekannt, oder? Also scroll mal im Link von sigi234 bis Editor runter. -
@Jan1 ```
manchmal dauert´s halt etwas länger -
@Ralf
ist egal, wenn es dann doch irgendwann mal klappt -
@Jan1 noch eine Idee wie ich den Adapter los werde und neu installieren kann ?
-
-
@Thomas-Braun sagte in Update tr-064 Adapter:
adduser ralf sudo
Ggf. das nochmal als root und dann den root-login künftig vermeiden.
...und dann als "Ralf" einloggen ?
Ist das ein Problem, wenn ich mich als root einlogge ?
-
@Ralf
Ja, dann als Ralf einloggen.
root-login sollte tabu sein.
Als ralf dannsudo whoami
-
-
Why sudo?
Using sudo is better (safer) than opening a session as root for a number of reasons, including:
Nobody needs to know the root password (sudo prompts for the current user's password). Extra privileges can be granted to individual users temporarily, and then taken away without the need for a password change.
It's easy to run only the commands that require special privileges via sudo; the rest of the time, you work as an unprivileged user, which reduces the damage that mistakes can cause.
Auditing/logging: when a sudo command is executed, the original username and the command are logged.
For the reasons above, switching to root using sudo -i (or sudo su) is usually deprecated because it cancels the above features.Und das ganze System inkl. des Rechtemanagement ist darauf ausgelegt mit sudo zu agieren.
-
@Thomas-Braun Adapter lässt sich nach wie vor nicht deinstallieren :
ralf@debian-iobroker:~$ sudo whoami root ralf@debian-iobroker:~$ iobroker del tr-064 Delete adapter "tr-064" npm uninstall iobroker.tr-064 --error --prefix "/opt/iobroker" (System call) npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/dgram npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/ip npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/safe-buffer npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/dns-packet npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/sprintf-js npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker.tr-064/node_modules/soef npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.5 (node_modules/iobroker.info/node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code EACCES npm ERR! syscall access npm ERR! path /opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext' npm ERR! { [Error: EACCES: permission denied, access '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: npm ERR! '/opt/iobroker/node_modules/iobroker.tr-064/node_modules/array-ext' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-06-01T09_12_12_551Z-debug.log Error deleting adapter tr-064 from disk: Error: host.debian-iobroker: Cannot uninstall iobroker.tr-064: 243 You might have to delete it yourself! ralf@debian-iobroker:~$