ssh in deploy.yml #1329
Unanswered
Russell108
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ok now I can login with ssh but I get the following error
failed to solve: docker.io/library/ruby:3.4.0.dev-slim: docker.io/library/ruby:3.4.0.dev-slim: not found
INFO [61c984ef] Finished in 0.886 seconds with exit status 0 (successful).
Build and push app image...
INFO [257488b2] Running docker --version && docker buildx version as russellroberts@localhost
DEBUG [257488b2] Command: docker --version && docker buildx version
DEBUG [257488b2] Docker version 27.2.0, build 3ab4256
DEBUG [257488b2] github.com/docker/buildx v0.16.2-desktop.1 081c21b9e461293ae243a1ff813a680a4f5f8fb9
INFO [257488b2] Finished in 0.075 seconds with exit status 0 (successful).
Building from a local git clone, so ignoring these uncommitted changes:
M config/deploy.yml
INFO Cloning repo into build directory
/var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/
...INFO [bbee4664] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959 clone /Users/russellroberts/Sites/rails8 --recurse-submodules as russellroberts@localhost
DEBUG [bbee4664] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959 clone /Users/russellroberts/Sites/rails8 --recurse-submodules
DEBUG [bbee4664] fatal: destination path 'rails8' already exists and is not an empty directory.
INFO Resetting local clone as
/var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/
already exists...INFO [f6840e88] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ remote set-url origin /Users/russellroberts/Sites/rails8 as russellroberts@localhost
DEBUG [f6840e88] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ remote set-url origin /Users/russellroberts/Sites/rails8
INFO [f6840e88] Finished in 0.007 seconds with exit status 0 (successful).
INFO [a8e8b242] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ fetch origin as russellroberts@localhost
DEBUG [a8e8b242] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ fetch origin
INFO [a8e8b242] Finished in 0.019 seconds with exit status 0 (successful).
INFO [4d25708d] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ reset --hard 518e9946a507a2eeb6a166d3ba5180f06bc6dc51 as russellroberts@localhost
DEBUG [4d25708d] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ reset --hard 518e9946a507a2eeb6a166d3ba5180f06bc6dc51
DEBUG [4d25708d] HEAD is now at 518e994 a
INFO [4d25708d] Finished in 0.010 seconds with exit status 0 (successful).
INFO [74f9be33] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ clean -fdx as russellroberts@localhost
DEBUG [74f9be33] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ clean -fdx
INFO [74f9be33] Finished in 0.008 seconds with exit status 0 (successful).
INFO [a54db7cb] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ submodule update --init as russellroberts@localhost
DEBUG [a54db7cb] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ submodule update --init
INFO [a54db7cb] Finished in 0.046 seconds with exit status 0 (successful).
INFO [e038bcdd] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ status --porcelain as russellroberts@localhost
DEBUG [e038bcdd] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ status --porcelain
INFO [e038bcdd] Finished in 0.010 seconds with exit status 0 (successful).
INFO [4bbb5beb] Running /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ rev-parse HEAD as russellroberts@localhost
DEBUG [4bbb5beb] Command: /usr/bin/env git -C /var/folders/s3/w5_wb1m10mg3nqpb0y_ms0hw0000gn/T/kamal-clones/store-7fc46b8a53959/rails8/ rev-parse HEAD
DEBUG [4bbb5beb] 518e9946a507a2eeb6a166d3ba5180f06bc6dc51
INFO [4bbb5beb] Finished in 0.007 seconds with exit status 0 (successful).
INFO [9a6b7dd5] Running docker buildx inspect kamal-local-docker-container as russellroberts@localhost
DEBUG [9a6b7dd5] Command: docker buildx inspect kamal-local-docker-container
DEBUG [9a6b7dd5] Name: kamal-local-docker-container
DEBUG [9a6b7dd5] Driver: docker-container
DEBUG [9a6b7dd5] Last Activity: 2025-01-01 09:09:47 +0000 UTC
DEBUG [9a6b7dd5]
DEBUG [9a6b7dd5] Nodes:
DEBUG [9a6b7dd5] Name: kamal-local-docker-container0
DEBUG [9a6b7dd5] Endpoint: desktop-linux
DEBUG [9a6b7dd5] Status: running
DEBUG [9a6b7dd5] BuildKit daemon flags: --allow-insecure-entitlement=network.host
DEBUG [9a6b7dd5] BuildKit version: v0.18.2
DEBUG [9a6b7dd5] Platforms: linux/arm64, linux/amd64, linux/amd64/v2, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
DEBUG [9a6b7dd5] Labels:
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.executor: oci
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.hostname: c88eceb5b0df
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.network: host
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.oci.process-mode: sandbox
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.selinux.enabled: false
DEBUG [9a6b7dd5] org.mobyproject.buildkit.worker.snapshotter: overlayfs
DEBUG [9a6b7dd5] GC Policy rule#0:
DEBUG [9a6b7dd5] All: false
DEBUG [9a6b7dd5] Filters: type==source.local,type==exec.cachemount,type==source.git.checkout
DEBUG [9a6b7dd5] Keep Duration: 48h0m0s
DEBUG [9a6b7dd5] GC Policy rule#1:
DEBUG [9a6b7dd5] All: false
DEBUG [9a6b7dd5] Keep Duration: 1440h0m0s
DEBUG [9a6b7dd5] Keep Bytes: 5.588GiB
DEBUG [9a6b7dd5] GC Policy rule#2:
DEBUG [9a6b7dd5] All: false
DEBUG [9a6b7dd5] Keep Bytes: 5.588GiB
DEBUG [9a6b7dd5] GC Policy rule#3:
DEBUG [9a6b7dd5] All: true
DEBUG [9a6b7dd5] Keep Bytes: 5.588GiB
INFO [9a6b7dd5] Finished in 0.093 seconds with exit status 0 (successful).
INFO [c760c28b] Running docker buildx build --push --platform linux/amd64 --builder kamal-local-docker-container -t trussells/store:518e9946a507a2eeb6a166d3ba5180f06bc6dc51 -t trussells/store:latest --label service="store" --file Dockerfile . as russellroberts@localhost
DEBUG [c760c28b] Command: docker buildx build --push --platform linux/amd64 --builder kamal-local-docker-container -t trussells/store:518e9946a507a2eeb6a166d3ba5180f06bc6dc51 -t trussells/store:latest --label service="store" --file Dockerfile .
DEBUG [c760c28b] #0 building with "kamal-local-docker-container" instance using docker-container driver
DEBUG [c760c28b]
DEBUG [c760c28b] #1 [internal] load build definition from Dockerfile
DEBUG [c760c28b] #1 transferring dockerfile: 2.45kB done
DEBUG [c760c28b] #1 DONE 0.0s
DEBUG [c760c28b]
DEBUG [c760c28b] #2 resolve image config for docker-image://docker.io/docker/dockerfile:1
DEBUG [c760c28b] #2 DONE 0.4s
DEBUG [c760c28b]
DEBUG [c760c28b] #3 docker-image://docker.io/docker/dockerfile:1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25
DEBUG [c760c28b] #3 resolve docker.io/docker/dockerfile:1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25 done
DEBUG [c760c28b] #3 CACHED
DEBUG [c760c28b]
DEBUG [c760c28b] #4 [internal] load metadata for docker.io/library/ruby:3.4.0.dev-slim
DEBUG [c760c28b] #4 ERROR: docker.io/library/ruby:3.4.0.dev-slim: not found
DEBUG [c760c28b] ------
DEBUG [c760c28b] > [internal] load metadata for docker.io/library/ruby:3.4.0.dev-slim:
DEBUG [c760c28b] ------
DEBUG [c760c28b] Dockerfile:12
DEBUG [c760c28b] --------------------
DEBUG [c760c28b] 10 | # Make sure RUBY_VERSION matches the Ruby version in .ruby-version
DEBUG [c760c28b] 11 | ARG RUBY_VERSION=3.4.0.dev
DEBUG [c760c28b] 12 | >>> FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
DEBUG [c760c28b] 13 |
DEBUG [c760c28b] 14 | # Rails app lives here
DEBUG [c760c28b] --------------------
DEBUG [c760c28b] ERROR: failed to solve: docker.io/library/ruby:3.4.0.dev-slim: docker.io/library/ruby:3.4.0.dev-slim: not found
Finished all in 3.0 seconds
Releasing the deploy lock...
DEBUG [4a1c9ce2] Running /usr/bin/env rm .kamal/lock-store/details && rm -r .kamal/lock-store on 172.104.144.78
DEBUG [4a1c9ce2] Command: /usr/bin/env rm .kamal/lock-store/details && rm -r .kamal/lock-store
DEBUG [4a1c9ce2] Finished in 0.055 seconds with exit status 0 (successful).
Finished all in 9.7 seconds
ERROR (SSHKit::Command::Failed): docker exit status: 256
docker stdout: Nothing written
docker stderr: #0 building with "kamal-local-docker-container" instance using docker-container driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.45kB done
#1 DONE 0.0s
#2 resolve image config for docker-image://docker.io/docker/dockerfile:1
#2 DONE 0.4s
#3 docker-image://docker.io/docker/dockerfile:1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25
#3 resolve docker.io/docker/dockerfile:1@sha256:93bfd3b68c109427185cd78b4779fc82b484b0b7618e36d0f104d4d801e66d25 done
#3 CACHED
#4 [internal] load metadata for docker.io/library/ruby:3.4.0.dev-slim
#4 ERROR: docker.io/library/ruby:3.4.0.dev-slim: not found
Dockerfile:12
10 | # Make sure RUBY_VERSION matches the Ruby version in .ruby-version
11 | ARG RUBY_VERSION=3.4.0.dev
12 | >>> FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
13 |
14 | # Rails app lives here
ERROR: failed to solve: docker.io/library/ruby:3.4.0.dev-slim: docker.io/library/ruby:3.4.0.dev-slim: not found
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/command.rb:97:in 'SSHKit::Command#exit_status='
'/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/local.rb:59:in 'block in SSHKit::Backend::Local#execute_command'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/3.4.0+1/open3.rb:540:in 'Open3.popen_run'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/3.4.0+1/open3.rb:235:in 'Open3.popen3'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/local.rb:44:in 'SSHKit::Backend::Local#execute_command'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:148:in 'block in SSHKit::Backend::Abstract#create_command_and_execute'
internal:kernel:91:in 'Kernel#tap'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:148:in 'SSHKit::Backend::Abstract#create_command_and_execute'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:80:in 'SSHKit::Backend::Abstract#execute'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:55:in 'block (4 levels) in Kamal::Cli::Build#push'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:55:in 'Dir.chdir'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:55:in 'block (3 levels) in Kamal::Cli::Build#push'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/commander.rb:139:in 'Kamal::Commander#with_verbosity'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:54:in 'block (2 levels) in Kamal::Cli::Build#push'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:31:in 'BasicObject#instance_exec'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/backends/abstract.rb:31:in 'SSHKit::Backend::Abstract#run'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/sshkit-1.23.2/lib/sshkit/dsl.rb:10:in 'SSHKit::DSL#run_locally'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:34:in 'block in Kamal::Cli::Build#push'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/base.rb:192:in 'Kamal::Cli::Base#with_env'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:33:in 'Kamal::Cli::Build#push'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/build.rb:8:in 'Kamal::Cli::Build#deliver'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/command.rb:28:in 'Thor::Command#run'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor.rb:538:in 'Thor.dispatch'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/invocation.rb:116:in 'Thor::Invocation#invoke'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/main.rb:32:in 'block in Kamal::Cli::Main#deploy'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/base.rb:65:in 'Kamal::Cli::Base#print_runtime'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/main.rb:21:in 'Kamal::Cli::Main#deploy'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/main.rb:13:in 'block (2 levels) in Kamal::Cli::Main#setup'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/base.rb:79:in 'Kamal::Cli::Base#with_lock'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/main.rb:6:in 'block in Kamal::Cli::Main#setup'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/base.rb:65:in 'Kamal::Cli::Base#print_runtime'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/lib/kamal/cli/main.rb:5:in 'Kamal::Cli::Main#setup'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/command.rb:28:in 'Thor::Command#run'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor.rb:538:in 'Thor.dispatch'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/thor-1.3.2/lib/thor/base.rb:584:in 'Thor::Base::ClassMethods#start'
/Users/russellroberts/.rbenv/versions/3.4.0/lib/ruby/gems/3.4.0+1/gems/kamal-2.4.0/bin/kamal:9:in '<top (required)>'
bin/kamal:27:in 'Kernel#load'
bin/kamal:27:in '
russellroberts@Bhaktima-PC rails8 %
<
Beta Was this translation helpful? Give feedback.
All reactions