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
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 wiederholt
@oliverio
nachdem ich das weiter untersucht habe, habe ich den fehler gefunden.
die nachrichten zwischen client und server werden über websockets übermittelt.
die anfragen zu websockets müssen allerdings speziell weitergeleitet werden.
dazu ist in der nginx configuration eine separate location angegeben, die auf den match /socket.io/ horcht.
problem ist, das die websockets anfragen nicht mit dieser url übermittelt werden.
durch folgende Anpassung werden nun die websockets ebenfalls korrekt vermittelt.
Da leider kein direkter Match auf /?sid möglich war, hier der Umweg über die auswertung der Argumente.
ich starte ein Projekt das mit einem aktuellen Template mit Dockerunterstützung gebaut wurde, z.B. https://github.com/UncleSamSwiss/ioBroker.loxone
oder auch andere.
Docker Desktop ist installiert. Dann mit Visual Studio Reopen in Container gewählt.
Nach dem Download des Images und Start des Containerts kommt immer diese Meldung:
[80537 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"
removed 42 packages in 777ms
26 packages are looking for funding
run `npm fund` for details
Objects database error: connect ECONNREFUSED 127.0.0.1:9001
Objects database error: connect ECONNREFUSED 127.0.0.1:9001
Objects database error: connect ECONNREFUSED 127.0.0.1:9001
Objects database error: connect ECONNREFUSED 127.0.0.1:9001
The host "iobroker-loxone" does not exist!
[129608 ms] postCreateCommand failed with exit code 30. Skipping any further user-provided commands.
Done. Press any key to close the terminal.
Das Problem mit dem Logo ist das was ich oben beschrieben habe und ist, wenn es sich als das selbe Problem rausstellt mit der Lösung behebbar, die ich geposted habe.
Dann noch eine Frage,
wie schaffe ich es ein Update vom der Konfigurationsseite in Docker Instanz laufen zu lassen?
mein adapter läuft aus /workspace heraus
in den Instanzen sehe ich ihn nicht
Installiere ich den Adapter über IOB Bordmittel kommt er nach /opt/iobroker/node_modules/iobroker.adapter/
Änerungen dort scheinen keine Auswirkung auf die Konfigurationsseite zu haben und mit
iobroker upload
komme ich auch nicht weiter.
Hallo,
bei mir startet ioBroker im devcontainer leider nicht.
Ich arbeite mit Win 11, neuestes Docker. Er erstellt auch den devcontainer und das ioBroker-Start-Script läuft erst mal an:
Dann bricht es jedoch hier ab:
Der Inhalt des Logs:
Habe es jetzt mehrfach probiert ohne Erfolg. Habe sowohl die .devcontainer-Dateien vom loxone-Adapter probiert, als auch mir neue mit dem adapter-creator erstellen lassen. Das Ergebnis ist immer gleich.
Habe dann auch mal direkt ioBroker im Docker von buanet installiert - das lief! Ist doch sehr komisch, oder?
@s-bormann startest du das alles schön aus vs code heraus? schon mal versucht alles material im docker desktop zu löschen?
Hallo, ja, ich starte alles aus VS Code heraus. Prinzipiell startet er dann ja auch alles, bricht aber eben an der oben gezeigten Stelle ab. Ich habe Docker komplett gelöscht und neu installiert, gleiches Problem.
Inzwischen habe ich herausgefunden, dass wenn ich von das DockerImage von latest auf 7.2.0 umstellen, der iobroker startet. Allerdings komme ich trotzdem nicht auf die Weboberfläche, das IO Logo erscheint, und dreht endlos.
Ich wäre wirklich dankbar für weitere Ideen, habe jetzt schon eineinhalb Tage fast nichts anderes gemacht - leider ohne Erfolg und etwas frustrierend…
@oliverio Hi, das hat sehr weiter geholfen! Vielen Dank!
Mit Deinen Änderungen und der Änderung im dockerfile Version 7.2.0 zu verwenden läuft es.
Damit ich den web-Adapter verwenden kann, hab ich zusätzlich den Port 8082 vom ioBroker freigegeben. Das klappt auch.
Aaber: der zu developende Adapter wird nicht installiert. Bei der Erstellung des Containers bricht der postCreateCommand vorzeitig mit Fehler 24 ab. Konnte den Adapter aber von Hand installieren, in dem ich die postCreateCommands nach und nach ins Terminal eingegeben habe.
Wenn ich allerdings etwas bearbeite (z.B. in der index_m.html), wird das nicht automatisch aktualisiert.
Außerdem kapiere ich nicht ganz, für was der nginx mit dem Proxy eigentlich gebraucht wird? Kann ich nicht direkt den Port 8081 von docker zugänglich machen (ports: 8081:8081) ?
@s-bormann
Die Ersteller haben den anderen Port gewählt weil sie davon ausgegangen sind das der standardport schon oft durch die Standardinstallation belegt ist
Die besondere Behandlung ist notwendig weil über den Port 2 Arten von Abfragen erfolgen bei der eine davon im Proxy besonders behandelt werden müssen (normale http get und websockets)
Bei den Fehlern von postCreateCommands hatte ich auch immer Schwierigkeiten. Ich glaube da gibt es eine zeitliche Abhängigkeit da wohl iobroker schon gestartet wird.
In vs Code kann man direkt die ganzen Meldungen verfolgen.
Mach zu den Fehlern und deinen Erkenntnissen am besten auf github bei create adapter einen usuell auf.