Docker开发环境启动失败
#1184
-
按照官方教程配置的环境,执行 错误日志
vscode ➜ /workspace (develop) $ bin/dev
08:15:54 web.1 | started with pid 993
08:15:54 job.1 | started with pid 994
08:15:54 js.1 | started with pid 995
08:15:54 css.1 | started with pid 996
08:15:54 js.1 | yarn run v1.22.19
08:15:54 css.1 | yarn run v1.22.19
08:15:54 css.1 | $ sass app/assets/stylesheets/application.sass.scss:app/assets/builds/application.css --no-source-map --load-path=node_modules --watch
08:15:54 js.1 | $ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=assets --watch
08:15:54 js.1 | /bin/sh: 1: esbuild: not found
08:15:54 css.1 | /bin/sh: 1: sass: not found
08:15:54 css.1 | error Command failed with exit code 127.
08:15:54 css.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
08:15:54 js.1 | error Command failed with exit code 127.
08:15:54 js.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
08:15:55 js.1 | exited with code 127
08:15:55 system | sending SIGTERM to all processes
08:15:55 css.1 | exited with code 127
08:15:55 web.1 | [WARNING] Could not load command "rails/commands/server/server_command". Error: SIGTERM.
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache/iseq.rb:66:in `fetch'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache/iseq.rb:85:in `load_iseq'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/tzinfo-2.0.6/lib/tzinfo.rb:42:in `require_relative'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/tzinfo-2.0.6/lib/tzinfo.rb:42:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/values/time_zone.rb:3:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/core_ext/time/conversions.rb:5:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/core_ext/object/json.rb:14:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/core_ext/object.rb:13:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/configuration.rb:4:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/railtie/configuration.rb:3:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/railtie.rb:264:in `config'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/railtie.rb:146:in `config'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/i18n_railtie.rb:10:in `<class:Railtie>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/i18n_railtie.rb:9:in `<module:I18n>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/i18n_railtie.rb:8:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/railtie.rb:4:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails.rb:16:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/commands/server/server_command.rb:5:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/behavior.rb:44:in `block (2 levels) in lookup'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/behavior.rb:40:in `each'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/behavior.rb:40:in `block in lookup'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/behavior.rb:39:in `each'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command/behavior.rb:39:in `lookup'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command.rb:73:in `find_by_namespace'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/command.rb:46:in `invoke'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.4.3/lib/rails/commands.rb:18:in `<main>'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | /home/vscode/.asdf/installs/ruby/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
08:15:55 web.1 | bin/rails:4:in `<main>'
08:15:55 web.1 | 3000
08:15:55 web.1 | exited with code 0
08:15:55 job.1 | terminated by SIGTERM |
Beta Was this translation helpful? Give feedback.
Answered by
icyleaf
Jul 21, 2023
Replies: 2 comments 9 replies
-
收到,等我有空看一下 |
Beta Was this translation helpful? Give feedback.
6 replies
-
还是不行,容器好像启动成功了 容器启动日志
[111 ms] Dev Containers 0.299.0 in VS Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771).
[110 ms] Start: 正在解析远程
[381 ms] Setting up container for folder or workspace: /Users/mlch911/Documents/Programming/Ruby/zealot
[383 ms] Start: Check Docker is running
[383 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[629 ms] Server API version: 1.41
[630 ms] Start: Run: docker volume ls -q
[867 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/mlch911/Documents/Programming/Ruby/zealot --filter label=vsch.quality=stable
[1106 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --filter label=devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json
[1295 ms] Start: Run: docker inspect --type container f66979d78c1a
[1508 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot
[1686 ms] Start: Run: docker inspect --type container f66979d78c1a
[1896 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/mlch911/.vscode/extensions/ms-vscode-remote.remote-containers-0.299.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2357 ms] @devcontainers/cli 0.46.0. Node.js v16.17.1. darwin 21.6.0 x64.
[2357 ms] Start: Run: docker ps -q -a --filter label=devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --filter label=devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json
[2592 ms] Start: Run: docker inspect --type container f66979d78c1a
[3134 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/mlch911/.vscode/extensions/ms-vscode-remote.remote-containers-0.299.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465 --workspace-folder /Users/mlch911/Documents/Programming/Ruby/zealot --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/mlch911/Documents/Programming/Ruby/zealot/.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 --terminal-columns 194 --terminal-rows 25
[3681 ms] @devcontainers/cli 0.46.0. Node.js v16.17.1. darwin 21.6.0 x64.
[3681 ms] Start: Run: docker buildx version
[3987 ms] github.com/docker/buildx v0.9.1 ed00243a0ce2a0aee75311b06e32d33b44729689
[3987 ms]
[3987 ms] Start: Resolving Remote
[4272 ms] Start: Run: docker-compose version --short
[4514 ms] Docker Compose version: 2.13.0
[4515 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=zealot_devcontainer --filter label=com.docker.compose.service=app
[4699 ms] Start: Run: docker inspect --type container f66979d78c1a
[4918 ms] Start: Run: docker-compose -f /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/docker-compose.yml --profile * config
[5195 ms] name: devcontainer
services:
app:
build:
context: /Users/mlch911/Documents/Programming/Ruby/zealot
dockerfile: .devcontainer/Dockerfile
command:
- /bin/sh
- -c
- while sleep 1000; do :; done
network_mode: service:db
volumes:
- type: bind
source: /Users/mlch911/Documents/Programming/Ruby/zealot
target: /workspace
bind:
create_host_path: true
db:
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
image: postgres:11-alpine
networks:
default: null
restart: unless-stopped
volumes:
- type: volume
source: postgres-data
target: /var/lib/postgresql/data
volume: {}
- type: bind
source: /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/create-db-user.sql
target: /docker-entrypoint-initdb.d/create-db-user.sql
bind:
create_host_path: true
pgweb:
environment:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/zealot_development
image: sosedoff/pgweb
network_mode: service:db
restart: unless-stopped
redis:
image: redis:7-alpine
network_mode: service:db
restart: unless-stopped
volumes:
- type: volume
source: redis-data
target: /data
volume: {}
networks:
default:
name: devcontainer_default
volumes:
postgres-data:
name: devcontainer_postgres-data
redis-data:
name: devcontainer_redis-data
[5198 ms] Start: Run: docker events --format {{json .}} --filter event=start
[5218 ms] PersistedPath=/Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data, ContainerHasLabels=true
[5218 ms] Container was created with these config files: /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/docker-compose.yml,/Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1689823160000.yml,/Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1689823160463.yml
[5218 ms] Restoring /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1689823160000.yml from persisted storage
[5218 ms] Restoring /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1689823160463.yml from persisted storage
[5219 ms] Start: Run: docker-compose --project-name zealot_devcontainer -f /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/docker-compose.yml -f /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1689823160000.yml -f /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1689823160463.yml up -d --no-recreate
[+] Running 4/4
⠿ Container zealot_devcontainer-db-1 Started 3.5s
⠿ Container zealot_devcontainer-redis-1 Started 3.8s
⠿ Container zealot_devcontainer-pgweb-1 Started 3.8s
⠿ Container zealot_devcontainer-app-1 Started 3.8s
[9938 ms] Start: Run: docker ps -q -a --filter label=com.docker.compose.project=zealot_devcontainer --filter label=com.docker.compose.service=app
[10013 ms] Start: Run: docker inspect --type container f66979d78c1a
[10104 ms] Start: Inspecting container
[10104 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[10176 ms] Start: Run in container: /bin/sh
[10178 ms] Start: Run in container: uname -m
[10308 ms] x86_64
[10308 ms]
[10308 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[10311 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/"
[10311 ms]
[10311 ms] Start: Run in container: cat /etc/passwd
[10315 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[10318 ms]
[10318 ms]
[10318 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[10325 ms]
[10325 ms]
[10337 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[10415 ms] Start: Run: docker exec -i -u root f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465 ; /bin/sh
[10425 ms] Start: Run: docker-compose version --short
[10558 ms] New container started. Keep-alive process started.
[10564 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/mlch911/.vscode/extensions/ms-vscode-remote.remote-containers-0.299.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --container-id f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf --log-level debug --log-format json --config /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --include-merged-configuration --mount-workspace-git-root true
[10777 ms] @devcontainers/cli 0.46.0. Node.js v16.17.1. darwin 21.6.0 x64.
[10776 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[10854 ms] Start: Inspecting container
[10855 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[10930 ms] Start: Run in container: /bin/sh
[10933 ms] Start: Run in container: uname -m
[11169 ms] x86_64
[11169 ms]
[11169 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[11171 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/"
[11171 ms]
[11172 ms] Start: Run in container: cat /etc/passwd
[11174 ms] Start: Setup shutdown monitor
[11175 ms] Forking shutdown monitor: /Users/mlch911/.vscode/extensions/ms-vscode-remote.remote-containers-0.299.0/dist/shutdown/shutdownMonitorProcess /var/folders/jn/c2f4hk111yz9qgb8cwn999fw0000gn/T/vscode-remote-containers-7fa171ea-9735-4dce-b00c-24c98538f471.sock dockerCompose Debug /Users/mlch911/Library/Application Support/Code/logs/20230719T173854/window12/exthost/ms-vscode-remote.remote-containers 1689835311721
[11177 ms] Start: Run in container: test -d /home/vscode/.vscode-server
[11181 ms]
[11181 ms]
[11181 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[11183 ms]
[11183 ms]
[11183 ms] Exit code 1
[11183 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json
[11185 ms] {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh",
"icon": "star"
}
},
"remote.portsAttributes": {
"3000": {
"label": "Rails server (puma)"
},
"5432": {
"label": "Postgres server"
},
"6379": {
"label": "Redis server"
},
"8081": {
"label": "pgweb server"
},
"9293": {
"label": "Puma control-server"
}
}
}
[11185 ms]
[11185 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771
[11187 ms]
[11187 ms]
[11187 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/74f6148eb9ea00507ec113ec51c489d6ffb4b771
[11188 ms]
[11189 ms]
[11189 ms] Start: Run in container: /bin/sh
[11190 ms] Start: Launching Dev Containers helper.
[11190 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-70fa8b9a-e585-43f3-85f4-0c8f7948207b.sock) forwarded to local host (/private/tmp/com.apple.launchd.br3JQppRgD/Listeners).
[11191 ms] X11 forwarding: DISPLAY not set on local host.
[11191 ms] Start: Run in container: gpgconf --list-dir agent-socket
[11191 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/74f6148eb9ea00507ec113ec51c489d6ffb4b771'
[11194 ms] /home/vscode/.gnupg/S.gpg-agent
[11194 ms]
[11194 ms] Start: Run in container: gpgconf --list-dir homedir
[11196 ms] /home/vscode/.gnupg
[11196 ms]
[11196 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null
[11200 ms]
[11200 ms]
[11200 ms] Exit code 2
[11201 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[11215 ms] /Users/mlch911/.gnupg/S.gpg-agent.extra
[11215 ms]
[11215 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg'
[11216 ms] gpg-agent: Socket in container (/home/vscode/.gnupg/S.gpg-agent) forwarded to local host (/Users/mlch911/.gnupg/S.gpg-agent.extra).
[11220 ms]
[11220 ms]
[11220 ms] Start: Run in container: command -v docker >/dev/null 2>&1
[11220 ms] Start: Run: gpgconf --list-dir homedir
[11223 ms]
[11223 ms]
[11223 ms] Exit code 127
[11223 ms] Start: Run in container: /bin/sh
[11225 ms] userEnvProbe: loginInteractiveShell (default)
[11225 ms] Start: Run in container: test -f '/tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465/env-loginInteractiveShell.json'
[11226 ms] Start: Run in container: echo ~
[11227 ms]
[11227 ms]
[11227 ms] Exit code 1
[11228 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh
[11228 ms] userEnvProbe: not found in cache
[11228 ms] userEnvProbe shell: /bin/bash
[11229 ms] /home/vscode/.ssh/known_hosts exists
[11229 ms]
[11229 ms] Exit code 1
[11232 ms] /Users/mlch911/.gnupg
[11232 ms]
[11233 ms] Start: Run in container: gpgconf --list-dir homedir
[11236 ms] /home/vscode/.gnupg
[11237 ms]
[11237 ms] Start: Run in container: # Test for /home/vscode/.gnupg/pubring.kbx and gpg
[11239 ms] /home/vscode/.gnupg/pubring.kbx exists
[11239 ms]
[11239 ms] Exit code 1
[11241 ms] Start: Run in container: # Test for /home/vscode/.gnupg/trustdb.gpg and gpg
[11242 ms] /home/vscode/.gnupg/trustdb.gpg exists
[11242 ms]
[11243 ms] Exit code 1
[11243 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[11471 ms]
[11473 ms]
[11473 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node /tmp/vscode-remote-containers-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js git-credential-helper $*; }; f' || true
[11590 ms]
[11590 ms]
[11591 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd || echo ; readlink /proc/$pid/ns/mnt || echo ; cat /proc/$pid/stat | tr "
[11713 ms] Start: Run in container: cat '/home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/product.json'
[11719 ms] Start: Run in container: cat '/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771' 2>/dev/null || (umask 377 && echo '779535e1-00d8-486b-a72a-cbe65a013d60' >'/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771-f0b77cc8-68e6-4513-a5f2-b043288291e3' && mv -n '/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771-f0b77cc8-68e6-4513-a5f2-b043288291e3' '/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771' && rm -f '/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771-f0b77cc8-68e6-4513-a5f2-b043288291e3' && cat '/home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771')
[11722 ms] feeb8ab6-d09f-4361-9fa7-76ce3be9579d
[11722 ms]
[11723 ms] Start: Starting VS Code Server
[11723 ms] Start: Preparing Extensions
[11723 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[11725 ms]
[11726 ms]
[11726 ms] Exit code 1
[11728 ms] Extensions cache, install extensions: None
[11728 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true
[11733 ms] /home/vscode
[11733 ms]
[11733 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js' >/tmp/vscode-remote-containers-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js
[11734 ms] bung87.vscode-gemfile-0.4.2
editorconfig.editorconfig-0.16.4
koichisasada.vscode-rdbg-0.2.1
ms-ceintl.vscode-language-pack-zh-hans-1.80.2023071209
shopify.ruby-lsp-0.3.7
sianglim.slim-0.1.2
[11734 ms]
[11734 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[11737 ms]
[11737 ms]
[11737 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js' >/tmp/vscode-remote-containers-server-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js_1689835323458
[11737 ms] bung87.vscode-gemfile-0.4.2
editorconfig.editorconfig-0.16.4
koichisasada.vscode-rdbg-0.2.1
ms-ceintl.vscode-language-pack-zh-hans-1.80.2023071209
shopify.ruby-lsp-0.3.7
sianglim.slim-0.1.2
[11738 ms]
[11738 ms] Extensions cache, link in container: None
[11738 ms] Optimizing extensions for quality: stable
[11739 ms] Start: Run in container: /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/bin/code-server --log debug --force-disable-user-env --server-data-dir /home/vscode/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /home/vscode/.vscode-server/data/Machine/.connection-token-74f6148eb9ea00507ec113ec51c489d6ffb4b771 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server --disable-websocket-compression
[11759 ms]
[11760 ms]
[11828 ms] userEnvProbe PATHs:
Probe: '/home/vscode/.asdf/bin:/home/vscode/.asdf/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin'
Container: '/home/vscode/.asdf/bin:/home/vscode/.asdf/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[11828 ms] Start: Run in container: mkdir -p '/tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465' && cat > '/tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465/env-loginInteractiveShell.json' << 'envJSON'
[11841 ms]
[11841 ms]
[11887 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).
*
[11897 ms] Server bound to 127.0.0.1:35605 (IPv4)
Extension host agent listening on 35605
[11897 ms] Start: Run in container: echo 35605 >'/home/vscode/.vscode-server/data/Machine/.devport-74f6148eb9ea00507ec113ec51c489d6ffb4b771'
[11904 ms]
[11904 ms]
[11904 ms] Port forwarding for container port 35605 starts listening on local port.
[11905 ms] Port forwarding local port 35605 to container port 35605
[11905 ms] Start: Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/mlch911/.vscode/extensions/ms-vscode-remote.remote-containers-0.299.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --user-data-folder /Users/mlch911/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465 --workspace-folder /Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.local_folder=/Users/mlch911/Documents/Programming/Ruby/zealot --id-label devcontainer.config_file=/Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --container-id f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf --log-level debug --log-format json --config /Users/mlch911/Documents/Programming/Ruby/zealot/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands false --prebuild false --stop-for-personalization true --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-70fa8b9a-e585-43f3-85f4-0c8f7948207b.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-70fa8b9a-e585-43f3-85f4-0c8f7948207b.sock --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root true --terminal-columns 194 --terminal-rows 25 --dotfiles-target-path ~/dotfiles
[11915 ms] Port forwarding connection from 51458 > 35605 > 35605 in the container.
[11916 ms] Start: Run in container: /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node -e
[12005 ms] [06:42:03]
[12032 ms] [06:42:03] Extension host agent started.
[12064 ms] [06:42:03] No uninstalled extensions found.
[12192 ms] @devcontainers/cli 0.46.0. Node.js v16.17.1. darwin 21.6.0 x64.
[12192 ms] Start: Run: docker buildx version
[12216 ms] Port forwarding 51458 > 35605 > 35605 stderr: Connection established
[12390 ms] github.com/docker/buildx v0.9.1 ed00243a0ce2a0aee75311b06e32d33b44729689
[12390 ms]
[12393 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[12460 ms] Start: Inspecting container
[12460 ms] Start: Run: docker inspect --type container f66979d78c1a5c4c05c2a185f797c8442740ae63383caceb974b11d15ffd34cf
[12536 ms] Start: Run in container: /bin/sh
[12538 ms] Start: Run in container: uname -m
[12639 ms] x86_64
[12639 ms]
[12639 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[12641 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/"
[12642 ms]
[12642 ms] Start: Run in container: cat /etc/passwd
[12644 ms] userEnvProbe: loginInteractiveShell (default)
[12644 ms] Start: Run in container: test -f '/tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465/env-loginInteractiveShell.json'
[12646 ms]
[12646 ms]
[12646 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.onCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-07-20T03:19:20.649711109Z}" != '2023-07-20T03:19:20.649711109Z' ] && echo '2023-07-20T03:19:20.649711109Z' > '/home/vscode/.devcontainer/.onCreateCommandMarker'
[12650 ms]
[12650 ms]
[12650 ms] Exit code 1
[12650 ms] Start: Run in container: cat '/tmp/devcontainers-ecf86449-3d3e-4f1d-ab35-d2a29ff0bb051689835310465/env-loginInteractiveShell.json'
[12653 ms] {
"RUBY_YJIT_ENABLE": "true",
"HOSTNAME": "ccb6310e5bf4",
"REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-70fa8b9a-e585-43f3-85f4-0c8f7948207b.sock",
"HOME": "/home/vscode",
"LS_COLORS": "",
"ZEALOT_PATH": "/workspace",
"ASDF_DIR": "/home/vscode/.asdf",
"REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-70fa8b9a-e585-43f3-85f4-0c8f7948207b.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]",
"USER": "vscode",
"SHLVL": "1",
"PROMPT_DIRTRIM": "4",
"PATH": "/home/vscode/.asdf/bin:/home/vscode/.asdf/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin",
"OLDPWD": "/home/vscode/.asdf",
"_": "/bin/cat"
}
[12653 ms]
[12653 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.updateContentCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-07-20T03:19:20.649711109Z}" != '2023-07-20T03:19:20.649711109Z' ] && echo '2023-07-20T03:19:20.649711109Z' > '/home/vscode/.devcontainer/.updateContentCommandMarker'
[12656 ms]
[12656 ms]
[12656 ms] Exit code 1
[12656 ms] Start: Run in container: mkdir -p '/home/vscode/.devcontainer' && CONTENT="$(cat '/home/vscode/.devcontainer/.postCreateCommandMarker' 2>/dev/null || echo ENOENT)" && [ "${CONTENT:-2023-07-20T03:19:20.649711109Z}" != '2023-07-20T03:19:20.649711109Z' ] && echo '2023-07-20T03:19:20.649711109Z' > '/home/vscode/.devcontainer/.postCreateCommandMarker'
[12660 ms]
[12660 ms]
[12660 ms] Exit code 1
[12673 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git
[12674 ms] /home/vscode/.gitconfig exists
[12674 ms]
[12674 ms] Exit code 1
[12675 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node /tmp/vscode-remote-containers-70fa8b9a-e585-43f3-85f4-0c8f7948207b.js git-credential-helper $*; }; f' || true
[12681 ms]
[12682 ms]
[12731 ms] [06:42:04] [127.0.0.1][32ae0cd4][ManagementConnection] New connection established.
[12731 ms] Port forwarding connection from 51482 > 35605 > 35605 in the container.
[12731 ms] Start: Run in container: /home/vscode/.vscode-server/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node -e
[12746 ms] [06:42:04] Log level changed to info
[12907 ms] Port forwarding 51482 > 35605 > 35605 stderr: Connection established
[13028 ms] [06:42:04] [127.0.0.1][c88892b6][ExtensionHostConnection] New connection established.
[13040 ms] [06:42:04] [127.0.0.1][c88892b6][ExtensionHostConnection] <288> Launched Extension Host Process.
[513322 ms] Start: Run in container: cat /proc/1910/environ 但执行 `bin/dev`日志
vscode ➜ /workspace (develop) $ bin/dev
06:50:27 web.1 | started with pid 2165
06:50:27 job.1 | started with pid 2166
06:50:27 js.1 | started with pid 2167
06:50:27 css.1 | started with pid 2168
06:50:27 css.1 | yarn run v1.22.19
06:50:27 js.1 | yarn run v1.22.19
06:50:27 css.1 | $ sass app/assets/stylesheets/application.sass.scss:app/assets/builds/application.css --no-source-map --load-path=node_modules --watch
06:50:27 js.1 | $ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=assets --watch
06:50:27 css.1 | /bin/sh: 1: sass: not found
06:50:27 js.1 | /bin/sh: 1: esbuild: not found
06:50:28 js.1 | error Command failed with exit code 127.
06:50:28 js.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
06:50:28 css.1 | error Command failed with exit code 127.
06:50:28 css.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
06:50:28 js.1 | exited with code 127
06:50:28 system | sending SIGTERM to all processes
06:50:28 css.1 | exited with code 127
06:50:29 web.1 | terminated by SIGTERM
06:50:29 job.1 | terminated by SIGTERM
vscode ➜ /workspace $ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
手动执行下 yarn install 呢