NEWS
Update tr-064 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:~# -
@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. -
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) terminating
Der Adapter ist rot und lässt sich auch nicht mehr starten.
Kann da vielleicht jemand helfen ?
-
@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. -
@Thomas-Braun Meldung in der Konsole :
Leider darf der Benutzer ralf »/usr/bin/iobroker update« als root auf debian-iobroker nicht ausführen. -
@Thomas-Braun sagte in Update tr-064 Adapter:
adduser ralf sudoGgf. 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 ?
-
@Thomas-Braun sagte in Update tr-064 Adapter:
adduser ralf sudoGgf. 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 -
@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.
-
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:~$ -
@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:~$iobroker fix -
iobroker fix@Thomas-Braun sagte in Update tr-064 Adapter:
iobroker fix
und dann ?
ralf@debian-iobroker:~$ iobroker fix library: loaded Library version=2020-04-12 ioBroker or some processes are still running: io.admin.0 io.discovery.0 io.info.0 io.hue.0 io.ping.0 io.harmony.0 io.fakeroku.0 io.web.0 io.history.0 io.javascript.0 io.alexa2.0 io.sonoff.0 io.milight.0 io.iot.0 io.worx.0 io.tuya.0 io.shelly.0 Please stop them first and try again! ralf@debian-iobroker:~$ -
@Thomas-Braun sagte in Update tr-064 Adapter:
iobroker fix
und dann ?
ralf@debian-iobroker:~$ iobroker fix library: loaded Library version=2020-04-12 ioBroker or some processes are still running: io.admin.0 io.discovery.0 io.info.0 io.hue.0 io.ping.0 io.harmony.0 io.fakeroku.0 io.web.0 io.history.0 io.javascript.0 io.alexa2.0 io.sonoff.0 io.milight.0 io.iot.0 io.worx.0 io.tuya.0 io.shelly.0 Please stop them first and try again! ralf@debian-iobroker:~$iobroker stop iobroker fix -
iobroker stop iobroker fix@Thomas-Braun ok. sieht jetzt so aus :
========================================================================== Welcome to the ioBroker installation fixer! Script version: 2020-04-12 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== OK:1 http://deb.debian.org/debian buster InRelease Holen:2 http://deb.debian.org/debian buster-updates InRelease [49,3 kB] Holen:3 http://security.debian.org/debian-security buster/updates InRelease [65,4 kB] OK:4 https://deb.nodesource.com/node_10.x buster InRelease Es wurden 115 kB in 2 s geholt (48,7 kB/s). Paketlisten werden gelesen... Fertig Installed gcc-c++ Installed python-dev ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== ralf@debian-iobroker:~$ iobroker start ralf@debian-iobroker:~$ -
@Thomas-Braun ok. sieht jetzt so aus :
========================================================================== Welcome to the ioBroker installation fixer! Script version: 2020-04-12 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== OK:1 http://deb.debian.org/debian buster InRelease Holen:2 http://deb.debian.org/debian buster-updates InRelease [49,3 kB] Holen:3 http://security.debian.org/debian-security buster/updates InRelease [65,4 kB] OK:4 https://deb.nodesource.com/node_10.x buster InRelease Es wurden 115 kB in 2 s geholt (48,7 kB/s). Paketlisten werden gelesen... Fertig Installed gcc-c++ Installed python-dev ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== ralf@debian-iobroker:~$ iobroker start ralf@debian-iobroker:~$iobroker del tr-064 iobroker update iobroker upgrade iobroker add tr-064
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden