[Bug]: Error while spinning dev container. #15194
-
Checklist
Describe the problem you are havingI'm following frigate guides to run frigate locally in my local machine for making some changes in codebase. I'm currently in When I open vscode and I try to run firgate in dev container I get the following error:
I'm running this in a macbook pro with an M1 pro and 16GB Ram. Os version is Mac OS Sanoma 14.3.1. Steps to reproduce
VersionIn which browser(s) are you experiencing the issue with?No response Frigate config filemqtt:
host: mqtt
cameras:
terraza:
enabled: true
ffmpeg:
inputs:
- path:
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
- path:
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
detect:
enabled: true
width: 640
height: 480 docker-compose file or Docker CLI commandversion: "3"
services:
devcontainer:
container_name: frigate-devcontainer
# add groups from host for render, plugdev, video
group_add:
- "109" # render
- "110" # render
- "44" # video
- "46" # plugdev
shm_size: "256mb"
build:
context: .
dockerfile: docker/main/Dockerfile
# Use target devcontainer-trt for TensorRT dev
target: devcontainer
## Uncomment this block for nvidia gpu support
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
environment:
YOLO_MODELS: yolov7-320
devices:
- /dev/bus/usb:/dev/bus/usb
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
volumes:
- .:/workspace/frigate:cached
- ./web/dist:/opt/frigate/web:cached
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./debug:/media/frigate
- /dev/bus/usb:/dev/bus/usb
mqtt:
container_name: mqtt
image: eclipse-mosquitto:1.6
ports:
- "1883:1883" Relevant Frigate log output+] Building 5.0s (57/66) docker:desktop-linux
=> [devcontainer internal] load build definition from Dockerfile-with-fe 0.0s
=> => transferring dockerfile: 13.35kB 0.0s
=> [devcontainer] resolve image config for docker-image://docker.io/dock 1.1s
=> CACHED [devcontainer] docker-image://docker.io/docker/dockerfile:1.6@ 0.0s
=> => resolve docker.io/docker/dockerfile:1.6@sha256:ac85f380a63b13dfcef 0.0s
=> [devcontainer internal] load metadata for docker.io/library/debian:11 0.0s
=> [devcontainer internal] load metadata for docker.io/library/debian:11 1.0s
=> [devcontainer context dev_containers_feature_content_source] load .do 0.0s
=> => transferring dev_containers_feature_content_source: 2B 0.0s
=> [devcontainer internal] load .dockerignore 0.0s
=> => transferring context: 157B 0.0s
=> [devcontainer base_host 1/1] FROM docker.io/library/debian:11@sha256: 0.1s
=> => resolve docker.io/library/debian:11@sha256:01559430c84e6bc864bed55 0.0s
=> [devcontainer slim-base 1/1] FROM docker.io/library/debian:11-slim@sh 0.1s
=> => resolve docker.io/library/debian:11-slim@sha256:60a596681410bd31a4 0.0s
=> [devcontainer go2rtc 1/2] WORKDIR /rootfs/usr/local/go2rtc/bin 0.0s
=> [devcontainer context dev_containers_feature_content_source] load fro 0.0s
=> => transferring dev_containers_feature_content_source: 42.92kB 0.0s
=> [devcontainer] https://github.com/AlexxIT/go2rtc/releases/download/v1 1.0s
=> [devcontainer internal] load build context 0.0s
=> => transferring context: 36.39kB 0.0s
=> CACHED [devcontainer deps 1/4] RUN --mount=type=bind,source=docker/ma 0.0s
=> CACHED [devcontainer wheels 1/7] RUN apt-get -qq update && apt-ge 0.0s
=> CACHED [devcontainer wheels 2/7] RUN update-alternatives --install /u 0.0s
=> CACHED [devcontainer wheels 3/7] RUN wget -q https://bootstrap.pypa.i 0.0s
=> CACHED [devcontainer wheels 4/7] COPY docker/main/requirements.txt /r 0.0s
=> CACHED [devcontainer wheels 5/7] RUN pip3 install -r /requirements.tx 0.0s
=> CACHED [devcontainer wheels 6/7] COPY docker/main/requirements-wheels 0.0s
=> CACHED [devcontainer wheels 7/7] RUN pip3 wheel --wheel-dir=/wheels - 0.0s
=> CACHED [devcontainer deps 2/4] RUN --mount=type=bind,from=wheels,sour 0.0s
=> CACHED [devcontainer nginx 1/1] RUN --mount=type=tmpfs,target=/tmp -- 0.0s
=> CACHED [devcontainer deps-rootfs 1/7] COPY --from=nginx /usr/local/ng 0.0s
=> CACHED [devcontainer go2rtc 2/2] ADD --link --chmod=755 https://githu 0.0s
=> CACHED [devcontainer deps-rootfs 2/7] COPY --from=go2rtc /rootfs/ / 0.0s
=> CACHED [devcontainer wget 1/2] RUN apt-get update && apt-get inst 0.0s
=> CACHED [devcontainer wget 2/2] WORKDIR /rootfs 0.0s
=> CACHED [devcontainer libusb-build 1/6] WORKDIR /opt 0.0s
=> CACHED [devcontainer libusb-build 2/6] RUN apt-get update && apt-get 0.0s
=> CACHED [devcontainer libusb-build 3/6] RUN --mount=type=cache,target= 0.0s
=> CACHED [devcontainer libusb-build 4/6] RUN apt-get update && apt- 0.0s
=> CACHED [devcontainer libusb-build 5/6] WORKDIR /opt/libusb-1.0.26/lib 0.0s
=> CACHED [devcontainer libusb-build 6/6] RUN /bin/mkdir -p '/usr/local/ 0.0s
=> CACHED [devcontainer deps-rootfs 3/7] COPY --from=libusb-build /usr/l 0.0s
=> CACHED [devcontainer tempio 1/1] RUN --mount=type=bind,source=docker/ 0.0s
=> CACHED [devcontainer deps-rootfs 4/7] COPY --from=tempio /rootfs/ / 0.0s
=> CACHED [devcontainer s6-overlay 1/1] RUN --mount=type=bind,source=doc 0.0s
=> CACHED [devcontainer deps-rootfs 5/7] COPY --from=s6-overlay /rootfs/ 0.0s
=> CACHED [devcontainer models 1/8] RUN wget -qO edgetpu_model.tflite ht 0.0s
=> CACHED [devcontainer models 2/8] RUN wget -qO cpu_model.tflite https: 0.0s
=> CACHED [devcontainer models 3/8] COPY labelmap.txt . 0.0s
=> CACHED [devcontainer ov-converter 1/3] COPY docker/main/requirements- 0.0s
=> CACHED [devcontainer ov-converter 2/3] RUN apt-get -qq update && 0.0s
=> CACHED [devcontainer ov-converter 3/3] RUN --mount=type=bind,source=d 0.0s
=> CACHED [devcontainer models 4/8] COPY --from=ov-converter /models/ssd 0.0s
=> CACHED [devcontainer models 5/8] COPY --from=ov-converter /models/ssd 0.0s
=> CACHED [devcontainer models 6/8] RUN wget -q https://github.com/openv 0.0s
=> CACHED [devcontainer models 7/8] RUN wget -qO - https://www.kaggle.co 0.0s
=> CACHED [devcontainer models 8/8] COPY audio-labelmap.txt . 0.0s
=> CACHED [devcontainer deps-rootfs 6/7] COPY --from=models /rootfs/ / 0.0s
=> CACHED [devcontainer deps-rootfs 7/7] COPY docker/main/rootfs/ / 0.0s
=> CACHED [devcontainer deps 3/4] COPY --from=deps-rootfs / / 0.0s
=> CACHED [devcontainer deps 4/4] RUN ldconfig 0.0s
=> CACHED [devcontainer devcontainer 1/6] COPY docker/main/fake_frigate_ 0.0s
=> CACHED [devcontainer devcontainer 2/6] RUN mkdir -p /opt/frigate 0.0s
=> ERROR [devcontainer devcontainer 3/6] RUN curl -SLO https://deb.nodes 1.7s
------
> [devcontainer devcontainer 3/6] RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh && chmod 500 nsolid_setup_deb.sh && ./nsolid_setup_deb.sh 20 && apt-get install nodejs -y && rm -rf /var/lib/apt/lists/* && npm install -g npm@10:
0.185 % Total % Received % Xferd Average Speed Time Time Time Current
0.185 Dload Upload Total Spent Left Speed
100 3356 100 3356 0 0 10422 0 --:--:-- --:--:-- --:--:-- 10422
0.518
0.518 -------------------------------------------
0.518 Info: Configuring repository for N|solid 20
0.518 -------------------------------------------
0.518
0.520
0.520 -------------------------------
0.520 Info: Installing pre-requisites
0.520 -------------------------------
0.520
0.589 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
0.610 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]
0.616 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
0.640 Err:1 http://deb.debian.org/debian bullseye InRelease
0.640 At least one invalid signature was encountered.
0.666 Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
0.666 At least one invalid signature was encountered.
0.691 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
0.691 At least one invalid signature was encountered.
1.612 Get:4 https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease [1423 B]
1.655 Err:4 https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease
1.655 At least one invalid signature was encountered.
1.659 Reading package lists...
1.674 W: GPG error: http://deb.debian.org/debian bullseye InRelease: At least one invalid signature was encountered.
1.674 E: The repository 'http://deb.debian.org/debian bullseye InRelease' is not signed.
1.674 W: GPG error: http://deb.debian.org/debian-security bullseye-security InRelease: At least one invalid signature was encountered.
1.674 E: The repository 'http://deb.debian.org/debian-security bullseye-security InRelease' is not signed.
1.674 W: GPG error: http://deb.debian.org/debian bullseye-updates InRelease: At least one invalid signature was encountered.
1.674 E: The repository 'http://deb.debian.org/debian bullseye-updates InRelease' is not signed.
1.674 W: GPG error: https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease: At least one invalid signature was encountered.
1.674 E: The repository 'https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease' is not signed.
1.675
1.675 ----------------------------------------------------
1.675 Error: Failed to run 'apt-get update' (Exit Code: 0)
1.675 ----------------------------------------------------
1.675
1.679 Reading package lists...
1.685 Building dependency tree...
1.685 Reading state information...
1.687 E: Unable to locate package nodejs
------
failed to solve: process "/bin/sh -c curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh && chmod 500 nsolid_setup_deb.sh && ./nsolid_setup_deb.sh 20 && apt-get install nodejs -y && rm -rf /var/lib/apt/lists/* && npm install -g npm@10" did not complete successfully: exit code: 100
[8420 ms] Error: Command failed: docker compose --project-name frigate -f /Users/adrianlocurcio/projects/frigate/docker-compose.yml -f /Users/adrianlocurcio/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1732589971730.yml build
[8421 ms] at Pm (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:430:525)
[8421 ms] at async ftA (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:430:2476)
[8421 ms] at async htA (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:410:3496)
[8421 ms] at async TtA (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:482:4021)
[8421 ms] at async iB (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:482:4963)
[8421 ms] at async wrA (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:663:203)
[8421 ms] at async DrA (/Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:662:14830)
[8421 ms] at async /Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js:482:1190
[8424 ms] Exit code 1
[8427 ms] Command failed: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/adrianlocurcio/.vscode/extensions/ms-vscode-remote.remote-containers-0.388.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/adrianlocurcio/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-1bf81a8a-e3b8-4e60-be7b-6a88fa1a1dd21732589968058 --workspace-folder /Users/adrianlocurcio/projects/frigate --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=/Users/adrianlocurcio/projects/frigate --id-label devcontainer.config_file=/Users/adrianlocurcio/projects/frigate/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/adrianlocurcio/projects/frigate/.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 --include-configuration --include-merged-configuration
[8427 ms] Exit code 1
Operating systemOther Install methodDocker Compose Network connectionWired Camera make and modelScreenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This seems like it may have just been an outage somewhere. I'm not seeing this on my MacBook |
Beta Was this translation helpful? Give feedback.
-
@NickM-27 thanks, probably it was that. It is working now, anyways I'm seeing other errors with nginx Do you know what could it be by chance ? I don't see anything helpful related this in the docs These are my logs:
|
Beta Was this translation helpful? Give feedback.
Have you started frigate?