NEWS
iObroker not accessible
-
@thomas-braun thank you for you help so far - can you help me little bit with this Bullseye? How exactly I should install it?
-
In german language only:
https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye
But I'm sure that there are plenty of instructions out there in English or even your native language.
-
@thomas-braun kein problem - ich kann auch Deutch verstehen
Vielen Dank - probiere ich und melde.
So nach Bullseye instalation soll alles OK sein oder muss ich noch ewas anderes zu tun? -
Nein, der iobroker wird nach einem Upgrade auf Bullseye immer noch kaputt sein. Aber dann ist die Basis schonmal aktuell und stabil.
-
@thomas-braun I did all as per manual. can we check if everything is ok before next steps?
-
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
what is the feedback to this chain of commands?
-
pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l Kein Docker /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.18.1 v16.18.1 8.19.2 node:internal/modules/cjs/loader:988 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) at Function.Module._load (node:internal/modules/cjs/loader:833:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@raspberrypi:~ $
-
@vraanaa sagte in iObroker not accessible:
whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
@thomas-braun kommt diese
pi@raspberrypi:~ $ whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs pi pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker x11 LXDE-pi /home/pi Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://dl.yarnpkg.com/debian stable InRelease Hit:4 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. nodejs: Installed: 16.18.1-deb-1nodesource1 Candidate: 16.18.1-deb-1nodesource1 Version table: *** 16.18.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages pi@raspberrypi:~ $
-
Turn the Desktop OFF.
A server is running headless. Always. -
@thomas-braun meinst du dass ich remote vnc desktop benutzen nicht?
kann ich auch durch putty zum ssh gehen. -
@vraanaa
Nein, auch kein remote DESKTOP.
NO DESKTOP.sudo raspi-config
Menu: 1 System Options S5 Boot / Auto Login B1 Console
-
@thomas-braun I did it:
pi@raspberrypi:~ $ whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_S ESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy n odejs pi pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin g pio i2c spi iobroker tty /home/pi Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:4 https://dl.yarnpkg.com/debian stable InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. nodejs: Installed: 16.18.1-deb-1nodesource1 Candidate: 16.18.1-deb-1nodesource1 Version table: *** 16.18.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
-
@vraanaa sagte in iObroker not accessible:
@thomas-braun meinst du dass ich remote vnc
desktop benutzen nicht?
kann ich auch durch putty zum ssh gehen. -
iobroker status
-
@thomas-braun gleiche
pi@raspberrypi:~ $ iobroker status node:internal/modules/cjs/loader:988 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) at Function.Module._load (node:internal/modules/cjs/loader:833:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller
-
pi@raspberrypi:~ $ cd /opt/iobroker pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller npm ERR! code 24 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c -- node iobroker.js setup first npm ERR! Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"! npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-12-12T22_41_51_919Z-debug-0.log
-
@vraanaa sagte in iObroker not accessible:
systemctl status iobroker.service sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
-
pi@raspberrypi:/opt/iobroker $ systemctl status iobroker.servicesystemctl status iobroker.service Unit iobroker.servicesystemctl.service could not be found. Unit status.service could not be found. * iobroker.service - ioBroker Server Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-12-12 23:46:34 CET; 550ms ago Docs: http://iobroker.net Main PID: 7175 (node) Tasks: 7 (limit: 4915) CPU: 534ms CGroup: /system.slice/iobroker.service `-7175 /usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/controller.js pro 12 23:46:35 raspberrypi bash[7175]: Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/controller.js' pro 12 23:46:35 raspberrypi bash[7175]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) pro 12 23:46:35 raspberrypi bash[7175]: at Function.Module._load (node:internal/modules/cjs/loader:833:27) pro 12 23:46:35 raspberrypi bash[7175]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) pro 12 23:46:35 raspberrypi bash[7175]: at node:internal/main/run_main_module:22:47 { pro 12 23:46:35 raspberrypi bash[7175]: code: 'MODULE_NOT_FOUND', pro 12 23:46:35 raspberrypi bash[7175]: requireStack: [] pro 12 23:46:35 raspberrypi bash[7175]: } pro 12 23:46:35 raspberrypi systemd[1]: iobroker.service: Main process exited, code=exited, status=1/FAILURE pro 12 23:46:35 raspberrypi systemd[1]: iobroker.service: Failed with result 'exit-code'. pi@raspberrypi:/opt/iobroker $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl pi@raspberrypi:/opt/iobroker $ systemctl status iobroker.service sudo lsof /opt/iobroker/iobroker-data/objects.jsonl * iobroker.service - ioBroker Server Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2022-12-12 23:48:20 CET; 654ms ago Docs: http://iobroker.net Process: 7409 ExecStart=/usr/bin/bash -c ${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js (code=exited, status=1/FAILURE) Main PID: 7409 (code=exited, status=1/FAILURE) CPU: 657ms