NEWS
Blockly Schreibrechte Debian
-
Super!
Jetzt kann Blockly auch den Ordner erstellen.Ich danke euch!
-
Ich nochmal.
Ordner erstellen hat ja jetzt wunderbar geklappt.Allerdings fehlt mir beim "cp" Befehl noch etwas.
Über Blockly exec kann ich Dateien mit cp nach /home/ioBroker/ kopieren, aber nicht nach /opt/iobroker/iobroker-data/files/vis.0.
Vermutlich weil dieser Ordner root gehört!?
Wie kann ich das hinbekommen dass iobroker dort auch Schreibrechte bekommt? -
@aleks-83 sagte in Blockly Schreibrechte Debian:
/opt/iobroker/iobroker-data/files/vis.0.
Vermutlich weil dieser Ordner root gehört!?Unterhalb von /opt/iobroker gehört gar nichts dem root, das gehört alles iobroker:iobroker
iob fix
ausführen, wenn das bei dir anders sein sollte.
€dit: Und ich meine, der vis kann man nur via eingebautem Dateimanager etwas unterjubeln. Ist aber nur vom hörensagen, hab selber keine vis im Einsatz.
-
Habe den fix ausgeführt.
cp funktioniert jetzt ! Danke !Jetzt erhalte ich im log alle 30s diese Fehlermeldungen:
2024-01-08 15:10:55.558 - error: host.Debian Caught by controller[0]: /bin/sh: 1: npm: not found 2024-01-08 15:10:55.558 - error: host.Debian Caught by controller[1]: /opt/iobroker/node_modules/iobroker.info/main.js:89 2024-01-08 15:10:55.558 - error: host.Debian Caught by controller[1]: adapter.log.error("Could not check npm version: " + e); 2024-01-08 15:10:55.558 - error: host.Debian Caught by controller[1]: ^ 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'log') 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at getSystemVersions (/opt/iobroker/node_modules/iobroker.info/main.js:89:11) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Object. (/opt/iobroker/node_modules/iobroker.info/main.js:58:18) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Module._compile (node:internal/modules/cjs/loader:1356:14) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Module.load (node:internal/modules/cjs/loader:1197:32) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Module._load (node:internal/modules/cjs/loader:1013:12) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: at node:internal/main/run_main_module:28:49 2024-01-08 15:10:55.559 - error: host.Debian Caught by controller[1]: Node.js v18.19.0 2024-01-08 15:10:55.559 - error: host.Debian instance system.adapter.info.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
-
-
@thomas-braun
Ich hab einfach kein Glück :-X -
Bitte keine Bilder von Texten. Und was ist das bitte für ein Terminal? Das sieht 'kaputt' aus.
-
Wie bereits erwähnt, funktioniert das Copy & Paste noch nicht in meiner Debian VM obwohl ich die Guest Additions installiert habe. Daran arbeite ich als nächstes.
Die Konsole ist die direkte Eingabe in der Debian VM. Das ist headless und hat keine GUI.
-
Ich würde ja mit einem Terminal via ssh auf die Kiste gehen.
-
Würde ich auch gerne aber das funktioniert ebenfalls nicht.
Beim login über putty kommt "Access denied" -
@aleks-83 sagte in Blockly Schreibrechte Debian:
Beim login über putty kommt "Access denied"
Wie versuchst du das? Als root evtl.?
-
Nein mit meinem neuen User.
Aber jetzt geht ssh …Allerdings geht der fix für die npm nicht.
Last login: Mon Jan 8 21:50:54 2024 from 10.0.0.60 $ echo -e "Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 1001" | sudo tee /etc/apt/preferences.d/nodejs.pref [sudo] Passwort für alex: -e Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001 $ sudo apt update OK:1 http://security.debian.org/debian-security bookworm-security InRelease OK:2 http://deb.debian.org/debian bookworm InRelease Holen:3 http://deb.debian.org/debian bookworm-updates InRelease [52,1 kB] OK:4 https://deb.nodesource.com/node_18.x nodistro InRelease Es wurden 52,1 kB in 1 s geholt (42,1 kB/s). Paketlisten werden gelesen… Fertig E: Ungültiger Eintrag in Einstellungsdatei /etc/apt/preferences.d/nodejs.pref, keine »Package«-Kopfzeile(n) $
-
@aleks-83 sagte in Blockly Schreibrechte Debian:
sudo rm /etc/apt/preferences.d/nodejs.pref echo -e "Package: nodejs\nPin: origin deb.nodesource.com\nPin-Priority: 1001" | sudo tee /etc/apt/preferences.d/nodejs.pref sudo apt update sudo apt install nodejs=18.19.0-1nodesource1
-
Falls deine shell mit echo -e nix anfangen kann...
Trag mit einem Editor das in die nodejs.pref rein:Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001
-
Moin. Das Echo funktioniert, aber beim apt Update kommt die gleiche Fehlermeldung
-
Zeig mal den Inhalt der Datei 1:1.
-
-
Das
-e
ist bei dir zu viel. -
@thomas-braun Läuft! Danke