blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.95k stars 1.73k forks source link

Local VSCode Dev Container Fails #4957

Closed mitchross closed 1 year ago

mitchross commented 1 year ago

Describe the problem you are having

Tying to load local VS code dev container to contribute to code base.

Following the contribution guide. Already ran make.

Version

Dev Branch Jan 7 2023

Frigate config file

NA

Relevant log output

2023-01-08T02:28:34.962Z] [+] Building 2.7s (9/9) FINISHED                                                
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 157B                                          0.0s
 => [internal] load build definition from Dockerfile-with-features         0.0s
 => => transferring dockerfile: 11.99kB                                    0.0s
 => resolve image config for docker.io/docker/dockerfile:1.2               0.6s
 => CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e  0.0s
 => => resolve docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2  0.0s
 => [internal] load build definition from Dockerfile-with-features         0.0s
[2023-01-08T02:28:34.963Z]  => [internal] load .dockerignore                                          0.0s
 => ERROR [internal] load metadata for docker.io/library/dev_container_fe  1.8s
 => CANCELED [internal] load metadata for docker.io/library/debian:11      1.8s
 => CANCELED [internal] load metadata for docker.io/library/debian:11-sli  1.8s
------
 > [internal] load metadata for docker.io/library/dev_container_feature_content_temp:latest:
------
failed to solve: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
[2023-01-08T02:28:34.975Z] Stop (3618 ms): Run: docker-compose --project-name frigate -f /Users/mitchross/Documents/Programming/frigate/docker-compose.yml -f /Users/mitchross/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1673144911356.yml build
[2023-01-08T02:28:34.976Z] Error: Command failed: docker-compose --project-name frigate -f /Users/mitchross/Documents/Programming/frigate/docker-compose.yml -f /Users/mitchross/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1673144911356.yml build
[2023-01-08T02:28:34.976Z]     at pF (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1850:431)
[2023-01-08T02:28:34.976Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-01-08T02:28:34.976Z]     at async foe (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1850:2457)
[2023-01-08T02:28:34.977Z]     at async loe (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1832:2396)
[2023-01-08T02:28:34.977Z]     at async Poe (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1899:2301)
[2023-01-08T02:28:34.978Z]     at async Zf (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:1899:3278)
[2023-01-08T02:28:34.978Z]     at async aue (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:2020:15276)
[2023-01-08T02:28:34.978Z]     at async oue (/Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js:2020:15030)
[2023-01-08T02:28:34.985Z] Stop (9418 ms): Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/mitchross/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --workspace-folder /Users/mitchross/Documents/Programming/frigate --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/mitchross/Documents/Programming/frigate --log-level debug --log-format json --config /Users/mitchross/Documents/Programming/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 true
[2023-01-08T02:28:34.986Z] Exit code 1
[2023-01-08T02:28:34.993Z] Command failed: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/mitchross/.vscode/extensions/ms-vscode-remote.remote-containers-0.266.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/mitchross/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --workspace-folder /Users/mitchross/Documents/Programming/frigate --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/mitchross/Documents/Programming/frigate --log-level debug --log-format json --config /Users/mitchross/Documents/Programming/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 true
[2023-01-08T02:28:34.993Z] Exit code 1

FFprobe output from your camera

NA

Frigate stats

BAS

Operating system

Other

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

NA

Any other information that may be helpful

Just Local Dev Container in Mac OS.

NickM-27 commented 1 year ago

Will the PR merge any time soon? if it merges today, I can wait to re-test

Hopefully today. To be aware once you merge the changes in you will need to rebuild the container so it uses the new Dockerfile

mitchross commented 1 year ago

This works now! Thanks!