- Home
- Deutsch
- Entwicklung
- VisualStudio Code und Devcontainer
VisualStudio Code und Devcontainer
-
@OliverIO sagte in VisualStudio Code und Devcontainer:
Wenn man in beiden Logs den Befehl docker exec anschaut, dann bemerkt man, das zur Ausführung ein temporärer Container gewählt wird
Das wäre dann aber ein Problem in der VSCode Implementation
Das postCreateCommand ist nämlich bewusst so gewählt, dass man nicht beim lokalen Testen das ioBroker-Sentry mit unnötigen Fehlermeldungen zubombt. -
@UncleSam
ok, ne, hostname gibt den korrekten hostname aus.
Problem muss beim umbenennen des hostnamens liegen.
Was mich wundert ist halt die Rückkopplung von postCreateCommand dazu.
An der Stelle ist der Container doch schon fertig gebaut und der hostname umbenannt.
Aber mit postCreateCommand klappts nicht
ohne funktioniert es einwandfrei. -
@AlCalzone said in VisualStudio Code und Devcontainer:
Das wäre dann aber ein Problem in der VSCode Implementation
Das postCreateCommand ist nämlich bewusst so gewählt, dass man nicht beim lokalen Testen das ioBroker-Sentry mit unnötigen Fehlermeldungen zubombt.wisst ihr, wie man an dieser Stelle der Ausführung mehr debug infos herausholen kann?
Leider steht im iobroker log nix dazu. vscode erhält halt irgendeinen anderen exit code und sagt dann failed aber ohne mehr Informationen auszugeben. -
@OliverIO Dummerweise sagt
iob plugin disable sentry
wohl nicht mehr, oder? Ich nehme an, der schlägt fehl - eventuell weil etwas noch nicht bereit ist? Keine Ahnung... -
@UncleSam @AlCalzone
Ich habe mal dem buanet einen Issue geschrieben, das er hier mal reinschauen soll. -
@OliverIO sagte in VisualStudio Code und Devcontainer:
@UncleSam @AlCalzone
Ich habe mal dem buanet einen Issue geschrieben, das er hier mal reinschauen soll.Da bin ich. Hab jetzt allerdings nicht alles hier gelesen, und da ich auch keine Ahnung von Adapterentwicklung habe wird es sicher nicht einfach für mich mich hier rein zu denken....
Aber was Docker angeht bin ich eigentlich soweit auf dem Stand. Vielleicht kannst du kurz zusammen fassen was das Problem ist und wo ich mich rein lesen kann...MfG,
André -
@andre
vielen Dank für deine zeit und dass du so kurzfristig hier mit reinschaust.Das Problem ist noch bevor es mit der Adapterentwicklung losgeht.
Über das folgende docker-compose file wird der docker container vorbereitet, so das dieser im Rahmen der Entwicklung eingesetzt werden kann aufgebaut.
version: '3' services: iobroker: build: ./iobroker container_name: iobroker-luxtronik2 hostname: iobroker-luxtronik2 # This port is only internal, so we can work on this while another instance of ioBroker is running on the host expose: - 8081 volumes: - ..:/workspace:cached - iobrokerdata-luxtronik2:/opt/iobroker environment: - LANG=en_US.UTF-8 - LANGUAGE=en_US:en - LC_ALL=en_US.UTF-8 - TZ=Europe/Berlin - SETGID=1000 # command: 'touch /workspace/log.log' # Reverse proxy to load up-to-date admin sources from the repo nginx: image: nginx:latest depends_on: - iobroker links: - iobroker container_name: nginx-luxtronik2 volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ..:/workspace:cached ports: # Make the ioBroker admin available under http://localhost:8082 - 8082:80 volumes: iobrokerdata-luxtronik2:
Das workspaceverzeichnis lebt einmal auf dem client-computer und in einer volume und wird von vscode auch immer synchroisiert. für vscode gibt es eine separate Konfigurationsdatei in der @AlCalzone noch ein paar Befehle eingefügt hat, die eigentlich erst ausgeführt werden, wenn alle container gebaut wurden.
Bei manchen (bspw bei mir) gibt es damit aber Probleme.
Zustand nach der Erstellung des containers ist, iobroker läuft, aber der adminadapter wird nicht gestartet.
Meine Recherchen haben ergeben, das die Umbenennung des hostnamens, welche in einem Skript in deinem buanet container erledigt wird, wohl nicht sauber durchläuft. Dadurch erkennt iobroker keine gültigen instanzen für diesen host und startet diese dann auch nicht.
leider habe ich keine ahnung, wie ich mehr debug-informationen bei der container Erstellung erhalte um rauszufinden, wo das Problem genau sein könnte.Wenn diese Extrabefehle aus der Config von vscode nicht ausgeführt werden, dann startet der Container einwandfrei.
Hier mal die eine Konfigurationszeile aus der vscode config (devcontainer genannt), mit den Befehlen
// When creating the container, delete unnecessary adapters, disable error reporting, set the license as confirmed, and install/update this adapter "postCreateCommand": "iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\""
Noch eine Zusatzinformation:
Wendet man diese Befehle direkt in einer shell im container an, dann laufen die ordnungsgemäß durch. im speziellen erzeugt "iob plugin disable sentry" aber in dem Kontext in dem dieser von vscode nach der container erstellung ausgeführt wird aber einen nicht näher spezifizierten Fehler (vs code bzw docker exec meldet einfach nur failed)Auch wenn es evtl schon ein bisschen viel Information ist hier noch das vscode logfile für die container Erstellung, da stehen alle abgesetzten Befehle drin
[5 ms] Remote-Containers 0.148.1 in VS Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f). [16 ms] Start: Resolving remote [17 ms] Setting up container for folder or workspace: c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master [30 ms] Start: Check Docker is running [31 ms] Start: Run: docker info [470 ms] Start: Run: docker-compose version --short [1085 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokerluxtronik2-master_devcontainer --filter label=com.docker.compose.service=iobroker [1324 ms] Start: Run: docker-compose -f c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master\.devcontainer\docker-compose.yml config --services [2131 ms] iobroker nginx [2131 ms] [2132 ms] Start: Run: docker events --format {{json .}} --filter status=start [2137 ms] Start: Run: docker-compose --project-name iobrokerluxtronik2-master_devcontainer -f c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master\.devcontainer\docker-compose.yml up -d --build Creating volume "iobrokerluxtronik2-master_devcontainer_iobrokerdata-luxtronik2" with default driver Building iobroker Step 1/2 : FROM buanet/iobroker:beta ---> 25daf23d7aeb Step 2/2 : RUN ln -s /opt/iobroker/node_modules/ /root/.node_modules ---> Running in 6e5b34baa8f5 Removing intermediate container 6e5b34baa8f5 ---> 47cadd0b3121 Successfully built 47cadd0b3121 Successfully tagged iobrokerluxtronik2-master_devcontainer_iobroker:latest Creating iobroker-luxtronik2 ... done Recreating nginx-luxtronik2 ... done [6231 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokerluxtronik2-master_devcontainer --filter label=com.docker.compose.service=iobroker [6471 ms] Start: Run: docker inspect --type container 3fcb04b67e4f [6708 ms] Start: Inspecting container [6708 ms] Start: Run: docker inspect --type container 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe [6944 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=81bdd907-770e-4120-ba90-de195e8f4d561605911346794 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe /bin/sh [6950 ms] Start: Run in container: uname -m [7208 ms] x86_64 [7208 ms] [7208 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [7210 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [7210 ms] [7211 ms] Start: Run in container: cat /etc/passwd [7213 ms] Start: Updating configuration state [7219 ms] Start: Setup shutdown monitor [7221 ms] Forking shutdown monitor: c:\Users\msowa\.vscode\extensions\ms-vscode-remote.remote-containers-0.148.1\dist\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-e896c80cc87103eaaa730cd2a1be68bc99559008-sock dockerCompose Info c:\Users\msowa\AppData\Roaming\Code\logs\20201120T231348\exthost1\ms-vscode-remote.remote-containers 1605911347377 [7228 ms] Start: Run in container: test -d /root/.vscode-server [7230 ms] [7230 ms] [7230 ms] Exit code 1 [7231 ms] Start: Run in container: test -d /root/.vscode-remote [7234 ms] [7234 ms] [7234 ms] Exit code 1 [7235 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [7237 ms] [7238 ms] [7238 ms] Start: Run in container: mkdir -p '/root/.vscode-server/data/Machine' && cat >'/root/.vscode-server/data/Machine/settings.json' <<'settingsJSON' [7241 ms] [7241 ms] [7242 ms] Start: Run in container: test -d /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f [7243 ms] [7243 ms] [7244 ms] Exit code 1 [7244 ms] Installing VS Code Server for commit e5a624b788d92b8d34d1392e4c4d9789406efe8f [7244 ms] Start: Run in container: mkdir -p /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1605911354621 [7246 ms] [7247 ms] [7263 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=3687 2>/dev/null; dd iflag=fullblock bs=6431 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1605911354621 [8026 ms] [8026 ms] [8026 ms] Start: Run in container: mv -n /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1605911354621 /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f [8028 ms] [8028 ms] [8029 ms] Start: Launching Remote-Containers helper. [8029 ms] Start: Run: gpgconf --list-dir agent-extra-socket [8034 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-d10f80bad809f88c6296016f682fa22851b9c857.js' >/tmp/vscode-remote-containers-d10f80bad809f88c6296016f682fa22851b9c857.js [8036 ms] [8036 ms] [8036 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [8038 ms] [8038 ms] [8038 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-d10f80bad809f88c6296016f682fa22851b9c857.js' >/tmp/vscode-remote-containers-server-d10f80bad809f88c6296016f682fa22851b9c857.js [8041 ms] [8041 ms] [8041 ms] Start: Run in container: # Copy C:\Users\msowa\.ssh\known_hosts to /root/.ssh/known_hosts [8041 ms] Start: Run: docker exec -i -u root -e REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-d10f80bad809f88c6296016f682fa22851b9c857.sock"] -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-d10f80bad809f88c6296016f682fa22851b9c857.sock 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-server-d10f80bad809f88c6296016f682fa22851b9c857.js [8049 ms] [8049 ms] [8049 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-d10f80bad809f88c6296016f682fa22851b9c857.js $*; }; f' || true [8052 ms] [8052 ms] [8052 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [8055 ms] [8055 ms] [8057 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true [8059 ms] [8059 ms] [8066 ms] Start: Run in container: # Copy extensions to remote [8095 ms] [8095 ms] [8095 ms] Start: Run in container: cd /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f; export VSCODE_AGENT_FOLDER=/root/.vscode-server; /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --extensions-download-dir /root/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension esbenp.prettier-vscode --force [10168 ms] Installing extensions... Installing extension 'esbenp.prettier-vscode' v5.8.0... Installing extension 'dbaeumer.vscode-eslint' v2.1.13... Extension 'dbaeumer.vscode-eslint' v2.1.13 was successfully installed. Extension 'esbenp.prettier-vscode' v5.8.0 was successfully installed. [10168 ms] [10168 ms] Start: Run in container: ls /root/.vscode-server/extensionsCache || true [10170 ms] dbaeumer.vscode-eslint-2.1.13 esbenp.prettier-vscode-5.7.2 esbenp.prettier-vscode-5.8.0 [10170 ms] [10171 ms] Start: Run: docker exec -i -u root -w /root/.vscode-server 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe tar c extensionsCache/esbenp.prettier-vscode-5.8.0 [10496 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [10499 ms] [10499 ms] [10499 ms] Start: Run in container: test -f /root/.vscode-server/.postCreateCommandMarker [10500 ms] [10500 ms] [10500 ms] Exit code 1 [10501 ms] Start: Run: docker exec -i -u root -e SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-d10f80bad809f88c6296016f682fa22851b9c857.sock -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-d10f80bad809f88c6296016f682fa22851b9c857.sock -e REMOTE_CONTAINERS=true -w /workspace 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe /bin/sh -c iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url "$(pwd)/$NPM_PACK" --debug && rm "$NPM_PACK" [13055 ms] Delete adapter "discovery" [13059 ms] npm uninstall iobroker.discovery --error --prefix "/opt/iobroker" (System call) [16385 ms] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (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":"x64"}) [16392 ms] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [20943 ms] postCreateCommand "iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\"" failed. [20943 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-d10f80bad809f88c6296016f682fa22851b9c857.js $*; }; f' || true [20947 ms] [20947 ms] [20948 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null [20969 ms] Start: Run in container: /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --disable-user-env-probe --use-host-proxy --port 0 --extensions-download-dir /root/.vscode-server/extensionsCache [21137 ms] * * Visual Studio Code Server * * Reminder: You may only use this software with Visual Studio family products, * as described in the license https://aka.ms/vscode-remote/license * [21150 ms] IP Address: 172.22.0.2 [21152 ms] Extension host agent listening on 44767 [21152 ms] Start: Run in container: echo 44767 >/root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/.devport [21152 ms] [23:29:28] Extension host agent started. [21154 ms] [21154 ms] [21155 ms] Forwarding local port 44767 to container port 44767 [21179 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=81bdd907-770e-4120-ba90-de195e8f4d561605911346794 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node -e [21180 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=81bdd907-770e-4120-ba90-de195e8f4d561605911346794 3fcb04b67e4fad8164fabd738385cf84489eab8e409dd34b1cf801e1a50c8ebe /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node -e [21560 ms] [23:29:28] [::ffff:127.0.0.1][e16620fd][ExtensionHostConnection] New connection established. [21565 ms] [23:29:28] [::ffff:127.0.0.1][e16620fd][ExtensionHostConnection] <375> Launched Extension Host Process. [21598 ms] [23:29:28] [::ffff:127.0.0.1][0be2ed74][ManagementConnection] New connection established. [21618 ms] [23:29:28] Listing 0 persistent terminals, 0 total terminals``` [/s] und hier noch die docker logs für die Erstellung, am Ende kann man sehen, das die Umbenennung des hosts nicht funktioniert hat. [s=]
--------------- 2020-11-20 23:29:13 ---------------
----- Welcome to your ioBroker-container! -----
----- Startupscript is now running. -----
----- Please be patient! -----
----- Debugging information -----
----- System -----
----- arch: x86_64 -----
----- Versions -----
----- image: v5.1.0 -----
----- node: v12.19.0 -----
----- npm: 6.14.8 -----
----- ENV -----
----- SETGID: 1000 -----
----- SETUID: 1000 -----
----- Step 1 of 5: Preparing container -----
Registering maintenance script as command.
Done.
----- Step 2 of 5: Detecting ioBroker installation -----
Existing installation of ioBroker detected in /opt/iobroker.
----- Step 3 of 5: Checking ioBroker installation -----
(Re)Setting folder permissions (This might take a while! Please be patient!)...
Done.
Fixing "sudo-bug" by replacing sudo in iobroker with gosu...
Done.
Hostname in ioBroker does not match the hostname of this container.
Updating hostname to iobroker-luxtronik2...
The host for instance "system.adapter.admin.0" was changed from "dc102d03fe1b" to "iobroker-luxtronik2".
The host for instance "system.adapter.discovery.0" was changed from "dc102d03fe1b" to "iobroker-luxtronik2".
The host for instance "system.adapter.info.0" was changed from "dc102d03fe1b" to "iobroker-luxtronik2".
Done.
----- Step 4 of 5: Applying special settings -----
Some adapters have special requirements/ settings which can be activated by the use of environment variables.
For more information take a look at readme.md on Github!
----- Step 5 of 5: ioBroker startup -----
Starting ioBroker...
host.iobroker-luxtronik2 check instance "system.adapter.admin.0" for host "dc102d03fe1b"
host.iobroker-luxtronik2 check instance "system.adapter.discovery.0" for host "dc102d03fe1b"
host.iobroker-luxtronik2 check instance "system.adapter.info.0" for host "dc102d03fe1b"
[/s]
-
@OliverIO Ok, soweit habe ich das glaub ich verstanden.
Fragen:
- Wer führt die Befehle aus der vsconfig aus, bzw. wie werden diese getriggert?
- Wie sieht das Logfile des ioBroker Containers aus? Für jeden Schritt den das Startup Script macht gibt es dort ja eine entsprechende Ausgabe
Wenn es es sich beim postCreateCommand um eine Vorbereitung des iob Containers handelt, hast du mal versucht die Kommandos in ein user defined startup script zu packen und die "Vorbereitung" vom startup script des containers erledigen zu lassen?
MfG,
André -
@andre sagte in VisualStudio Code und Devcontainer:
postCreateCommand
Führt VSCode bzw. die Container-Erweiterung einmalig beim Erstellen (bzw. Rebuild) des Containers aus. Die von dir genannten startup scripts sollten das aber nahtlos ersetzen können.
-
@AlCalzone @andre
Nach ein bisschen aufteilen der Befehle scheint der iobroker erst einmal zu laufen.
Allerdings sind Änderungen an der Datei index_m.html nicht in iobroker sichtbar. Auch nicht nach mehrmaligem upload über das iobroker ui
Meine Dateien sehen erst einmal so aus:docker-compose.yml
version: '3' services: iobroker: build: ./iobroker container_name: iobroker-luxtronik2 hostname: iobroker-luxtronik2 # This port is only internal, so we can work on this while another instance of ioBroker is running on the host expose: - 8081 volumes: - ..:/workspace:cached - iobrokerdata-luxtronik2:/opt/iobroker - ./userscript:/opt/userscripts environment: - LANG=en_US.UTF-8 - LANGUAGE=en_US:en - LC_ALL=en_US.UTF-8 - TZ=Europe/Berlin - SETGID=1000 # command: 'touch /workspace/log.log' # Reverse proxy to load up-to-date admin sources from the repo nginx: image: nginx:latest depends_on: - iobroker links: - iobroker container_name: nginx-luxtronik2 volumes: - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ..:/workspace:cached ports: # Make the ioBroker admin available under http://localhost:8082 - 8082:80 volumes: iobrokerdata-luxtronik2:
devcontainer.json
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.101.1/containers/docker-existing-docker-compose // If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. { "name": "ioBroker Docker Compose", // Update the 'dockerComposeFile' list if you have more compose files or use different names. // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. "dockerComposeFile": ["docker-compose.yml"], // The 'service' property is the name of the service for the container that VS Code should // use. Update this value and .devcontainer/docker-compose.yml to the real service name. "service": "iobroker", // The optional 'workspaceFolder' property is the path VS Code should open by default when // connected. This is typically a file mount in .devcontainer/docker-compose.yml "workspaceFolder": "/workspace", // Set *default* container specific settings.json values on container create. "settings": {}, // Add the IDs of extensions you want installed when the container is created. "extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"], // Uncomment the next line if you want start specific services in your Docker Compose config. // "runServices": [], // Uncomment the next line if you want to keep your containers running after VS Code shuts down. // "shutdownAction": "none", // When creating the container, delete unnecessary adapters, disable error reporting, set the license as confirmed, and install/update this adapter //"postCreateCommand": "hostname && cp /opt/iobroker/iobroker-data/*.json /workspace/ && iob del discovery && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\"" //"postCreateCommand": "iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\"" "postCreateCommand": "NPM_PACK=$(npm pack) && iob url \"$(pwd)/$NPM_PACK\" --debug && rm \"$NPM_PACK\"" // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. //"remoteUser": "iobroker" }
userscript_firststart.sh
#!/bin/bash # This is an example script file. # To run the Script on the first start of a new container you have to rename it to userscript_firststart.sh. # You can add your advanced script code here! echo ' ' echo "I'm your startscript userscript_firststart.sh. I will run only on the FIRST startup of the container." echo ' ' echo "iob del discovery" iob del discovery echo "iob plugin disable sentry" iob plugin disable sentry echo "iob object set system.config common.licenseConfirmed=true" iob object set system.config common.licenseConfirmed=true #echo "NPM_PACK=$(npm pack)" #NPM_PACK=$(npm pack) #echo "iob url \"$(pwd)/$NPM_PACK\" --debug " #iob url "$(pwd)/$NPM_PACK" --debug #echo "rm \"$NPM_PACK\"" #rm "$NPM_PACK" exit 0
vscode log
[2020-11-23T10:15:14.417Z] [PID 13024] [5 ms] Remote-Containers 0.148.1 in VS Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f). [2020-11-23T10:15:14.427Z] [PID 13024] [15 ms] Start: Resolving remote [2020-11-23T10:15:14.428Z] [PID 13024] [16 ms] Setting up container for folder or workspace: c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master [2020-11-23T10:15:14.461Z] [PID 13024] [49 ms] Start: Check Docker is running [2020-11-23T10:15:14.461Z] [PID 13024] [49 ms] Start: Run: docker info [2020-11-23T10:15:14.908Z] [PID 13024] [496 ms] Start: Run: docker-compose version --short [2020-11-23T10:15:15.483Z] [PID 13024] [1071 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokerluxtronik2-master_devcontainer --filter label=com.docker.compose.service=iobroker [2020-11-23T10:15:15.728Z] [PID 13024] [1316 ms] Start: Run: docker-compose -f c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master\.devcontainer\docker-compose.yml config --services [2020-11-23T10:15:16.496Z] [PID 13024] [2084 ms] iobroker nginx [2020-11-23T10:15:16.497Z] [PID 13024] [2085 ms] [2020-11-23T10:15:16.497Z] [PID 13024] [2085 ms] Start: Run: docker events --format {{json .}} --filter status=start [2020-11-23T10:15:16.503Z] [PID 13024] [2091 ms] Start: Run: docker-compose --project-name iobrokerluxtronik2-master_devcontainer -f c:\Users\msowa\Documents\Visual Code\ioBroker.luxtronik2-master\.devcontainer\docker-compose.yml up -d --build [2020-11-23T10:15:16.608Z] [PID 13024] [2020-11-23T10:15:17.343Z] [PID 13024] Creating volume "iobrokerluxtronik2-master_devcontainer_iobrokerdata-luxtronik2" with default driver [2020-11-23T10:15:17.375Z] [PID 13024] Building iobroker [2020-11-23T10:15:17.471Z] [PID 13024] Step 1/2 : FROM buanet/iobroker:beta ---> 25daf23d7aeb Step 2/2 : RUN ln -s /opt/iobroker/node_modules/ /root/.node_modules [2020-11-23T10:15:17.503Z] [PID 13024] ---> Running in 6870bedb4694 [2020-11-23T10:15:18.120Z] [PID 13024] Removing intermediate container 6870bedb4694 ---> ce11fd2187b0 Successfully built ce11fd2187b0 [2020-11-23T10:15:18.152Z] [PID 13024] Successfully tagged iobrokerluxtronik2-master_devcontainer_iobroker:latest [2020-11-23T10:15:18.184Z] [PID 13024] Creating iobroker-luxtronik2 ... [2020-11-23T10:15:19.632Z] [PID 13024] Creating iobroker-luxtronik2 ... done [2020-11-23T10:15:19.662Z] [PID 13024] Recreating nginx-luxtronik2 ... [2020-11-23T10:15:20.551Z] [PID 13024] Recreating nginx-luxtronik2 ... done [2020-11-23T10:15:20.646Z] [PID 13024] [6234 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokerluxtronik2-master_devcontainer --filter label=com.docker.compose.service=iobroker [2020-11-23T10:15:20.894Z] [PID 13024] [6482 ms] Start: Run: docker inspect --type container 3de76046067a [2020-11-23T10:15:21.144Z] [PID 13024] [6732 ms] Start: Inspecting container [2020-11-23T10:15:21.144Z] [PID 13024] [6732 ms] Start: Run: docker inspect --type container 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb [2020-11-23T10:15:21.406Z] [PID 13024] [6994 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=39169477-d6c1-45d3-827b-7259f89d63501606126513841 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb /bin/sh [2020-11-23T10:15:21.411Z] [PID 13024] [6999 ms] Start: Run in container: uname -m [2020-11-23T10:15:21.688Z] [PID 13024] [7276 ms] x86_64 [2020-11-23T10:15:21.688Z] [PID 13024] [7276 ms] [2020-11-23T10:15:21.688Z] [PID 13024] [7276 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [2020-11-23T10:15:21.693Z] [PID 13024] [7281 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [2020-11-23T10:15:21.693Z] [PID 13024] [7281 ms] [2020-11-23T10:15:21.693Z] [PID 13024] [7281 ms] Start: Run in container: cat /etc/passwd [2020-11-23T10:15:21.696Z] [PID 13024] [7284 ms] Start: Updating configuration state [2020-11-23T10:15:21.703Z] [PID 13024] [7291 ms] Start: Setup shutdown monitor [2020-11-23T10:15:21.706Z] [PID 13024] [7294 ms] Forking shutdown monitor: c:\Users\msowa\.vscode\extensions\ms-vscode-remote.remote-containers-0.148.1\dist\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-540727a5d7aabf36e6d7b1775afc78a5f128f567-sock dockerCompose Info c:\Users\msowa\AppData\Roaming\Code\logs\20201123T104017\exthost1\ms-vscode-remote.remote-containers 1606126514412 [2020-11-23T10:15:21.717Z] [PID 13024] [7305 ms] Start: Run in container: test -d /root/.vscode-server [2020-11-23T10:15:21.721Z] [PID 13024] [7309 ms] [2020-11-23T10:15:21.721Z] [PID 13024] [7309 ms] [2020-11-23T10:15:21.721Z] [PID 13024] [7309 ms] Exit code 1 [2020-11-23T10:15:21.721Z] [PID 13024] [7309 ms] Start: Run in container: test -d /root/.vscode-remote [2020-11-23T10:15:21.725Z] [PID 13024] [7313 ms] [2020-11-23T10:15:21.725Z] [PID 13024] [7313 ms] [2020-11-23T10:15:21.725Z] [PID 13024] [7313 ms] Exit code 1 [2020-11-23T10:15:21.725Z] [PID 13024] [7313 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [2020-11-23T10:15:21.729Z] [PID 13024] [7317 ms] [2020-11-23T10:15:21.729Z] [PID 13024] [7317 ms] [2020-11-23T10:15:21.729Z] [PID 13024] [7317 ms] Start: Run in container: mkdir -p '/root/.vscode-server/data/Machine' && cat >'/root/.vscode-server/data/Machine/settings.json' <<'settingsJSON' [2020-11-23T10:15:21.733Z] [PID 13024] [7321 ms] [2020-11-23T10:15:21.733Z] [PID 13024] [7321 ms] [2020-11-23T10:15:21.733Z] [PID 13024] [7321 ms] Start: Run in container: test -d /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f [2020-11-23T10:15:21.736Z] [PID 13024] [7324 ms] [2020-11-23T10:15:21.736Z] [PID 13024] [7324 ms] [2020-11-23T10:15:21.736Z] [PID 13024] [7324 ms] Exit code 1 [2020-11-23T10:15:21.736Z] [PID 13024] [7324 ms] Installing VS Code Server for commit e5a624b788d92b8d34d1392e4c4d9789406efe8f [2020-11-23T10:15:21.736Z] [PID 13024] [7324 ms] Start: Run in container: mkdir -p /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1606126521736 [2020-11-23T10:15:21.739Z] [PID 13024] [7327 ms] [2020-11-23T10:15:21.739Z] [PID 13024] [7327 ms] [2020-11-23T10:15:21.759Z] [PID 13024] [7347 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=3687 2>/dev/null; dd iflag=fullblock bs=6431 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1606126521736 [2020-11-23T10:15:22.567Z] [PID 13024] [8155 ms] [2020-11-23T10:15:22.567Z] [PID 13024] [8155 ms] [2020-11-23T10:15:22.567Z] [PID 13024] [8155 ms] Start: Run in container: mv -n /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1606126521736 /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f [2020-11-23T10:15:22.570Z] [PID 13024] [8158 ms] [2020-11-23T10:15:22.571Z] [PID 13024] [8159 ms] [2020-11-23T10:15:22.571Z] [PID 13024] [8159 ms] Start: Launching Remote-Containers helper. [2020-11-23T10:15:22.571Z] [PID 13024] [8159 ms] Start: Run: gpgconf --list-dir agent-extra-socket [2020-11-23T10:15:22.575Z] [PID 13024] [8163 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js' >/tmp/vscode-remote-containers-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js [2020-11-23T10:15:22.578Z] [PID 13024] [8166 ms] [2020-11-23T10:15:22.578Z] [PID 13024] [8166 ms] [2020-11-23T10:15:22.578Z] [PID 13024] [8166 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [2020-11-23T10:15:22.580Z] [PID 13024] [8168 ms] [2020-11-23T10:15:22.580Z] [PID 13024] [8168 ms] [2020-11-23T10:15:22.580Z] [PID 13024] [8168 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js' >/tmp/vscode-remote-containers-server-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js [2020-11-23T10:15:22.583Z] [PID 13024] [8170 ms] [2020-11-23T10:15:22.583Z] [PID 13024] [8171 ms] [2020-11-23T10:15:22.583Z] [PID 13024] [8171 ms] Start: Run in container: # Copy C:\Users\msowa\.ssh\known_hosts to /root/.ssh/known_hosts [2020-11-23T10:15:22.583Z] [PID 13024] [8171 ms] Start: Run: docker exec -i -u root -e REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-bf036e165c34f3875ff35bbe22ac2049fa6854fc.sock"] -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-bf036e165c34f3875ff35bbe22ac2049fa6854fc.sock 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-server-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js [2020-11-23T10:15:22.591Z] [PID 13024] [8179 ms] [2020-11-23T10:15:22.591Z] [PID 13024] [8179 ms] [2020-11-23T10:15:22.591Z] [PID 13024] [8179 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js $*; }; f' || true [2020-11-23T10:15:22.594Z] [PID 13024] [8182 ms] [2020-11-23T10:15:22.594Z] [PID 13024] [8182 ms] [2020-11-23T10:15:22.594Z] [PID 13024] [8182 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [2020-11-23T10:15:22.597Z] [PID 13024] [8185 ms] [2020-11-23T10:15:22.597Z] [PID 13024] [8185 ms] [2020-11-23T10:15:22.599Z] [PID 13024] [8187 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true [2020-11-23T10:15:22.601Z] [PID 13024] [8189 ms] [2020-11-23T10:15:22.601Z] [PID 13024] [8189 ms] [2020-11-23T10:15:22.610Z] [PID 13024] [8198 ms] Start: Run in container: # Copy extensions to remote [2020-11-23T10:15:22.663Z] [PID 13024] [8251 ms] [2020-11-23T10:15:22.663Z] [PID 13024] [8251 ms] [2020-11-23T10:15:22.664Z] [PID 13024] [8252 ms] Start: Run in container: cd /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f; export VSCODE_AGENT_FOLDER=/root/.vscode-server; /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --extensions-download-dir /root/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension esbenp.prettier-vscode --force [2020-11-23T10:15:23.650Z] [PID 13024] [9238 ms] Installing extensions... Installing extension 'dbaeumer.vscode-eslint' v2.1.13... Installing extension 'esbenp.prettier-vscode' v5.8.0... Extension 'dbaeumer.vscode-eslint' v2.1.13 was successfully installed. Extension 'esbenp.prettier-vscode' v5.8.0 was successfully installed. [2020-11-23T10:15:23.650Z] [PID 13024] [9238 ms] [2020-11-23T10:15:23.650Z] [PID 13024] [9238 ms] Start: Run in container: ls /root/.vscode-server/extensionsCache || true [2020-11-23T10:15:23.654Z] [PID 13024] [9242 ms] dbaeumer.vscode-eslint-2.1.13 esbenp.prettier-vscode-5.8.0 [2020-11-23T10:15:23.654Z] [PID 13024] [9242 ms] [2020-11-23T10:15:23.654Z] [PID 13024] [9242 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [2020-11-23T10:15:23.657Z] [PID 13024] [9245 ms] [2020-11-23T10:15:23.657Z] [PID 13024] [9245 ms] [2020-11-23T10:15:23.657Z] [PID 13024] [9245 ms] Start: Run in container: test -f /root/.vscode-server/.postCreateCommandMarker [2020-11-23T10:15:23.659Z] [PID 13024] [9247 ms] [2020-11-23T10:15:23.659Z] [PID 13024] [9247 ms] [2020-11-23T10:15:23.659Z] [PID 13024] [9247 ms] Exit code 1 [2020-11-23T10:15:23.659Z] [PID 13024] [9247 ms] Start: Run: docker exec -i -u root -e SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-bf036e165c34f3875ff35bbe22ac2049fa6854fc.sock -e REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-bf036e165c34f3875ff35bbe22ac2049fa6854fc.sock -e REMOTE_CONTAINERS=true -w /workspace 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb /bin/sh -c NPM_PACK=$(npm pack) && iob url "$(pwd)/$NPM_PACK" --debug && rm "$NPM_PACK" [2020-11-23T10:15:26.887Z] [PID 13024] [12475 ms] install /workspace/iobroker.luxtronik2-0.0.2.tgz [2020-11-23T10:15:27.031Z] [PID 13024] [12619 ms] NPM version: 6.14.8 [2020-11-23T10:15:27.032Z] [PID 13024] [12620 ms] npm install /workspace/iobroker.luxtronik2-0.0.2.tgz --loglevel error --prefix "/opt/iobroker" (System call) [2020-11-23T10:15:29.482Z] [PID 13024] [15070 ms] readDir will not read this directory (widgets/discovery/) in future versions: vis is not an object of type "meta" [2020-11-23T10:15:29.485Z] [PID 13024] [15073 ms] readDir will not read this directory (widgets/discovery.html/) in future versions: vis is not an object of type "meta" [2020-11-23T10:15:29.487Z] [PID 13024] [15075 ms] readDir will not read this directory () in future versions: discovery is not an object of type "meta" [2020-11-23T10:15:30.490Z] [PID 13024] [16078 ms] Cannot write files: /opt/iobroker/iobroker-data/files/discovery.admin/_data.json: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/files/discovery.admin/_data.json' [2020-11-23T10:15:31.575Z] [PID 13024] [17163 ms] + iobroker.luxtronik2@0.0.2 added 7 packages from 80 contributors and removed 103 packages in 4.184s [2020-11-23T10:15:31.738Z] [PID 13024] [17326 ms] 20 packages are looking for funding run `npm fund` for details [2020-11-23T10:15:31.761Z] [PID 13024] [17348 ms] upload [4] luxtronik2.admin /opt/iobroker/node_modules/iobroker.luxtronik2/admin/words.js words.js application/javascript [2020-11-23T10:15:31.814Z] [PID 13024] [17402 ms] upload [3] luxtronik2.admin /opt/iobroker/node_modules/iobroker.luxtronik2/admin/style.css style.css text/css [2020-11-23T10:15:31.866Z] [PID 13024] [17454 ms] upload [2] luxtronik2.admin /opt/iobroker/node_modules/iobroker.luxtronik2/admin/luxtronik2.png luxtronik2.png image/png [2020-11-23T10:15:31.917Z] [PID 13024] [17505 ms] upload [1] luxtronik2.admin /opt/iobroker/node_modules/iobroker.luxtronik2/admin/index_m.html index_m.html text/html [2020-11-23T10:15:31.968Z] [PID 13024] [17556 ms] upload [0] luxtronik2.admin /opt/iobroker/node_modules/iobroker.luxtronik2/admin/admin.d.ts admin.d.ts video/mp2t [2020-11-23T10:15:33.066Z] [PID 13024] [18654 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-bf036e165c34f3875ff35bbe22ac2049fa6854fc.js $*; }; f' || true [2020-11-23T10:15:33.070Z] [PID 13024] [18658 ms] [2020-11-23T10:15:33.070Z] [PID 13024] [18658 ms] [2020-11-23T10:15:33.070Z] [PID 13024] [18658 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null [2020-11-23T10:15:33.126Z] [PID 13024] [18714 ms] Start: Run in container: /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --disable-user-env-probe --use-host-proxy --port 0 --extensions-download-dir /root/.vscode-server/extensionsCache [2020-11-23T10:15:33.311Z] [PID 13024] [18899 ms] * * Visual Studio Code Server * * Reminder: You may only use this software with Visual Studio family products, * as described in the license https://aka.ms/vscode-remote/license * [2020-11-23T10:15:33.328Z] [PID 13024] [18916 ms] IP Address: 172.22.0.2 [2020-11-23T10:15:33.332Z] [PID 13024] [18920 ms] Extension host agent listening on 39891 [2020-11-23T10:15:33.332Z] [PID 13024] [18920 ms] [2020-11-23T10:15:33.332Z] [PID 13024] [18920 ms] Start: Run in container: echo 39891 >/root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/.devport [2020-11-23T10:15:33.332Z] [PID 13024] [18920 ms] [11:15:33] Extension host agent started. [2020-11-23T10:15:33.334Z] [PID 13024] [18922 ms] [2020-11-23T10:15:33.334Z] [PID 13024] [18922 ms] [2020-11-23T10:15:33.337Z] [PID 13024] [18925 ms] Forwarding local port 39891 to container port 39891 [2020-11-23T10:15:33.403Z] [PID 13024] [18991 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=39169477-d6c1-45d3-827b-7259f89d63501606126513841 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node -e [2020-11-23T10:15:33.404Z] [PID 13024] [18992 ms] Start: Run: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=39169477-d6c1-45d3-827b-7259f89d63501606126513841 3de76046067a0ade7ae441e0385c2d1cd4825daaefbfb2623dc78022da61f5eb /root/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node -e [2020-11-23T10:15:33.847Z] [PID 13024] [19435 ms] [11:15:33] [::ffff:127.0.0.1][c69c8eb2][ManagementConnection] New connection established. [2020-11-23T10:15:33.875Z] [PID 13024] [19463 ms] [11:15:33] Listing 0 persistent terminals, 0 total terminals [2020-11-23T10:15:33.975Z] [PID 13024] [19563 ms] [11:15:33] [::ffff:127.0.0.1][445414e6][ExtensionHostConnection] New connection established. [2020-11-23T10:15:34.024Z] [PID 13024] [19612 ms] [11:15:33] [::ffff:127.0.0.1][445414e6][ExtensionHostConnection] <398> Launched Extension Host Process. [2020-11-23T10:22:10.278Z] [PID 13024] [415866 ms] Start: Run in container: cat /proc/1437/environ [2020-11-23T10:25:26.300Z] [PID 13024] [611888 ms] Start: Run in container: cat /proc/1759/environ
Bin mal gespannt, ob ich der einzige bleibe, der diese Probleme hat und an was es dann am Ende liegt.
-
@OliverIO Danke für die Zusammenfassung. Ich habe mir das in https://github.com/ioBroker/create-adapter/issues/637 mal vermerkt.
@OliverIO sagte in VisualStudio Code und Devcontainer:
Allerdings sind Änderungen an der Datei index_m.html nicht in iobroker sichtbar.
Wie sieht denn deine nginx.conf aus? Kann sein, dass der hot-reload derzeit nur bei React funktioniert - könnte man aber anpassen.
AlCalzone created this issue in ioBroker/create-adapteropen Devcontainer: Use startup scripts for docker instead of postCreateCommand to manage instances #637
-
@AlCalzone sagte in VisualStudio Code und Devcontainer:
Kann sein, dass der hot-reload derzeit nur bei React funktioniert - könnte man aber anpassen.
Das ist so, allerdings sollte F5 im Browser definitiv die Seite neu laden.
@OliverIO sagte in VisualStudio Code und Devcontainer:
Auch nicht nach mehrmaligem upload über das iobroker ui
Das hat auch keine Auswirkung: die Dateien werden von nginx direkt vom workspace Folder zur Verfügung gestellt.
-
@UncleSam sagte in VisualStudio Code und Devcontainer:
nginx direkt vom workspace Folder zur Verfügung gestellt.
Hast Recht, ich dachte wir haben das nur bei React aktiv - ist aber immer so:
https://github.com/ioBroker/create-adapter/blob/ccd92f13d6a77a062757bf5393f8e2ed7c71fa2c/templates/_devcontainer/nginx/nginx.conf.ts#L34-L36 -
@AlCalzone @UncleSam
Könnt ihr mal bitte testen, ob bei euch im Container die watch-Geschichten funktionieren (parcel, gulp oder babel)
Bei mir werden im /workspace Ordner keine Ereignisse ausgelöst, in anderen schon.
Das macht das automatische rebuild von react bspw etwas schwierig.
Habe dazu auch issues für docker for windows gefunden. -
@OliverIO Ja, geht nicht. Respektive nur wenn du deine Dateien im WSL hast und nicht unter Windows:
https://www.docker.com/blog/docker-desktop-wsl-2-best-practices/
Und vor allem: https://docs.docker.com/docker-for-windows/wsl/#best-practicesDie andere Lösung haben wir im create-adaper eingebaut: du kannst Chokidar sagen, er solle das Dateisystem pollen:
https://github.com/ioBroker/create-adapter/blob/ccd92f13d6a77a062757bf5393f8e2ed7c71fa2c/templates/_devcontainer/docker-compose.yml.ts#L42 -
@UncleSam
Super danke -
Möchte auch mein Feedback geben:
Ich habe vor ein paar Tagen via Adapter-Creator einen Adapter zum Testen erstellt (Typescript, DevContainer, React-GUI). Ich hatte auch das Bad-Gateway-Problem. Ich hatte etwas rumprobiert - ohne Erfolg. Am nächsten Tag funktionierte es dann aber plötzlich! "postCreateCommand" war aber aktiv.
Mit weiterem Rumprobieren bin ich schrittweise weitergekommen, aber teils auch wieder angestanden, sodass ich gestern beschloss, nochmals von vorne anzufangen.
Allerdings habe ich es mit dem neu generierten Container nicht mehr geschafft, das Bad-Gateway-Problem loszuwerden. Die Instanzen werden nicht gestartet. Auch wenn ich postCreateCommand auskommentiere.
Jetzt habe ich zwei Container, wobei ich beim einen auf ioBroker zugreifen kann und beim zweiten bekomme ich den Bad Gateway Fehler. Ich hab schon Folder-Vergleiche gemacht, aber ich werde nicht schlau draus. Gibt es da irgendwas auf das ich speziell schauen könnte?
Mittlerweile habe ich es aber geschafft, dass der erste funktioniert.
Hier ein paar Punkte, über die ich gestolpert bin:
- Wenn ich CHOKIDAR_USEPOLLING=1 gesetzt lasse, dann geht der Parcel-Container auf 200% CPU (top in der Console) bzw. Vmmem meines 4 Cores/8 Threads-Systems auf 50%. (Ist allerdings schon ein ziemlich alter i7).
- Ich hatte überlesen, dass man eine Instanz des Adapters erstellen muss. Der Adapter taucht ja in der Adapterliste auf. Als ich noch keine Instanz erstellt hatte, brach er beim Debuggen immer mit Exit Code 2 (INVALID_ADAPTER_CONFIG) ab.
- Die installierte Instanz sollte aber gestoppt werden. Als sie lief, hatte ich den Eindruck, dass zwar beim Debuggen in VSCode mein bereits geänderter Adapter lief (anhand von console.log), aber im ioBroker-Log nur die Log-Einträge des ursprünglich generierten Adapters zu finden waren.
- Zum direkten Debuggen von Typescript muss man sich an die launch.json halten, die UncleSam am Anfang dieses Threads gepostet hat. Hier wird die main.ts als "program" gesetzt. Allerdings musste ich in package.json "sourceMap" auf true stellen. Hatte es anfangs nur in der launch.json gesetzt - das hat bei mir nicht funktioniert. Die anderen hier geposteten launch.json-Beispiele beziehen sich auf JavaScript.
- Beim Ausführen von create-adapter traten am Ende Fehler auf:
[3/3] Compiling source files... npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.noox-test-4@0.0.1 build:parcel: `parcel build admin/src/index.tsx -d admin/build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.noox-test-4@0.0.1 build:parcel script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\noox\AppData\Roaming\npm-cache\_logs\2020-12-31T14_36_44_078Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.noox-test-4@0.0.1 build: `npm run build:ts && npm run build:parcel` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.noox-test-4@0.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\noox\AppData\Roaming\npm-cache\_logs\2020-12-31T14_36_44_116Z-debug.log All done! Have fun programming! ♥
Ich nehme mal an, die kann man ignorieren. Ich hab die Befehle dann manuell ausgeführt. Also build:parcel bzw.
npm run build:ts && npm run build:parcel
. Dabei hat sich gezeigt, dass @sentry/browser fehlt. (vermutlich dieses Problem: https://github.com/ioBroker/create-adapter/issues/657). Hab es hinzugefügt, dann laufen auch diese Builds durch.oweitman created this issue in ioBroker/create-adapterclosed missing package @sentry/browser #657
-
@noox Danke für das Feedback.
@noox sagte in VisualStudio Code und Devcontainer:
Beim Ausführen von create-adapter traten am Ende Fehler auf
Wenn ich das richtig interpretiere, ist das ein bekannter Fehler in adapter-react, dr bekannt ist.
-
@UncleSam said in VisualStudio Code und Devcontainer:
Wenn ich das richtig interpretiere, ist das ein bekannter Fehler in adapter-react, dr bekannt ist.
Ja, denke ich auch. Ich dachte ich vermerke es hier, weil womöglich ein Neuling wie ich bei solchen Problemen länger sucht oder herumprobiert.
-
Ich wollte mal, nachdem einige Zeit vergangen ist mich nochmal an den devcontainer wagen.
Diesmal habe ich es auf einem Remote-Rechner versucht mit folgendem Ergebnis. Die Logfiles sind etwas groß, hab mich aber dazu entschlossen, die komplett hochzuladen. evtl seht ihr ja noch etwas was ich übersehen habe.Ziel Entwicklung in einem devcontainer auf einem remote-server
Auf dem remote server ist Debian GNU/Linux 10 (buster) installiert
In einem Verzeichnis wurde mittels dem Adapter creator der folgende adapter angelegt.
Darüber hinaus gab es keine weiteren Anpassungen an irgendeiner Datei
{ "cli": true, "target": "directory", "adapterName": "test", "title": "test", "description": "test", "expert": "yes", "features": ["adapter", "vis"], "adminFeatures": [], "type": "misc-data", "startMode": "daemon", "connectionType": "cloud", "dataSource": "poll", "connectionIndicator": "yes", "language": "JavaScript", "nodeVersion": "16", "adminUi": "react", "tools": ["ESLint", "type checking", "Prettier", "devcontainer"], "releaseScript": "yes", "devServer": "yes", "devServerPort": 8081, "indentation": "Space (4)", "quotes": "double", "es6class": "yes", "authorName": "oweitman", "authorGithub": "oweitman", "authorEmail": "oweitman@gmx.de", "gitRemoteProtocol": "HTTPS", "gitCommit": "no", "defaultBranch": "main", "license": "MIT License", "dependabot": "yes", "creatorVersion": "2.3.0" }
Nach der Verbindung mit vs code zum server wurde das Verzeichnis zum Adapter geöffnet
vs code hat automatisch erkannt, das hier ein devcontainer vorliegt. dieser wurde geöffnet- Durchlauf
Log des Erstellungsprozesses
[52 ms] Dev Containers 0.262.3 in VS Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b). [51 ms] Start: Resolving Remote [60 ms] Start: Run: ssh 192.168.1.61 /bin/sh [77 ms] Start: Run in host: id -un [329 ms] olinuc [329 ms] [329 ms] Start: Run in host: cat /etc/passwd [333 ms] Start: Run in host: echo ~ [334 ms] /home/olinuc [335 ms] [335 ms] Start: Run in host: test -x '/home/olinuc/.vscode-remote-containers/bin/6261075646f055b99068d3688932416f2346dd3b/node' [337 ms] [337 ms] [338 ms] Exit code 1 [338 ms] Start: Run in host: test -x '/home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node' [340 ms] [340 ms] [341 ms] Start: Run in host: test -f '/home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node_modules/node-pty/package.json' [343 ms] [343 ms] [343 ms] Start: Run in host: test -f '/home/olinuc/.vscode-remote-containers/dist/vscode-remote-containers-server-0.262.3.js' [345 ms] [345 ms] [348 ms] userEnvProbe: loginInteractiveShell (default) [348 ms] userEnvProbe shell: /bin/bash [542 ms] userEnvProbe PATHs: Probe: '/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games' Container: None [545 ms] Setting up container for folder or workspace: /home/olinuc/projects/vscode-devcontainer/ioBroker.test [545 ms] Host: ssh://192.168.1.61 [547 ms] Start: Check Docker is running [547 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}} [677 ms] Server API version: 1.40 [677 ms] Start: Run in Host: docker volume ls -q [768 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --filter label=vsch.quality=stable [839 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test [918 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js up --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true [1485 ms] (node:8812) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [1486 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [1187 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [1187 ms] Start: Run: docker buildx version [1332 ms] github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a [1333 ms] [1333 ms] Start: Resolving Remote [1348 ms] Start: Run: docker-compose version --short [2582 ms] Docker Compose version: 1.25.0 [2584 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokertest_devcontainer --filter label=com.docker.compose.service=iobroker [2661 ms] Start: Run: docker-compose -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml config [3986 ms] services: iobroker: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/iobroker container_name: iobroker-test environment: LANG: en_US.UTF-8 LANGUAGE: en_US:en LC_ALL: en_US.UTF-8 SETGID: '1000' TZ: Europe/Berlin expose: - 8081 hostname: iobroker-test volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached - iobrokerdata-test:/opt/iobroker:rw nginx: container_name: nginx-test depends_on: - iobroker - parcel image: nginx:latest links: - iobroker - parcel ports: - 8082:80/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/nginx/nginx.conf:/etc/nginx/nginx.conf:rw - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached parcel: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/parcel container_name: parcel-test environment: CHOKIDAR_USEPOLLING: '1' expose: - 1234 ports: - 1235:1235/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached version: '3.0' volumes: iobrokerdata-test: {} [3996 ms] Start: Run: docker -v [4066 ms] Start: Run: docker events --format {{json .}} --filter event=start [4075 ms] PersistedPath=/tmp/devcontainercli-olinuc, ContainerHasLabels=false [4080 ms] Start: Run: docker-compose -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml config [5366 ms] services: iobroker: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/iobroker container_name: iobroker-test environment: LANG: en_US.UTF-8 LANGUAGE: en_US:en LC_ALL: en_US.UTF-8 SETGID: '1000' TZ: Europe/Berlin expose: - 8081 hostname: iobroker-test volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached - iobrokerdata-test:/opt/iobroker:rw nginx: container_name: nginx-test depends_on: - iobroker - parcel image: nginx:latest links: - iobroker - parcel ports: - 8082:80/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/nginx/nginx.conf:/etc/nginx/nginx.conf:rw - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached parcel: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/parcel container_name: parcel-test environment: CHOKIDAR_USEPOLLING: '1' expose: - 1234 ports: - 1235:1235/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached version: '3.0' volumes: iobrokerdata-test: {} [5374 ms] Start: Run: docker inspect --type image iobroker/iobroker:latest [6826 ms] local container features stored at: /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/node_modules/vscode-dev-containers/container-features [6830 ms] Start: Run: tar --no-same-owner -x -f - [6907 ms] Docker Compose override file for building image: version: '3' services: iobroker: build: dockerfile: /tmp/devcontainercli-olinuc/container-features/0.23.2-1668700269397/Dockerfile-with-features args: - BUILDKIT_INLINE_CACHE=1 - _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label [6910 ms] Start: Run: docker-compose --project-name iobrokertest_devcontainer -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.build-1668700269481.yml build nginx uses an image, skipping Building iobroker Step 1/5 : ARG _DEV_CONTAINERS_BASE_IMAGE=placeholder Step 2/5 : FROM iobroker/iobroker:latest AS dev_container_auto_added_stage_label latest: Pulling from iobroker/iobroker e9995326b091: Pull complete bdea61b1fbd3: Pull complete 5eaaf83d9b18: Pull complete 25d9e22af9c5: Pull complete b03789901639: Pull complete 98b8dfd4ec8b: Pull complete 4f4fb700ef54: Pull complete Digest: sha256:7a5cb4c0720a944b7e306fc5fa4cfa6b0dde1fd58c295927ed8546627919467a Status: Downloaded newer image for iobroker/iobroker:latest ---> 25319ee9019b Step 3/5 : RUN ln -s /opt/iobroker/node_modules/ /root/.node_modules ---> Running in 5b696fe2667e Removing intermediate container 5b696fe2667e ---> a5494ffc8dd7 Step 4/5 : FROM $_DEV_CONTAINERS_BASE_IMAGE AS dev_containers_target_stage ---> a5494ffc8dd7 Step 5/5 : LABEL devcontainer.metadata="{\"postCreateCommand\":\"iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=\$(npm pack) && iob url \\\"\$(pwd)/\$NPM_PACK\\\" --debug && rm \\\"\$NPM_PACK\\\"\",\"customizations\":{\"vscode\":{\"extensions\":[\"dbaeumer.vscode-eslint\",\"esbenp.prettier-vscode\"],\"settings\":{}}}}" ---> Running in 708ffe3e2504 Removing intermediate container 708ffe3e2504 ---> 006da92adcc4 [Warning] One or more build-args [BUILDKIT_INLINE_CACHE] were not consumed Successfully built 006da92adcc4 Successfully tagged iobrokertest_devcontainer_iobroker:latest Building parcel Step 1/5 : FROM node:16 16: Pulling from library/node 2730d739afad: Pull complete a122751b3533: Pull complete 0a277c3efe7c: Pull complete 25c35b81c503: Pull complete cb8cde86ddb2: Pull complete 200d9ce64e0b: Pull complete d73c02353705: Pull complete d6973298711a: Pull complete f0dfa5d235bc: Pull complete Digest: sha256:68fc9f749931453d5c8545521b021dd97267e0692471ce15bdec0814ed1f8fc3 Status: Downloaded newer image for node:16 ---> 9bf69dd73b08 Step 2/5 : RUN mkdir -p /usr/app ---> Running in e59b3951d03e Removing intermediate container e59b3951d03e ---> fa8566e934f2 Step 3/5 : COPY *.sh /usr/app/ ---> dc3d50f5d5a8 Step 4/5 : RUN chmod +x /usr/app/*.sh ---> Running in cc69b179159e Removing intermediate container cc69b179159e ---> a5a6289ba615 Step 5/5 : CMD /bin/bash -c "/usr/app/run.sh" ---> Running in eb5b65aa195d Removing intermediate container eb5b65aa195d ---> 3147dff2cd53 Successfully built 3147dff2cd53 Successfully tagged iobrokertest_devcontainer_parcel:latest [199722 ms] Start: Run: docker inspect --type image iobrokertest_devcontainer_iobroker [199797 ms] Docker Compose override file for creating container: version: '3' services: 'iobroker': entrypoint: ["/bin/sh", "-c", "echo Container started\n trap \"exit 0\" 15\n \n exec \"$$@\"\n while sleep 1 & wait $$!; do :; done", "-", "/bin/bash", "-c", "/opt/scripts/iobroker_startup.sh"] command: [] labels: - devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test volumes: - vscode:/vscode volumes: vscode: external: true [199797 ms] Writing docker-compose.devcontainer.containerFeatures-1668700462371.yml to /tmp/devcontainercli-olinuc/docker-compose [199799 ms] Start: Run: docker-compose --project-name iobrokertest_devcontainer -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.build-1668700269481.yml -f /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.containerFeatures-1668700462371.yml up -d Pulling nginx (nginx:latest)... latest: Pulling from library/nginx a603fa5e3b41: Pull complete c39e1cda007e: Pull complete 90cfefba34d7: Pull complete a38226fb7aba: Pull complete 62583498bae6: Pull complete 9802a2cfdb8d: Pull complete Digest: sha256:e209ac2f37c70c1e0e9873a5f7231e91dcd83fdf1178d8ed36c2ec09974210ba Status: Downloaded newer image for nginx:latest Creating parcel-test ... done Creating iobroker-test ... done Creating nginx-test ... done [230322 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokertest_devcontainer --filter label=com.docker.compose.service=iobroker [230434 ms] Start: Run: docker inspect --type container e75317cc41db [230529 ms] Start: Inspecting container [230529 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [230608 ms] Start: Run in container: /bin/sh [230618 ms] Start: Run in container: uname -m [230940 ms] x86_64 [230940 ms] [230940 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [230948 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [230948 ms] [230949 ms] Start: Run in container: cat /etc/passwd [230963 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [230966 ms] [230966 ms] [230966 ms] Exit code 1 [230967 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcEnvironmentMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcEnvironmentMarker' ; } 2> /dev/null [230974 ms] [230974 ms] [230974 ms] Start: Run in container: cat >> /etc/environment <<'etcEnvrionmentEOF' [230978 ms] [230978 ms] [230979 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [230981 ms] [230981 ms] [230981 ms] Exit code 1 [230981 ms] Start: Run in container: test ! -f '/var/devcontainer/.patchEtcProfileMarker' && set -o noclobber && mkdir -p '/var/devcontainer' && { > '/var/devcontainer/.patchEtcProfileMarker' ; } 2> /dev/null [230986 ms] [230986 ms] [230987 ms] Start: Run in container: sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1${PATH:-\3}/g' /etc/profile || true [230994 ms] [230994 ms] [231317 ms] Start: Run in Host: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [231438 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --mount-workspace-git-root true [232198 ms] (node:20013) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [232199 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [231909 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [231909 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [232332 ms] Start: Run in Host: docker-compose version --short [233708 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true [234265 ms] (node:20264) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [234265 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [233966 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [233965 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [234374 ms] Start: Inspecting container [234374 ms] Start: Run in Host: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [234460 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=71632c99-8ed8-4f5a-8853-84725faab02b1668700261728 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /bin/sh [234465 ms] Start: Run in container: uname -m [234770 ms] x86_64 [234770 ms] [234770 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [234776 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [234776 ms] [234777 ms] Start: Run in container: cat /etc/passwd [234784 ms] Start: Updating configuration state [234851 ms] Start: Setup shutdown monitor [234852 ms] Forking shutdown monitor: c:\Users\msowa\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-3dd8fbc031063e0dbf6f5fb3323a58f057e846d7-sock dockerCompose Debug c:\Users\msowa\AppData\Roaming\Code\logs\20221117T165101\window1\exthost\ms-vscode-remote.remote-containers 1668700262574 [234861 ms] Start: Run in container: test -d /root/.vscode-server [234866 ms] [234866 ms] [234866 ms] Exit code 1 [234866 ms] Start: Run in container: test -d /root/.vscode-remote [234869 ms] [234870 ms] [234870 ms] Exit code 1 [234870 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [234876 ms] [234876 ms] [234876 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json [234881 ms] [234881 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory [234881 ms] Exit code 1 [234882 ms] Start: Run in container: test -d /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b [234885 ms] [234885 ms] [234885 ms] Exit code 1 [234885 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b [234888 ms] [234889 ms] [234889 ms] Start: Run in container: mkdir -p '/root/.vscode-server/bin' && ln -snf '/vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b' '/root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b' [234894 ms] [234894 ms] [234895 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b' [234895 ms] Start: Launching Dev Containers helper. [234895 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-375936284464709c817bd140ad42449422cff564.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent). [234896 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket [234901 ms] [234901 ms] [234903 ms] /run/user/1000/gnupg/S.gpg-agent.extra [234903 ms] [234903 ms] Start: Run in container: gpgconf --list-dir agent-socket [234907 ms] /root/.gnupg/S.gpg-agent [234908 ms] [234908 ms] Start: Run in container: gpgconf --list-dir homedir [234912 ms] /root/.gnupg [234913 ms] [234913 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null [234918 ms] [234918 ms] [234918 ms] Exit code 2 [234918 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg' [234918 ms] Start: Run in Host: docker exec -i -u root e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /bin/sh [234919 ms] userEnvProbe: loginInteractiveShell (default) [234919 ms] userEnvProbe shell: /bin/bash [234929 ms] Start: Run in container: echo ~ [234930 ms] [234930 ms] [234930 ms] Start: Run in Host: gpgconf --list-dir homedir [234936 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [234938 ms] /home/olinuc/.gnupg [234938 ms] [234940 ms] ssh not found [234940 ms] [234941 ms] Exit code 1 [234941 ms] Start: Run in container: gpgconf --list-dir homedir [234946 ms] /root/.gnupg [234946 ms] [234946 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /tmp/vscode-remote-containers-375936284464709c817bd140ad42449422cff564.js $*; }; f' || true [234954 ms] [234954 ms] [234955 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [234977 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye [235070 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' 2>/dev/null || (umask 377 && echo '5ca39484-14f4-45c1-bf01-f6463686213d' >'/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-f48b44e6-1e6f-4eca-8ccd-f14afe8a89b9' && mv -n '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-f48b44e6-1e6f-4eca-8ccd-f14afe8a89b9' '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' && rm -f '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-f48b44e6-1e6f-4eca-8ccd-f14afe8a89b9' && cat '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b') [235082 ms] 5ca39484-14f4-45c1-bf01-f6463686213d [235083 ms] [235083 ms] Start: Starting VS Code Server [235083 ms] Start: Preparing Extensions [235083 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [235092 ms] [235092 ms] [235095 ms] Extensions cache, install extensions: dbaeumer.vscode-eslint, esbenp.prettier-vscode [235095 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true [235098 ms] [235098 ms] [235098 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [235106 ms] dbaeumer.vscode-eslint-2.2.6 esbenp.prettier-vscode-9.9.0 [235106 ms] [235106 ms] Extensions cache, link in container: dbaeumer.vscode-eslint-2.2.6, esbenp.prettier-vscode-9.9.0 [235106 ms] Start: Run in container: mkdir -p '/root/.vscode-server/extensionsCache' && ln -s '/vscode/vscode-server/extensionsCache'/* '/root/.vscode-server/extensionsCache' || true [235122 ms] [235122 ms] [235123 ms] Start: Run in container: cd /vscode/vscode-server/extensionsCache && touch 'dbaeumer.vscode-eslint-2.2.6' 'esbenp.prettier-vscode-9.9.0' [235123 ms] Start: Run in Host: docker exec -i -u root -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/root/.vscode-server -w /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b --extensions-download-dir /root/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension esbenp.prettier-vscode --start-server [235135 ms] [235136 ms] [235301 ms] /root [235301 ms] [235301 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-375936284464709c817bd140ad42449422cff564.js' >/tmp/vscode-remote-containers-375936284464709c817bd140ad42449422cff564.js [235306 ms] [235306 ms] [235306 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-375936284464709c817bd140ad42449422cff564.js' >/tmp/vscode-remote-containers-server-375936284464709c817bd140ad42449422cff564.js_1668700497880 [235340 ms] [235340 ms] [235638 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [235892 ms] * * Visual Studio Code Server * * By using the software, you agree to * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement). * [235913 ms] Server bound to 127.0.0.1:34475 (IPv4) Extension host agent listening on 34475 [235913 ms] Start: Run in container: echo 34475 >'/root/.vscode-server/data/Machine/.devport-6261075646f055b99068d3688932416f2346dd3b' [235916 ms] [235916 ms] [235916 ms] Port forwarding for container port 34475 starts listening on local port. [235918 ms] Port forwarding local port 34475 to container port 34475 [235930 ms] Port forwarding connection from 51107 > 34475 > 34475 in the container. [235930 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=71632c99-8ed8-4f5a-8853-84725faab02b1668700261728 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e [235944 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js run-user-commands --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-375936284464709c817bd140ad42449422cff564.sock --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-375936284464709c817bd140ad42449422cff564.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 161 --terminal-rows 20 [236675 ms] Installing extensions... [236698 ms] [16:54:58] Extension host agent started. [236798 ms] (node:20652) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [236798 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [236506 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [236505 ms] Start: Run: docker buildx version [236816 ms] github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a [236816 ms] [237139 ms] Port forwarding 51107 > 34475 > 34475 stderr: Connection established [236834 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [237236 ms] [16:54:59] ComputeTargetPlatform: linux-x64 [236945 ms] Start: Inspecting container [236945 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [237265 ms] Port forwarding connection from 51108 > 34475 > 34475 in the container. [237266 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=71632c99-8ed8-4f5a-8853-84725faab02b1668700261728 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e [237102 ms] Start: Run in container: /bin/sh [237121 ms] Start: Run in container: uname -m [237662 ms] [16:54:59] [127.0.0.1][bc92c026][ManagementConnection] New connection established. [237817 ms] Port forwarding 51108 > 34475 > 34475 stderr: Connection established [237749 ms] x86_64 [237749 ms] [237750 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [237764 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [237764 ms] [237765 ms] Start: Run in container: cat /etc/passwd [237782 ms] userEnvProbe: loginInteractiveShell (default) [237784 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.onCreateCommandMarker' [237785 ms] userEnvProbe shell: /bin/bash [237786 ms] Start: Run in container: /bin/bash -lic echo -n 6e7c29ab4dbca5ee3b643b81c62543ae; cat /proc/self/environ; echo -n 6e7c29ab4dbca5ee3b643b81c62543ae [237805 ms] [237805 ms] [237806 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.updateContentCommandMarker' [237848 ms] [237848 ms] [237848 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.postCreateCommandMarker' [237877 ms] [237877 ms] Running the postCreateCommand from devcontainer.json... [238221 ms] Installing extension 'esbenp.prettier-vscode'... [238316 ms] Installing extension 'dbaeumer.vscode-eslint'... [238447 ms] [16:55:00] Getting Manifest... esbenp.prettier-vscode [16:55:00] Getting Manifest... dbaeumer.vscode-eslint [238500 ms] [16:55:00] [127.0.0.1][e86936a8][ExtensionHostConnection] New connection established. [238540 ms] [16:55:00] [127.0.0.1][e86936a8][ExtensionHostConnection] <580> Launched Extension Host Process. [238309 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [238311 ms] Start: Run in container: /bin/sh -c iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url "$(pwd)/$NPM_PACK" --debug && rm "$NPM_PACK" [238820 ms] [16:55:01] Installing extension: esbenp.prettier-vscode [238827 ms] [16:55:01] Installing extension: dbaeumer.vscode-eslint [240482 ms] [16:55:02] Extracted extension to /root/.vscode-server/extensions/.7e84e1d8-2607-4473-b26c-86b2eb5a4a11: dbaeumer.vscode-eslint [240490 ms] [16:55:02] Renamed to /root/.vscode-server/extensions/dbaeumer.vscode-eslint-2.2.6 [240869 ms] [16:55:02] Extracting completed. dbaeumer.vscode-eslint [240869 ms] [16:55:02] Extension installed successfully: dbaeumer.vscode-eslint [240870 ms] Extension 'dbaeumer.vscode-eslint' v2.2.6 was successfully installed. [241593 ms] [16:55:03] Extracted extension to /root/.vscode-server/extensions/.d6f407b5-d057-42a0-af0a-f5e42aea63e2: esbenp.prettier-vscode [241603 ms] [16:55:03] Renamed to /root/.vscode-server/extensions/esbenp.prettier-vscode-9.9.0 [241610 ms] [16:55:03] Extracting completed. esbenp.prettier-vscode [241612 ms] [16:55:03] Extension installed successfully: esbenp.prettier-vscode [241614 ms] Extension 'esbenp.prettier-vscode' v9.9.0 was successfully installed. Delete adapter "discovery" host.iobroker-test object discovery deleted host.iobroker-test object discovery.admin deleted Error deleting adapter discovery from disk: Cannot find module 'iobroker.discovery/io-package.json' Require stack: - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupInstall.js - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js - /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js You might have to delete it yourself! Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! [265719 ms] postCreateCommand failed with exit code 24. Skipping any further user-provided commands. [266033 ms] Error: Command failed: /bin/sh -c iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url "$(pwd)/$NPM_PACK" --debug && rm "$NPM_PACK" [266034 ms] at RL (/home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js:1690:137) [266034 ms] at processTicksAndRejections (node:internal/process/task_queues:96:5) [266034 ms] at async Promise.all (index 0) [266034 ms] at async qg (/home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js:1682:3580) [266034 ms] at async $g (/home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js:1682:2837) [266034 ms] at async rue (/home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js:2013:27124) [266035 ms] at async tue (/home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js:2013:24813) [266049 ms] Exit code 1 [266050 ms] Command failed: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js run-user-commands --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-375936284464709c817bd140ad42449422cff564.sock --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-375936284464709c817bd140ad42449422cff564.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 161 --terminal-rows 20
Log des Sub terminal mit dem Fehler zu postCreateCommand, der zum ende des ersten Durchlaufs geführt hat
[238311 ms] Start: Run in container: /bin/sh -c iob del discovery && iob plugin disable sentry && iob object set system.config common.licenseConfirmed=true && NPM_PACK=$(npm pack) && iob url "$(pwd)/$NPM_PACK" --debug && rm "$NPM_PACK" Delete adapter "discovery" host.iobroker-test object discovery deleted host.iobroker-test object discovery.admin deleted Error deleting adapter discovery from disk: Cannot find module 'iobroker.discovery/io-package.json' Require stack: - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupInstall.js - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js - /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js You might have to delete it yourself! Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! [265719 ms] postCreateCommand failed with exit code 24. Skipping any further user-provided commands. Done. Press any key to close the terminal.
Nach Abbruch des 1.Durchlaufs habe ich vs code geschlossen und wieder erneut geöffnet
Protokoll des 2.Durchlaufs[51 ms] Dev Containers 0.262.3 in VS Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b). [51 ms] Start: Resolving Remote [59 ms] Start: Run: ssh 192.168.1.61 /bin/sh [76 ms] Start: Run in host: id -un [337 ms] olinuc [338 ms] [338 ms] Start: Run in host: cat /etc/passwd [341 ms] Start: Run in host: echo ~ [343 ms] /home/olinuc [344 ms] [344 ms] Start: Run in host: test -x '/home/olinuc/.vscode-remote-containers/bin/6261075646f055b99068d3688932416f2346dd3b/node' [346 ms] [347 ms] [347 ms] Exit code 1 [347 ms] Start: Run in host: test -x '/home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node' [349 ms] [349 ms] [350 ms] Start: Run in host: test -f '/home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node_modules/node-pty/package.json' [352 ms] [352 ms] [352 ms] Start: Run in host: test -f '/home/olinuc/.vscode-remote-containers/dist/vscode-remote-containers-server-0.262.3.js' [354 ms] [354 ms] [357 ms] userEnvProbe: loginInteractiveShell (default) [357 ms] userEnvProbe shell: /bin/bash [554 ms] userEnvProbe PATHs: Probe: '/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games' Container: None [556 ms] Setting up container for folder or workspace: /home/olinuc/projects/vscode-devcontainer/ioBroker.test [557 ms] Host: ssh://192.168.1.61 [558 ms] Start: Check Docker is running [558 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}} [685 ms] Server API version: 1.40 [686 ms] Start: Run in Host: docker volume ls -q [778 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --filter label=vsch.quality=stable [849 ms] Start: Run in Host: docker ps -q -a --filter label=devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test [923 ms] Start: Run in Host: docker inspect --type container e75317cc41db [1010 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js up --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true [1587 ms] (node:30863) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [1587 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [1281 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [1281 ms] Start: Run: docker buildx version [1428 ms] github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a [1429 ms] [1429 ms] Start: Resolving Remote [1444 ms] Start: Run: docker-compose version --short [2678 ms] Docker Compose version: 1.25.0 [2680 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokertest_devcontainer --filter label=com.docker.compose.service=iobroker [2759 ms] Start: Run: docker inspect --type container e75317cc41db [2842 ms] Start: Run: docker-compose -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml config [4140 ms] services: iobroker: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/iobroker container_name: iobroker-test environment: LANG: en_US.UTF-8 LANGUAGE: en_US:en LC_ALL: en_US.UTF-8 SETGID: '1000' TZ: Europe/Berlin expose: - 8081 hostname: iobroker-test volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached - iobrokerdata-test:/opt/iobroker:rw nginx: container_name: nginx-test depends_on: - iobroker - parcel image: nginx:latest links: - iobroker - parcel ports: - 8082:80/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/nginx/nginx.conf:/etc/nginx/nginx.conf:rw - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached parcel: build: context: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/parcel container_name: parcel-test environment: CHOKIDAR_USEPOLLING: '1' expose: - 1234 ports: - 1235:1235/tcp volumes: - /home/olinuc/projects/vscode-devcontainer/ioBroker.test:/workspace:cached version: '3.0' volumes: iobrokerdata-test: {} [4152 ms] Start: Run: docker -v [4220 ms] Start: Run: docker events --format {{json .}} --filter event=start [4229 ms] PersistedPath=/tmp/devcontainercli-olinuc, ContainerHasLabels=true [4230 ms] Container was created with these config files: /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml,/tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.build-1668700269481.yml,/tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.containerFeatures-1668700462371.yml [4233 ms] Restoring /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.build-1668700269481.yml from persisted storage [4235 ms] Restoring /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.containerFeatures-1668700462371.yml from persisted storage [4238 ms] Start: Run: docker-compose --project-name iobrokertest_devcontainer -f /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/docker-compose.yml -f /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.build-1668700269481.yml -f /tmp/devcontainercli-olinuc/docker-compose/docker-compose.devcontainer.containerFeatures-1668700462371.yml up -d --no-recreate Starting parcel-test ... done Starting iobroker-test ... done Starting nginx-test ... done [6905 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=iobrokertest_devcontainer --filter label=com.docker.compose.service=iobroker [7041 ms] Start: Run: docker inspect --type container e75317cc41db [7182 ms] Start: Inspecting container [7183 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [7321 ms] Start: Run in container: /bin/sh [7337 ms] Start: Run in container: uname -m [7773 ms] x86_64 [7773 ms] [7773 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [7778 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [7778 ms] [7779 ms] Start: Run in container: cat /etc/passwd [7785 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [7787 ms] [7787 ms] [7788 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [7791 ms] [7791 ms] [8117 ms] Start: Run in Host: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [8222 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --mount-workspace-git-root true [8896 ms] (node:31734) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [8896 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [8602 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [8602 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [9037 ms] Start: Run in Host: docker-compose version --short [10369 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true [10975 ms] (node:32117) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [10975 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [10680 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [10680 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [11096 ms] Start: Inspecting container [11097 ms] Start: Run in Host: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [11182 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=583a5598-a14f-46d9-a665-e5901f6e50241668700682725 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /bin/sh [11189 ms] Start: Run in container: uname -m [11502 ms] x86_64 [11502 ms] [11502 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [11506 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [11507 ms] [11507 ms] Start: Run in container: cat /etc/passwd [11512 ms] Start: Setup shutdown monitor [11513 ms] Forking shutdown monitor: c:\Users\msowa\.vscode\extensions\ms-vscode-remote.remote-containers-0.262.3\dist\shutdown\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-bef2485cb30c8bea0ee00508867131f6f6e5cfcf-sock dockerCompose Debug c:\Users\msowa\AppData\Roaming\Code\logs\20221117T165802\window1\exthost\ms-vscode-remote.remote-containers 1668700683547 [11524 ms] Start: Run in container: test -d /root/.vscode-server [11532 ms] [11533 ms] [11533 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [11540 ms] [11540 ms] [11540 ms] Exit code 1 [11541 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json [11550 ms] [11550 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory [11550 ms] Exit code 1 [11551 ms] Start: Run in container: test -d /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b [11554 ms] [11555 ms] [11555 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b [11558 ms] [11558 ms] [11558 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/6261075646f055b99068d3688932416f2346dd3b' [11558 ms] Start: Launching Dev Containers helper. [11559 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-c1303c71c48e4f23b79e2a62cf711b5601414e26.sock) forwarded to local host (\\.\pipe\openssh-ssh-agent). [11559 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket [11567 ms] [11567 ms] [11571 ms] /run/user/1000/gnupg/S.gpg-agent.extra [11571 ms] [11571 ms] Start: Run in container: gpgconf --list-dir agent-socket [11576 ms] /root/.gnupg/S.gpg-agent [11576 ms] [11576 ms] Start: Run in container: gpgconf --list-dir homedir [11591 ms] /root/.gnupg [11591 ms] [11592 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null [11597 ms] [11598 ms] [11598 ms] Exit code 2 [11598 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg' [11598 ms] Start: Run in Host: docker exec -i -u root e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /bin/sh [11599 ms] userEnvProbe: loginInteractiveShell (default) [11599 ms] userEnvProbe shell: /bin/bash [11609 ms] Start: Run in container: echo ~ [11610 ms] [11610 ms] [11610 ms] Start: Run in Host: gpgconf --list-dir homedir [11616 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh [11619 ms] /home/olinuc/.gnupg [11620 ms] [11620 ms] ssh not found [11620 ms] [11621 ms] Exit code 1 [11621 ms] Start: Run in container: gpgconf --list-dir homedir [11626 ms] /root/.gnupg [11626 ms] [11626 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /tmp/vscode-remote-containers-c1303c71c48e4f23b79e2a62cf711b5601414e26.js $*; }; f' || true [11634 ms] [11634 ms] [11635 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [11664 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye [11845 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' 2>/dev/null || (umask 377 && echo '318e5574-c2d7-4eb3-8caa-301005273462' >'/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-140af630-7fb6-4fbc-b0fd-0a5ea0b2471a' && mv -n '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-140af630-7fb6-4fbc-b0fd-0a5ea0b2471a' '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b' && rm -f '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b-140af630-7fb6-4fbc-b0fd-0a5ea0b2471a' && cat '/root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b') [11851 ms] 5ca39484-14f4-45c1-bf01-f6463686213d [11851 ms] [11852 ms] Start: Starting VS Code Server [11852 ms] Start: Preparing Extensions [11852 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [11855 ms] [11856 ms] [11856 ms] Exit code 1 [11857 ms] Extensions cache, install extensions: None [11857 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true [11862 ms] dbaeumer.vscode-eslint-2.2.6 esbenp.prettier-vscode-9.9.0 [11862 ms] [11863 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [11876 ms] dbaeumer.vscode-eslint-2.2.6 esbenp.prettier-vscode-9.9.0 [11876 ms] [11876 ms] Extensions cache, link in container: None [11877 ms] Start: Run in Host: docker exec -i -u root -e SHELL=/bin/bash -e VSCODE_AGENT_FOLDER=/root/.vscode-server -w /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/bin/code-server --log debug --force-disable-user-env --server-data-dir /root/.vscode-server --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-6261075646f055b99068d3688932416f2346dd3b --extensions-download-dir /root/.vscode-server/extensionsCache --start-server [11952 ms] /root [11953 ms] [11954 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-c1303c71c48e4f23b79e2a62cf711b5601414e26.js' >/tmp/vscode-remote-containers-c1303c71c48e4f23b79e2a62cf711b5601414e26.js [11963 ms] [11963 ms] [11963 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-c1303c71c48e4f23b79e2a62cf711b5601414e26.js' >/tmp/vscode-remote-containers-server-c1303c71c48e4f23b79e2a62cf711b5601414e26.js_1668700695510 [11976 ms] [11976 ms] [12262 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [12446 ms] * * Visual Studio Code Server * * By using the software, you agree to * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement). * [12475 ms] Server bound to 127.0.0.1:33509 (IPv4) Extension host agent listening on 33509 [12475 ms] Start: Run in container: echo 33509 >'/root/.vscode-server/data/Machine/.devport-6261075646f055b99068d3688932416f2346dd3b' [12485 ms] [12485 ms] [12486 ms] Port forwarding for container port 33509 starts listening on local port. [12487 ms] Port forwarding local port 33509 to container port 33509 [12500 ms] Port forwarding connection from 51161 > 33509 > 33509 in the container. [12501 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=583a5598-a14f-46d9-a665-e5901f6e50241668700682725 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e [12505 ms] Start: Run in Host: /home/olinuc/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /home/olinuc/.vscode-remote-containers/dist/dev-containers-cli-0.262.3/dist/spec-node/devContainersSpecCLI.js run-user-commands --workspace-folder /home/olinuc/projects/vscode-devcontainer/ioBroker.test --id-label devcontainer.local_folder=/home/olinuc/projects/vscode-devcontainer/ioBroker.test --container-id e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd --log-level debug --log-format json --config /home/olinuc/projects/vscode-devcontainer/ioBroker.test/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-c1303c71c48e4f23b79e2a62cf711b5601414e26.sock --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-c1303c71c48e4f23b79e2a62cf711b5601414e26.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 151 --terminal-rows 20 [13353 ms] (node:32506) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [13354 ms] (Use `node --trace-deprecation ...` to show where the warning was created) [13055 ms] @devcontainers/cli 0.23.2. Node.js v16.14.2. linux 4.19.0-18-amd64 x64. [13055 ms] Start: Run: docker buildx version [13383 ms] [16:58:16] Extension host agent started. [13352 ms] github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a [13353 ms] [13369 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [13741 ms] Port forwarding 51161 > 33509 > 33509 stderr: Connection established [13779 ms] Port forwarding connection from 51162 > 33509 > 33509 in the container. [13779 ms] Start: Run in Host: docker exec -i -u root -e VSCODE_REMOTE_CONTAINERS_SESSION=583a5598-a14f-46d9-a665-e5901f6e50241668700682725 e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e [13502 ms] Start: Inspecting container [13503 ms] Start: Run: docker inspect --type container e75317cc41dbe53ec3141ede71fdf98ba44af2db00cac470b9173c54ea7b53fd [14080 ms] [16:58:17] ComputeTargetPlatform: linux-x64 [14128 ms] [16:58:17] [127.0.0.1][dfab1b32][ManagementConnection] New connection established. [13884 ms] Start: Run in container: /bin/sh [13897 ms] Start: Run in container: uname -m [14248 ms] Port forwarding 51162 > 33509 > 33509 stderr: Connection established [14248 ms] x86_64 [14249 ms] [14249 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [14569 ms] [16:58:17] [127.0.0.1][379c7db3][ExtensionHostConnection] New connection established. [14266 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [14267 ms] [14267 ms] Start: Run in container: cat /etc/passwd [14279 ms] userEnvProbe: loginInteractiveShell (default) [14281 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.onCreateCommandMarker' [14596 ms] [16:58:17] [127.0.0.1][379c7db3][ExtensionHostConnection] <568> Launched Extension Host Process. [14282 ms] userEnvProbe shell: /bin/bash [14283 ms] Start: Run in container: /bin/bash -lic echo -n 8fee32bcb795c4ffe9a36122e7eed4cd; cat /proc/self/environ; echo -n 8fee32bcb795c4ffe9a36122e7eed4cd [14327 ms] [14327 ms] [14327 ms] Exit code 1 [14328 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.updateContentCommandMarker' [14357 ms] [14357 ms] [14357 ms] Exit code 1 [14357 ms] Start: Run in container: mkdir -p '/root/.devcontainer' && CONTENT="$(cat '/root/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2022-11-17T15:54:38.662638173Z}" != '2022-11-17T15:54:38.662638173Z' ] && echo '2022-11-17T15:54:38.662638173Z' > '/root/.devcontainer/.postCreateCommandMarker' [14376 ms] [14376 ms] [14376 ms] Exit code 1 [14733 ms] Start: Run in container: # Test for /root/.gitconfig and git [14762 ms] [14762 ms] [14763 ms] Start: Run in container: # Copy /home/olinuc/.gitconfig to /root/.gitconfig [14801 ms] [14802 ms] [14813 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node /tmp/vscode-remote-containers-c1303c71c48e4f23b79e2a62cf711b5601414e26.js $*; }; f' || true [14837 ms] [14838 ms]
Das Terminal hat sich nicht mehr geschlossen und für die letzten Befehle scheint es kein Exit Code mehr zu geben.
Ob das richtig oder falsch ist kann ich nicht beurteilen.Als nächstes habe ich unter der IP-Adresse des Remote-Rechners versucht iobroker mit IP-Adresse:8082 aufzurufen.
Grundsätzlich lädt es auch etwas was nach einem Startbildschirm mit dem iobroker-Logo in der Mitte aussieht.
Allerdings geht es nicht mehr weiter.
Im Browserlog ist folgender Fehler zu finden, der sich alle 5 Sekunden wiederholtsocket.io.js:140 WebSocket connection to 'ws://192.168.1.61:8082/?sid=1668701081199&name=admin' failed: SocketClient.connect @ socket.io.js:140 (anonymous) @ socket.io.js:428 R1 @ helpers.ts:95 instrument.ts:123 [2022-11-17T16:04:43.782Z] ws connection error: CLOSE_ABNORMAL
- Durchlauf