NEWS
neu installierter ioBroker über Browser nicht erreichbar
-
@C3PO Siehste, jetzt funktioniert das yarn-Repo auch wieder.
iobroker version iobroker start whoami sudo -u iobroker whoami ls -la /etc/sudoers.d/muss ich wohl wieder als root machen
loxberry@loxberry:~ $ iobroker version 2.2.9 loxberry@loxberry:~ $ iobroker start loxberry@loxberry:~ $ whoami loxberry loxberry@loxberry:~ $ sudo -u iobroker whoami [sudo] password for loxberry: Sorry, user loxberry is not allowed to execute '/usr/bin/whoami' as iobroker on loxberry. -
muss ich wohl wieder als root machen
loxberry@loxberry:~ $ iobroker version 2.2.9 loxberry@loxberry:~ $ iobroker start loxberry@loxberry:~ $ whoami loxberry loxberry@loxberry:~ $ sudo -u iobroker whoami [sudo] password for loxberry: Sorry, user loxberry is not allowed to execute '/usr/bin/whoami' as iobroker on loxberry.@C3PO
Als rootapt install sudo -
muss ich wohl wieder als root machen
loxberry@loxberry:~ $ iobroker version 2.2.9 loxberry@loxberry:~ $ iobroker start loxberry@loxberry:~ $ whoami loxberry loxberry@loxberry:~ $ sudo -u iobroker whoami [sudo] password for loxberry: Sorry, user loxberry is not allowed to execute '/usr/bin/whoami' as iobroker on loxberry.root@loxberry:~# whoami root root@loxberry:~# sudo -u iobroker whoami iobroker root@loxberry:~# ls -la /etc/sudoers.d/ total 28 dr-xr-xr-x 2 root root 4096 May 15 23:17 . drwxr-xr-x 21 loxberry loxberry 4096 Sep 24 2019 .. -r--r----- 1 root root 1145 May 15 23:17 iobroker -rw-rw-r-- 1 root root 1684 Oct 25 2019 lbdefaults -rw-r--r-- 1 root root 586 May 15 15:54 mqttgateway -r--r----- 1 root root 958 Apr 1 2018 README -rw-r--r-- 1 root root 158 May 15 15:59 weather4lox -
@C3PO
Als rootapt install sudoapt install sudo Reading package lists... Done Building dependency tree Reading state information... Done sudo is already the newest version (1.8.27-1+deb10u2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@loxberry:~#hatte ich schon mal probiert, sudo geht trotzdem nicht
-
root@loxberry:~# whoami root root@loxberry:~# sudo -u iobroker whoami iobroker root@loxberry:~# ls -la /etc/sudoers.d/ total 28 dr-xr-xr-x 2 root root 4096 May 15 23:17 . drwxr-xr-x 21 loxberry loxberry 4096 Sep 24 2019 .. -r--r----- 1 root root 1145 May 15 23:17 iobroker -rw-rw-r-- 1 root root 1684 Oct 25 2019 lbdefaults -rw-r--r-- 1 root root 586 May 15 15:54 mqttgateway -r--r----- 1 root root 958 Apr 1 2018 README -rw-r--r-- 1 root root 158 May 15 15:59 weather4loxusermod -aG sudo loxberry -
usermod -aG sudo loxberryroot@loxberry:~# usermod -aG sudo loxberry root@loxberry:~# exit logout loxberry@loxberry:~ $ sudo nodejs -v [sudo] password for loxberry: Sorry, user loxberry is not allowed to execute '/usr/bin/nodejs -v' as root on loxberry. loxberry@loxberry:~ $ -
root@loxberry:~# usermod -aG sudo loxberry root@loxberry:~# exit logout loxberry@loxberry:~ $ sudo nodejs -v [sudo] password for loxberry: Sorry, user loxberry is not allowed to execute '/usr/bin/nodejs -v' as root on loxberry. loxberry@loxberry:~ $@C3PO
Als loxberrygroups -
@C3PO
Als loxberrygroupsloxberry@loxberry:~ $ groups loxberry tty dialout sudo audio www-data gpio -
loxberry@loxberry:~ $ groups loxberry tty dialout sudo audio www-data gpio@C3PO Dann klemmen die den user noch irgendwo anders ab.
Soll mir jetzt auch egal sein...iobroker status -
@C3PO Dann klemmen die den user noch irgendwo anders ab.
Soll mir jetzt auch egal sein...iobroker statusiobroker status Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! iobroker is running on this host. No iobroker host is running. Objects type: file States type: file -
iobroker status Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! iobroker is running on this host. No iobroker host is running. Objects type: file States type: file@C3PO
Keine Ahnung wie die 'Kollegen' von LoxBerry da im System rumfuhrwerken.
Sieht auf jedenfalls für mich äußerst schräg aus.In /opt/iobroker
npm install iobroker.js-controller -
@C3PO
Keine Ahnung wie die 'Kollegen' von LoxBerry da im System rumfuhrwerken.
Sieht auf jedenfalls für mich äußerst schräg aus.In /opt/iobroker
npm install iobroker.js-controllerroot@loxberry:/opt/iobroker# npm install iobroker.js-controller > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.4 > iobroker.js-controller@2.2.9 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! 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":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) + iobroker.js-controller@2.2.9 updated 1 package in 32.054s 3 packages are looking for funding run `npm fund` for details -
root@loxberry:/opt/iobroker# npm install iobroker.js-controller > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.14.4 > iobroker.js-controller@2.2.9 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! Socket.io Server detected. Please update to js-controller 2.0 or higher! 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":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) + iobroker.js-controller@2.2.9 updated 1 package in 32.054s 3 packages are looking for funding run `npm fund` for details -
root@loxberry:/# netstat -tulpen | grep -v 127.0.0.1 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 18602 1081/java tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN 0 14524 718/mosquitto tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 0 16342 1174/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 17422 736/sshd tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 0 14530 718/mosquitto tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 17692 835/smbd tcp 1 0 0.0.0.0:9001 0.0.0.0:* LISTEN 0 14527 718/mosquitto tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 17693 835/smbd tcp6 0 0 :::81 :::* LISTEN 0 14553 824/apache2 tcp6 0 0 :::6066 :::* LISTEN 0 14559 824/apache2 tcp6 0 0 :::8883 :::* LISTEN 0 14525 718/mosquitto tcp6 0 0 :::53 :::* LISTEN 0 16344 1174/dnsmasq tcp6 0 0 :::22 :::* LISTEN 0 17424 736/sshd tcp6 0 0 :::1883 :::* LISTEN 0 14531 718/mosquitto tcp6 0 0 :::445 :::* LISTEN 0 17690 835/smbd tcp6 0 0 :::139 :::* LISTEN 0 17691 835/smbd udp 0 0 0.0.0.0:50000 0.0.0.0:* 0 17971 1081/java udp 0 0 0.0.0.0:1900 0.0.0.0:* 0 17976 1081/java udp 0 0 0.0.0.0:53 0.0.0.0:* 0 16341 1174/dnsmasq udp 0 0 0.0.0.0:68 0.0.0.0:* 0 13093 526/dhclient udp 0 0 0.0.0.0:11884 0.0.0.0:* 1001 17871 1074/perl udp 0 0 192.168.1.255:137 0.0.0.0:* 0 15597 712/nmbd udp 0 0 192.168.1.57:137 0.0.0.0:* 0 15596 712/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 0 15586 712/nmbd udp 0 0 192.168.1.255:138 0.0.0.0:* 0 15599 712/nmbd udp 0 0 192.168.1.57:138 0.0.0.0:* 0 15598 712/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 0 15587 712/nmbd udp 0 0 0.0.0.0:5353 0.0.0.0:* 0 19641 1081/java udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 13472 167/avahi-daemon: r udp 0 0 0.0.0.0:56045 0.0.0.0:* 108 13474 167/avahi-daemon: r udp6 0 0 :::42310 :::* 108 13475 167/avahi-daemon: r udp6 0 0 :::53 :::* 0 16343 1174/dnsmasq udp6 0 0 :::5353 :::* 108 13473 167/avahi-daemon: rIch glaub ein zweiter raspberry für ioBroker wäre einfacher
-
root@loxberry:/# netstat -tulpen | grep -v 127.0.0.1 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 18602 1081/java tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN 0 14524 718/mosquitto tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 0 16342 1174/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 17422 736/sshd tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 0 14530 718/mosquitto tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 17692 835/smbd tcp 1 0 0.0.0.0:9001 0.0.0.0:* LISTEN 0 14527 718/mosquitto tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 17693 835/smbd tcp6 0 0 :::81 :::* LISTEN 0 14553 824/apache2 tcp6 0 0 :::6066 :::* LISTEN 0 14559 824/apache2 tcp6 0 0 :::8883 :::* LISTEN 0 14525 718/mosquitto tcp6 0 0 :::53 :::* LISTEN 0 16344 1174/dnsmasq tcp6 0 0 :::22 :::* LISTEN 0 17424 736/sshd tcp6 0 0 :::1883 :::* LISTEN 0 14531 718/mosquitto tcp6 0 0 :::445 :::* LISTEN 0 17690 835/smbd tcp6 0 0 :::139 :::* LISTEN 0 17691 835/smbd udp 0 0 0.0.0.0:50000 0.0.0.0:* 0 17971 1081/java udp 0 0 0.0.0.0:1900 0.0.0.0:* 0 17976 1081/java udp 0 0 0.0.0.0:53 0.0.0.0:* 0 16341 1174/dnsmasq udp 0 0 0.0.0.0:68 0.0.0.0:* 0 13093 526/dhclient udp 0 0 0.0.0.0:11884 0.0.0.0:* 1001 17871 1074/perl udp 0 0 192.168.1.255:137 0.0.0.0:* 0 15597 712/nmbd udp 0 0 192.168.1.57:137 0.0.0.0:* 0 15596 712/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 0 15586 712/nmbd udp 0 0 192.168.1.255:138 0.0.0.0:* 0 15599 712/nmbd udp 0 0 192.168.1.57:138 0.0.0.0:* 0 15598 712/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 0 15587 712/nmbd udp 0 0 0.0.0.0:5353 0.0.0.0:* 0 19641 1081/java udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 13472 167/avahi-daemon: r udp 0 0 0.0.0.0:56045 0.0.0.0:* 108 13474 167/avahi-daemon: r udp6 0 0 :::42310 :::* 108 13475 167/avahi-daemon: r udp6 0 0 :::53 :::* 0 16343 1174/dnsmasq udp6 0 0 :::5353 :::* 108 13473 167/avahi-daemon: rIch glaub ein zweiter raspberry für ioBroker wäre einfacher
@C3PO sagte in neu installierter ioBroker über Browser nicht erreichbar:
tcp 1 0 0.0.0.0:9001 0.0.0.0:* LISTEN 0 14527 718/mosquitto
Der Port 9001 ist bei dir schon von mosquitto blockiert. Da läuft beim iobroker das:
tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 16990 704/iobroker.js-con -
@C3PO sagte in neu installierter ioBroker über Browser nicht erreichbar:
tcp 1 0 0.0.0.0:9001 0.0.0.0:* LISTEN 0 14527 718/mosquitto
Der Port 9001 ist bei dir schon von mosquitto blockiert. Da läuft beim iobroker das:
tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 16990 704/iobroker.js-con -
@C3PO sagte in neu installierter ioBroker über Browser nicht erreichbar:
tcp 1 0 0.0.0.0:9001 0.0.0.0:* LISTEN 0 14527 718/mosquitto
Der Port 9001 ist bei dir schon von mosquitto blockiert. Da läuft beim iobroker das:
tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 16990 704/iobroker.js-conkann man das beim ioBroker über die console ändern?
-
kann man das beim ioBroker über die console ändern?
@C3PO Da laufen die db vom broker drauf. Ich vermute, da schauen ziemlich viele Adapter nach. Ob und wie man die Ports umbiegen kann weiß ich nicht. Kann vielleicht @apollon77 was zu sagen. Da sind meine Kenntnisse am Ende.
-
@C3PO Da laufen die db vom broker drauf. Ich vermute, da schauen ziemlich viele Adapter nach. Ob und wie man die Ports umbiegen kann weiß ich nicht. Kann vielleicht @apollon77 was zu sagen. Da sind meine Kenntnisse am Ende.
@Thomas-Braun
ok, dann nochmal vielen Dank für dein Mühen. -
@Thomas-Braun
ok, dann nochmal vielen Dank für dein Mühen.@C3PO
Du kannst den mosquitto auch mal stoppenservice mosquitto stopoder
systemctl stop mosquitto.serviceDann
iobroker restartMich würde aber doch noch interessieren, wo der sudo kastriert wurde:
ls -la /usr/bin/sudo
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