Skip to content

Instantly share code, notes, and snippets.

@xaviablaza
Created February 26, 2025 07:08
Show Gist options
  • Select an option

  • Save xaviablaza/1afbf75c89175515c92c420b84ffc226 to your computer and use it in GitHub Desktop.

Select an option

Save xaviablaza/1afbf75c89175515c92c420b84ffc226 to your computer and use it in GitHub Desktop.
logs for deployment of rails app on navegante
2025-02-26 07:06:30> INFO First web container is unhealthy on 209.236.116.124, not booting any other roles
2025-02-26 07:06:30> INFO [3fb94bd9] Running docker container ls --all --filter name=^surveytrack-web-02e53d3d7afa3a88682a0ffcc21e3ce1a5a98195$ --quiet | xargs docker logs --timestamps 2>&1 on 209.236.116.124
2025-02-26 07:06:30> INFO [3fb94bd9] Finished in 0.905 seconds with exit status 0 (successful).
2025-02-26 07:06:30> ERROR 2025-02-26T07:05:58.240549340Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:05:58.241421499Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:05:58.241427267Z
2025-02-26 07:06:30> 2025-02-26T07:05:58.241429647Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:05:58.241432127Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:05:58.241466142Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:05:58.241469708Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:05:58.241472247Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:05:59.248385199Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:05:59.249276147Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:05:59.249284646Z
2025-02-26 07:06:30> 2025-02-26T07:05:59.249287337Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:05:59.249289703Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:05:59.249291913Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:05:59.249294584Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:05:59.249297014Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:00.222327663Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:00.223213552Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:00.223220474Z
2025-02-26 07:06:30> 2025-02-26T07:06:00.223222965Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:00.223225659Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:00.223228096Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:00.223254430Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:00.223257886Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:01.400508363Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:01.401342303Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:01.401347800Z
2025-02-26 07:06:30> 2025-02-26T07:06:01.401350183Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:01.401352534Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:01.401361611Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:01.401383842Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:01.401386887Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:02.987083247Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:02.987987801Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:02.987994431Z
2025-02-26 07:06:30> 2025-02-26T07:06:02.987996853Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:02.987999445Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:02.988026395Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:02.988029450Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:02.988031902Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:05.384567379Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:05.385484169Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:05.385491514Z
2025-02-26 07:06:30> 2025-02-26T07:06:05.385494271Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:05.385496874Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:05.385499402Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:05.385526529Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:05.385529903Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:09.362697902Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:09.363590364Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:09.363597181Z
2025-02-26 07:06:30> 2025-02-26T07:06:09.363599688Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:09.363602224Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:09.363625522Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:09.363628847Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:09.363631303Z (See full trace by running task with --trace)
2025-02-26 07:06:30> 2025-02-26T07:06:16.545036459Z bin/rails aborted!
2025-02-26 07:06:30> 2025-02-26T07:06:16.545915525Z ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
2025-02-26 07:06:30> 2025-02-26T07:06:16.545922523Z
2025-02-26 07:06:30> 2025-02-26T07:06:16.545925073Z raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
2025-02-26 07:06:30> 2025-02-26T07:06:16.545927636Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-26 07:06:30> 2025-02-26T07:06:16.545930060Z /rails/config/environment.rb:5:in `<main>'
2025-02-26 07:06:30> 2025-02-26T07:06:16.545962703Z Tasks: TOP => db:prepare => db:load_config => environment
2025-02-26 07:06:30> 2025-02-26T07:06:16.545966013Z (See full trace by running task with --trace)
2025-02-26 07:06:31> INFO [7fe54ccb] Running docker container ls --all --filter name=^surveytrack-web-02e53d3d7afa3a88682a0ffcc21e3ce1a5a98195$ --quiet | xargs docker inspect --format '{{json .State.Health}}' on 209.236.116.124
2025-02-26 07:06:31> INFO [7fe54ccb] Finished in 0.731 seconds with exit status 0 (successful).
2025-02-26 07:06:31> ERROR null
2025-02-26 07:06:31> INFO [19625122] Running docker container ls --all --filter name=^surveytrack-web-02e53d3d7afa3a88682a0ffcc21e3ce1a5a98195$ --quiet | xargs docker stop on 209.236.116.124
2025-02-26 07:06:31> INFO [19625122] Finished in 0.745 seconds with exit status 0 (successful).
2025-02-26 07:06:31> Finished all in 254.3 seconds
2025-02-26 07:06:31> Releasing the deploy lock...
2025-02-26 07:06:32> Finished all in 259.8 seconds
2025-02-26 07:06:32> ERROR (SSHKit::Command::Failed): Exception while executing on host 209.236.116.124: docker exit status: 1
2025-02-26 07:06:32> docker stdout: Nothing written
2025-02-26 07:06:32> docker stderr: Error: target failed to become healthy within configured timeout (30s)
2025-02-26 07:06:32> 
*** COMPLETED_AT:[2025-02-26 07:06:32] RUNTIME:[4m21.676949112s] EXITCODE:[0] ERROR:[<nil>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment