Skip to content

Instantly share code, notes, and snippets.

@nisanthchunduru
Created February 28, 2025 20:27
Show Gist options
  • Save nisanthchunduru/dc908ac676454c18adb64837bf204aeb to your computer and use it in GitHub Desktop.
Save nisanthchunduru/dc908ac676454c18adb64837bf204aeb to your computer and use it in GitHub Desktop.
kamal deploy
Log into image registry...
INFO [43ba0482] Running docker --version && docker buildx version as chunisan@localhost
INFO [43ba0482] Finished in 0.263 seconds with exit status 0 (successful).
INFO [78be9720] Running docker login -u [REDACTED] -p [REDACTED] as chunisan@localhost
INFO [78be9720] Finished in 3.187 seconds with exit status 0 (successful).
INFO [335cb57f] Running docker login -u [REDACTED] -p [REDACTED] on 150.136.2.200
INFO [335cb57f] Finished in 3.772 seconds with exit status 0 (successful).
Build and push app image...
INFO [57fe232e] Running docker --version && docker buildx version as chunisan@localhost
INFO [57fe232e] Finished in 0.131 seconds with exit status 0 (successful).
Building from a local git clone, so ignoring these uncommitted changes:
M .mise.toml
M config/deploy.yml
?? .kamal/secrets
?? static/fonts/
INFO Cloning repo into build directory `/var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/`...
INFO [35b12344] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7 clone /Users/chunisan/repos/blog --recurse-submodules as chunisan@localhost
INFO Resetting local clone as `/var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/` already exists...
INFO [8a6e397b] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ remote set-url origin /Users/chunisan/repos/blog as chunisan@localhost
INFO [8a6e397b] Finished in 0.037 seconds with exit status 0 (successful).
INFO [21abeddc] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ fetch origin as chunisan@localhost
INFO [21abeddc] Finished in 0.091 seconds with exit status 0 (successful).
INFO [0e264807] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ reset --hard 0e81a8badfc87b7ba5d67a5835f209bc2cba3bbd as chunisan@localhost
INFO [0e264807] Finished in 0.041 seconds with exit status 0 (successful).
INFO [434b1377] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ clean -fdx as chunisan@localhost
INFO [434b1377] Finished in 0.037 seconds with exit status 0 (successful).
INFO [e7d45f73] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ submodule update --init as chunisan@localhost
INFO [e7d45f73] Finished in 0.177 seconds with exit status 0 (successful).
INFO [f6b4836f] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ status --porcelain as chunisan@localhost
INFO [f6b4836f] Finished in 0.038 seconds with exit status 0 (successful).
INFO [98e6f00b] Running /usr/bin/env git -C /var/folders/q3/0jl1k3mx143fw8xbs4m8qp0w0000gq/T/kamal-clones/blog-f5d00af52b8b7/blog/ rev-parse HEAD as chunisan@localhost
INFO [98e6f00b] Finished in 0.031 seconds with exit status 0 (successful).
Finished all in 8.5 seconds
ERROR (NoMethodError): undefined method `gsub' for true
2025-02-28T10:56:18.944766627Z WARN found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
2025-02-28T10:56:18.947407620Z Web Server is available at http://localhost:1313/ (bind address 0.0.0.0)
2025-02-28T10:56:18.947426676Z Total in 5 ms
INFO [7fbd421e] Running docker container ls --all --filter name=^blog-web-latest$ --quiet | xargs docker inspect --format '{{json .State.Health}}' on 150.136.2.200
INFO [7fbd421e] Finished in 0.999 seconds with exit status 0 (successful).
ERROR null
INFO [4c049a22] Running docker container ls --all --filter name=^blog-web-latest$ --quiet | xargs docker stop on 150.136.2.200
INFO [4c049a22] Finished in 1.496 seconds with exit status 0 (successful).
Releasing the deploy lock...
ERROR (SSHKit::Command::Failed): Exception while executing on host 150.136.2.200: docker exit status: 1
docker stdout: Nothing written
docker stderr: Error: target failed to become healthy within configured timeout (30s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment