NEWS
UNSOLVED Error Installation KNX Adapter Ver. 10.0.39
-
sudo reboot
Und ich würde mir auch einen vernünftigen USER anlegen. Da mit dem iobroker rumzumachen ist nicht gerade günstig.
-
Auch ein reboot bringt keinen Erfolg. Sollte ich iobroker komplett neu aufsetzten?
-
-
@Thomas-Braun said in Error Installation KNX Adapter Ver. 10.0.39:
iobroker add knx --prefix "/opt/iobroker"
Gleiches Fehlerbild.
-
@tobiii1810 Bitte Ausgaben posten.
-
iobroker@IoBrokerThinClient:/$ iobroker add knx --prefix "/opt/iobroker" host.IoBrokerThinClient install adapter knx npm install --loglevel error --production (System call) in "/node_modules/iobroker.knx" npm ERR! code EACCES npm ERR! syscall access npm ERR! path /node_modules/iobroker.knx npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/node_modules/iobroker.knx' npm ERR! [Error: EACCES: permission denied, access '/node_modules/iobroker.knx'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/node_modules/iobroker.knx' npm ERR! } 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-11-02T20_09_43_507Z-debug.log Cannot install iobroker.knx: 243
-
ich vermute mal der Ordner ist/war schon da ... aber falsche Rechte gesetzt .
/node_modules/iobroker.knx
und der Fix greift nicht ...
-
@Glasfaser Nee, da greift der Prefix /opt/iobroker nicht und die Installation soll in / erfolgen. Und das darf der iobroker natürlich nicht. Ich weiß aber nicht wo das einzustellen ist.
Das Environment für einen Standarduser weicht ja auch vom Systemuser iobroker ab:
pi:x:1000:1000:,,,:/home/pi:/bin/bash iobroker:x:1001:1001::/home/iobroker:/usr/sbin/nologin
Ich bin aber nicht sicher, ob das damit zu tun haben könnte.
In einem 'sauberen' System läuft die Installation ja auch in das richtige Directory rein:
iobroker add knx NPM version: 6.14.8 npm install iobroker.knx@1.0.42 --loglevel error --prefix "/opt/iobroker" (System call)
-
Er hat :
iobroker@IoBrokerThinClient:/$
müsste das nicht so sein !?
iobroker@IoBrokerThinClient:~#
am Ende
~#
-
@Glasfaser Nee, das ist schon richtig.
# für root $ für U$ER
Trotzdem ist iobroker kein 'normaler' User.
-
Oh ...
stimmt ich muß immer umdenken , da es bei der Synology (Docker) anders ist ( root) -
Bei der Debian Installation habe ich einen User mit dem Namen "iobroker" angelegt. Vielleicht verwirrt der Name nur ein wenig...
-
@tobiii1810 Ääääääh...
GAAAAAAAAAANZ doofe Idee!
Der iobroker ist für andere Dinge vorgesehen. -
Kann ich den Usernamen nachträglich ändern?
-
cat /etc/passwd | grep iobroker
-
iobroker@IoBrokerThinClient:/$ cat /etc/passwd | grep iobroker iobroker:x:1000:1000:Iobroker,,,:/home/iobroker:/bin/bash
-
@tobiii1810
Ja, das ist für die UID 1000 das richtige Setup, aber der falsche Name...Der User iobroker läuft eigentlich so:
iobroker:x:1001:1001::/home/iobroker:/usr/sbin/nologin
-
-
-
Kann den Usernamen wahrscheinlich nicht ändern da ich mit ihm angemeldet bin oder?
iobroker@IoBrokerThinClient:/$ sudo usermod -l tobi iobroker [sudo] Passwort für iobroker: usermod: user iobroker is currently used by process 776