NEWS
Error 25
-
@thomas-braun sagte in Error 25:
cat /etc/passwd | sort
thommy@DietPi:/opt/iobroker$ cat /etc/passwd | sort _apt:x:100:65534::/nonexistent:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin _chrony:x:106:113:Chrony daemon,,,:/var/lib/chrony:/usr/sbin/nologin daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin dietpi:x:1000:1000::/home/dietpi:/bin/bash games:x:5:60:games:/usr/games:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin iobroker:x:1002:1002::/home/iobroker:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin messagebus:x:104:105::/nonexistent:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin root:x:0:0:root:/root:/usr/bin/bash _rpc:x:107:65534::/run/rpcbind:/usr/sbin/nologin statd:x:108:65534::/var/lib/nfs:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin systemd-network:x:102:103:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin systemd-resolve:x:103:104:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin systemd-timesync:x:101:101:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin thommy:x:1001:1001:,,,:/home/thommy:/usr/bin/bash uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
-
Dann mache ich den stop jetzt mit:
sudo systemctl stop iobroker
Dann werde ich den Fix ausführen
-
sudo -u iobroker whoami sudo -u iobroker ls -la /home/iobroker
-
thommy@DietPi:/opt/iobroker$ sudo systemctl stop iobroker thommy@DietPi:/opt/iobroker$ iobroker fix library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== [sudo] Passwort für thommy: OK:1 https://deb.debian.org/debian bullseye InRelease OK:2 https://deb.nodesource.com/node_14.x bullseye InRelease OK:3 https://deb.debian.org/debian bullseye-updates InRelease OK:4 https://deb.debian.org/debian-security bullseye-security InRelease OK:5 https://deb.debian.org/debian bullseye-backports InRelease OK:6 http://mirrors.xtom.de/armbian bullseye InRelease Paketlisten werden gelesen… Fertig Installed gcc-c++ ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== thommy@DietPi:/opt/iobroker$ sudo systemctl start iobroker Warning: The unit file, source configuration file or drop-ins of iobroker.service changed on disk. Run 'systemctl daemon-reload' to reload units. thommy@DietPi:/opt/iobroker$ iobroker add sonoff --host DietPi NPM version: 6.14.17 Installing iobroker.sonoff@2.5.1... (System call) host.DietPi Cannot install iobroker.sonoff@2.5.1: 243 thommy@DietPi:/opt/iobroker$
-
@thomas-braun sagte in Error 25:
sudo -u iobroker ls -la /home/iobroker
thommy@DietPi:/opt/iobroker$ sudo -u iobroker whoami iobroker thommy@DietPi:/opt/iobroker$ sudo -u iobroker ls -la /home/iobroker ls: Zugriff auf '/home/iobroker' nicht möglich: Datei oder Verzeichnis nicht gefunden thommy@DietPi:/opt/iobroker$
-
@thomas-brodmann sagte in Error 25:
iobroker add sonoff --host DietPi
Versuch mal
sudo -H -u iobroker iobroker add sonoff --host DietPi
-
@thomas-brodmann so sieht ein gelaufener fix aus
-
sudo ls -la /home/
-
@thomas-brodmann sagte in Error 25:
The unit file, source configuration file or drop-ins of iobroker.service changed on disk. Run 'systemctl daemon-reload' to reload units
was ist denn da bei dir los?
-
thommy@DietPi:/opt/iobroker$ sudo -H -u iobroker iobroker add sonoff --host DietPi NPM version: 6.14.17 Installing iobroker.sonoff@2.5.1... (System call) host.DietPi Cannot install iobroker.sonoff@2.5.1: 243 thommy@DietPi:/opt/iobroker$
-
thommy@DietPi:/opt/iobroker$ sudo ls -la /home/ insgesamt 16 drwxr-xr-x 4 root root 4096 15. Jun 13:36 . drwxr-xr-x 18 root root 4096 29. Mai 14:11 .. drwxr-xr-x 2 dietpi dietpi 4096 19. Okt 2021 dietpi drwxr-xr-x 9 thommy thommy 4096 15. Jun 19:58 thommy thommy@DietPi:/opt/iobroker$
-
Siehste...
Kein /home für iobrokersudo mkdir /home/iobroker sudo chown iobroker:iobroker /home/iobroker sudo chmod 755 /home/iobroker
-
@thomas-braun bist du sicher dass da nicht noch mehr krumm ist?
-
-
@homoran sagte in Error 25:
@thomas-braun bist du sicher dass da nicht noch mehr krumm ist?ich würde mal in dem Verzeichniss mal schauen was da drin ist ..!?
sudo ls -la /home/thommy/
-
@thomas-braun wenn die iobroker Befehle nich klappen sondern nur systemctl, wird das jetzt besser?
-
sudoers scheint auch 'nen Knick zu haben. Aber ich weiß nicht ob das auf dem DiätPi nicht irgendwie auch auf Diät sitzt und nur Knäckebrot bekommt.
-
Das Anlegen des Ordners hat geholfen.
thommy@DietPi:/opt/iobroker$ sudo mkdir /home/iobroker thommy@DietPi:/opt/iobroker$ sudo chown iobroker:iobroker /home/iobroker thommy@DietPi:/opt/iobroker$ thommy@DietPi:/opt/iobroker$ thommy@DietPi:/opt/iobroker$ iobroker add sonoff --host DietPi --debug NPM version: 6.14.17 Installing iobroker.sonoff@2.5.1... (System call) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"}) + iobroker.sonoff@2.5.1 added 15 packages from 19 contributors in 37.07s 38 packages are looking for funding run `npm fund` for details host.DietPi install adapter sonoff upload [3] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/index.html index.html text/html upload [2] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/index_m.html index_m.html text/html upload [1] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/sonoff.png sonoff.png image/png upload [0] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/words.js words.js application/javascript host.DietPi object system.adapter.sonoff created/updated host.DietPi create instance sonoff host.DietPi object system.adapter.sonoff.0.alive created host.DietPi object system.adapter.sonoff.0.connected created host.DietPi object system.adapter.sonoff.0.compactMode created host.DietPi object system.adapter.sonoff.0.cpu created host.DietPi object system.adapter.sonoff.0.cputime created host.DietPi object system.adapter.sonoff.0.memHeapUsed created host.DietPi object system.adapter.sonoff.0.memHeapTotal created host.DietPi object system.adapter.sonoff.0.memRss created host.DietPi object system.adapter.sonoff.0.uptime created host.DietPi object system.adapter.sonoff.0.inputCount created host.DietPi object system.adapter.sonoff.0.outputCount created host.DietPi object system.adapter.sonoff.0.eventLoopLag created host.DietPi object system.adapter.sonoff.0.sigKill created host.DietPi object system.adapter.sonoff.0.logLevel created host.DietPi object sonoff.0.info created host.DietPi object sonoff.0.info.connection created host.DietPi object system.adapter.sonoff.0 created thommy@DietPi:/opt/iobroker$
-
@thomas-braun sagte in Error 25:
auch auf Diät sitzt und nur Knäckebrot bekommt.
Dietpi ist abgespeckt , habe es als VM ( Grafana / Influx )
-
ls -la /home/