NEWS
Freier Arbeitsspeicher nimmt schnell ab ...
-
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
@homoran das ist vollständig
wenn du keinen Befehl mit
sudo node....absetzst, gibt es für das Betriebssystem keinen Grund diese Meldung zu liefern.
Ergo musst du so etwas angefordert haben. -
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
@homoran das ist vollständig
wenn du keinen Befehl mit
sudo node....absetzst, gibt es für das Betriebssystem keinen Grund diese Meldung zu liefern.
Ergo musst du so etwas angefordert haben. -
@Homoran Das hier möchte ich machen:
iobroker update iobroker upgrade all iobroker stop iobroker upgrade self iobroker startErgebnis:
pi@MotionEye:~ $ iobroker update sudo: node: command not found pi@MotionEye:~ $@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
iobroker update
ruft im Hintergrund natürlich node ... mit sudo-Recht auf. Warum das bei dir verbogen ist? Keine Ahnung.
Müsste ich später Mal am Rechner schauen was da genau abläuft. -
mqtt Adater bekommt keine Verbindung (rotes Kreuz bei Verbindung):
Log:
mqtt.0 2023-01-14 17:54:49.153 info Starting MQTT-WebSocket authenticated server on 0.0.0.0:1887 mqtt.0 2023-01-14 17:54:49.151 info Starting MQTT authenticated server on 0.0.0.0:1886 mqtt.0 2023-01-14 17:54:48.697 info starting. Version 4.0.7 in /opt/iobroker/node_modules/iobroker.mqtt, node: v16.19.0, js-controller: 4.0.24 mqtt.0 2023-01-14 17:54:43.726 info Terminated (NO_ERROR): Without reason mqtt.0 2023-01-14 17:54:43.725 info terminating mqtt.0 2023-01-14 17:54:43.199 info Got terminate signal TERMINATE_YOURSELF mqtt.0 2023-01-14 17:54:43.180 info Adapter is disabled => stop mqtt.0 2023-01-14 17:51:49.649 info Starting MQTT-WebSocket authenticated server on 0.0.0.0:1887 mqtt.0 2023-01-14 17:51:49.647 info Starting MQTT authenticated server on 0.0.0.0:1886 mqtt.0 2023-01-14 17:51:49.193 info starting. Version 4.0.7 in /opt/iobroker/node_modules/iobroker.mqtt, node: v16.19.0, js-controller: 4.0.24 mqtt.0 2023-01-14 17:51:44.747 info Terminated (NO_ERROR): Without reason mqtt.0 2023-01-14 17:51:44.746 info terminating mqtt.0 2023-01-14 17:51:44.292 info Got terminate signal TERMINATE_YOURSELF mqtt.0 2023-01-14 17:51:44.232 info Adapter is disabled => stop mqtt.0 2023-01-14 17:35:53.342 info Starting MQTT-WebSocket authenticated server on 0.0.0.0:1887 mqtt.0 2023-01-14 17:35:53.340 info Starting MQTT authenticated server on 0.0.0.0:1886 mqtt.0 2023-01-14 17:35:52.918 info starting. Version 4.0.7 in /opt/iobroker/node_modules/iobroker.mqtt, node: v16.19.0, js-controller: 4.0.24 mqtt.0 2023-01-14 17:35:47.881 info Terminated (NO_ERROR): Without reason mqtt.0 2023-01-14 17:35:47.879 info terminating mqtt.0 2023-01-14 17:35:47.401 info Got terminate signal TERMINATE_YOURSELF mqtt.0 2023-01-14 17:35:47.364 info Adapter is disabled => stop -
@homoran eigentlich nicht, da ich den Pi gerade neu gestartet habe
Last login: Sat Jan 14 17:54:24 2023 pi@MotionEye:~ $ iobroker update sudo: node: command not found pi@MotionEye:~ $Was steht in der Datei /opt/iobroker/iobroker drin?
less /opt/iobroker/iobrokerSollte dann so aussehen:
#!/usr/bin/bash if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then sudo systemctl $1 iobroker elif [ "$1" = "fix" ]; then curl -sL https://iobroker.net/fix.sh | bash - elif [ "$1" = "diag" ]; then sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log else sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fiAlternativ den
iobroker stop iobroker fixausführen.
-
Was steht in der Datei /opt/iobroker/iobroker drin?
less /opt/iobroker/iobrokerSollte dann so aussehen:
#!/usr/bin/bash if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then sudo systemctl $1 iobroker elif [ "$1" = "fix" ]; then curl -sL https://iobroker.net/fix.sh | bash - elif [ "$1" = "diag" ]; then sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log else sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fiAlternativ den
iobroker stop iobroker fixausführen.
@thomas-braun Auf dem Slave der nicht mehr läuft:
#!/usr/bin/bash if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then sudo systemctl $1 iobroker elif [ "$1" = "fix" ]; then curl -sL https://iobroker.net/fix.sh | bash - elif [ "$1" = "diag" ]; then sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log else sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fi /opt/iobroker/iobroker (END) -
@thomas-braun Auf dem Slave der nicht mehr läuft:
#!/usr/bin/bash if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then sudo systemctl $1 iobroker elif [ "$1" = "fix" ]; then curl -sL https://iobroker.net/fix.sh | bash - elif [ "$1" = "diag" ]; then sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroker/iob_diag.log else sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fi /opt/iobroker/iobroker (END)Das passt. Keine Ahnung warum der Alias da bei dir nicht richtig aufgerufen wird.
iobroker statussagt?
-
Das passt. Keine Ahnung warum der Alias da bei dir nicht richtig aufgerufen wird.
iobroker statussagt?
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
iobroker status
pi@MotionEye:~ $ iobroker status sudo: node: command not found pi@MotionEye:~ $seltsam!
-
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
iobroker status
pi@MotionEye:~ $ iobroker status sudo: node: command not found pi@MotionEye:~ $seltsam!
-
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
sudo whoami
pi@MotionEye:~ $ sudo whoami root pi@MotionEye:~ $ -
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
sudo whoami
pi@MotionEye:~ $ sudo whoami root pi@MotionEye:~ $Jag den fixer mal über das System.
-
Jag den fixer mal über das System.
@thomas-braun schon mehrfach gemacht
pi@MotionEye:~ $ iob fix library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-12-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Installed gcc-c++ readlink: missing operand Try 'readlink --help' for more information. usage: setcap [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ] Note <filename> must be a regular (non-symlink) file. ========================================================================== Checking ioBroker user and directory permissions (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Database maintenance (3/4) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ... main: line 12: [: -lt: unary operator expected sudo: npm: command not found ========================================================================== Checking autostart (4/4) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== -
@thomas-braun schon mehrfach gemacht
pi@MotionEye:~ $ iob fix library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-12-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Installed gcc-c++ readlink: missing operand Try 'readlink --help' for more information. usage: setcap [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ] Note <filename> must be a regular (non-symlink) file. ========================================================================== Checking ioBroker user and directory permissions (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Database maintenance (3/4) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ... main: line 12: [: -lt: unary operator expected sudo: npm: command not found ========================================================================== Checking autostart (4/4) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
readlink: missing operand
Das sind auch schon komische Meldungen da. Normalerweise tauchen die nicht auf.
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejsliefert?
-
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
readlink: missing operand
Das sind auch schon komische Meldungen da. Normalerweise tauchen die nicht auf.
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejsliefert?
Und
sudo apt update apt policy libcap2-bin -
@thomas-braun schon mehrfach gemacht
pi@MotionEye:~ $ iob fix library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-12-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://deb.nodesource.com/node_14.x bullseye InRelease Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Installed gcc-c++ readlink: missing operand Try 'readlink --help' for more information. usage: setcap [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ] Note <filename> must be a regular (non-symlink) file. ========================================================================== Checking ioBroker user and directory permissions (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Database maintenance (3/4) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ... main: line 12: [: -lt: unary operator expected sudo: npm: command not found ========================================================================== Checking autostart (4/4) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) -
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
readlink: missing operand
Das sind auch schon komische Meldungen da. Normalerweise tauchen die nicht auf.
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejsliefert?
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
readlink: missing operand
Das sind auch schon komische Meldungen da. Normalerweise tauchen die nicht auf.
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejsliefert?
wie gebe ich das ein?
-
@thomas-braun sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
readlink: missing operand
Das sind auch schon komische Meldungen da. Normalerweise tauchen die nicht auf.
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejsliefert?
wie gebe ich das ein?
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
wie gebe ich das ein?
Wie meinst du das?
Eingeben oder in die Konsole pasten.
Ich würde es kopieren/pasten... -
@sms sagte in Freier Arbeitsspeicher nimmt schnell ab ...:
wie gebe ich das ein?
Wie meinst du das?
Eingeben oder in die Konsole pasten.
Ich würde es kopieren/pasten...@thomas-braun so?
pi@MotionEye:/ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 pi@MotionEye:/ $oder
pi@MotionEye:/ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null pi@MotionEye:/ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 pi@MotionEye:/ $ -
@thomas-braun so?
pi@MotionEye:/ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 pi@MotionEye:/ $oder
pi@MotionEye:/ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null pi@MotionEye:/ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 pi@MotionEye:/ $Ja, allerdings sieht das auf einem gesunden System so aus:
echad@chet:~ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 /usr/bin/nodejs /usr/bin/node /usr/bin/npm /usr/bin/npx v19.4.0 v19.4.0 9.2.0 9.2.0 4.0.24 echad echad adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin boinc gpio i2c spi iobroker tty /home/echadDa ist wohl nodejs kaputt.
-
Ja, allerdings sieht das auf einem gesunden System so aus:
echad@chet:~ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs aarch64 /usr/bin/nodejs /usr/bin/node /usr/bin/npm /usr/bin/npx v19.4.0 v19.4.0 9.2.0 9.2.0 4.0.24 echad echad adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin boinc gpio i2c spi iobroker tty /home/echadDa ist wohl nodejs kaputt.
@thomas-braun und wie bekomme ich das wieder hin?
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