NEWS
[gelöst] iobroker lässt sich nicht richtig installieren
-
Hmm, Größe könnte ein Problem sein/werden.
Ubuntu: War mir bisher nicht bewusst, dass hier Debian eventuell vorzuziehen sei. Warum wäre das System besser?Ähm und iob diag gibt nichts aus:
Last login: Mon Jul 1 19:13:12 2024 from 10.56.78.99 pi@ubuntu:~$ iob diag [sudo] password for pi: pi@ubuntu:~$
Habe iobroker auf ein laufendes System "hinzuinstalliert".
-
@mipl sagte in iobroker lässt sich nicht richtig installieren:
Ähm und iob diag gibt nichts aus
mööööp.... dann mach mal
iob fix
scheinst ja nicht gerade aktuell zu sein dünkt es mir
-
@mipl sagte in iobroker lässt sich nicht richtig installieren:
iob diag gibt nichts aus:
iob stop iob fix iob start .....warten iob diag
-
da kommt:
pi@ubuntu:~$ iob fix library: loaded Library version=2024-05-24 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2024-01-04 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/5) ========================================================================== Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [128 kB] Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease Fetched 128 kB in 3s (42.9 kB/s) Reading package lists... Done ========================================================================== Checking ioBroker user and directory permissions (2/5) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Check and cleanup npm temporary directories (3/5) ========================================================================== Done. ========================================================================== Database maintenance (4/5) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! npm error code EACCES npm error syscall mkdir npm error path /home/iobroker npm error errno EACCES npm error FetchError: Invalid response body while trying to fetch https://registry.npmjs.org/@iobroker%2fjsonltool: EACCES: permission denied, mkdir '/home/iobroker' npm error at /usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/body.js:170:15 npm error at async Response.json (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/body.js:75:17) npm error at async RegistryFetcher.packument (/usr/lib/node_modules/npm/node_modules/pacote/lib/registry.js:98:25) npm error at async RegistryFetcher.manifest (/usr/lib/node_modules/npm/node_modules/pacote/lib/registry.js:129:23) npm error at async getManifest (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:27:22) npm error at async missingFromTree (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:61:22) npm error at async /usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:163:32 npm error at async Promise.all (index 0) npm error at async exec (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:161:3) npm error at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5) { npm error code: 'EACCES', npm error errno: 'EACCES', npm error syscall: 'mkdir', npm error path: '/home/iobroker', npm error type: 'system' npm error } npm error npm error The operation was rejected by your operating system. npm error It is likely you do not have the permissions to access this file as the current user npm error npm error If you believe this might be a permissions issue, please double-check the npm error permissions of the file and its containing directories, or try running npm error the command again as root/Administrator. npm error Log files were not written due to an error writing to the directory: /home/iobroker/.npm/_logs npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal ========================================================================== Checking autostart (5/5) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================
-
@mipl sagte in iobroker lässt sich nicht richtig installieren:
EACCES: permission denied,
ohh, oooooh!
@mipl sagte in iobroker lässt sich nicht richtig installieren:
Habe iobroker auf ein laufendes System "hinzuinstalliert".
wie genau hast du das gemacht?
klappt iob diag jetzt trotzdem?
-
-
@homoran
Installation via ssh mit dem Befehl:curl -sLf https://iobroker.net/install.sh | bash -
iob diag geht weiterhin nicht.
-
Dann ruf iob diag wie in meiner Signatur zu sehen auf.
Also per
curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
-
@mipl sagte in iobroker lässt sich nicht richtig installieren:
Installation via ssh mit dem Befehl:
als root??
-
Keine Ausgabe mit curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
-
Nein, nicht als root
-
curl -L -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
-
@thomas-braun
liefertpi@ubuntu:/$ curl -L -o diag.sh https://iobroker.net/diag.sh && bash diag.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 169 100 169 0 0 800 0 --:--:-- --:--:-- --:--:-- 800 Warning: Failed to create the file diag.sh: Permission denied 69 23302 69 16126 0 0 37502 0 --:--:-- --:--:-- --:--:-- 37502 curl: (23) Failed writing body (0 != 16126)
-
Bitte immer die vollständigen Ein- wie Ausgaben inkl. LoginPrompt posten.
-
@mipl sagte in iobroker lässt sich nicht richtig installieren:
nicht als root
wieso dann
@mipl sagte in iobroker lässt sich nicht richtig installieren:
System ist mit apt-get update und apt-upgrade aktualisiert.
ohne sudo?
-
@homoran
update und upgrade wurde mit sudo ausgeführt. -
@mipl Danke!
hmm, wo klemmt's denn dann mit den Rechten? -
Stell dich in das home-Verzeichnis vom pi. Der darf (zum Glück) nicht in / schreiben.
-
@thomas-braun
Du meintest so?pi@ubuntu:/$ cd /home/pi pi@ubuntu:~$ pwd /home/pi pi@ubuntu:~$ ls -l total 1872 -rw-rw-r-- 1 pi pi 1800 Mar 1 2023 Cron-Send-new-IP.sh -rw-rw-r-- 1 pi pi 70 Mar 1 2023 IP-per-Email.txt -rw-rw-r-- 1 pi pi 1908226 Sep 20 2023 get-pip.py
-
Natürlich... Was treibst du eigentlich im root? Da haste nix zu wollen.