v1 -> v2 automatic migration said it was successful but app will not deploy

Very simple Rails 6 app, nothing fancy; there was a small postgres db for a couple tables (users, etc) and I fear that got lost :frowning:

I updated flyctl, ran fly config save, but I am getting the following error in logs after deploy. Not sure what I am missing. Thank you in advance!

error.message="client problem: no host specified in headers or uri" 2023-06-20T07:39:05Z proxy den [error]request.method="GET" request.url="/" request.id="01H3BVWBM87BB6XXZ1KFH135Y4-den" response.status=400 
error.message="client problem: no host specified in headers or uri" 2023-06-20T07:40:30Z proxy ams [error]request.method="GET" request.url="/phpunit.xml" request.id="01H3BVYYFCDS584JNDWH4BN5JM-ams" response.status=400 
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:23:54.638060 #526]  INFO -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] Started GET "/" for 137.66.43.92 at 2023-06-20 12:23:54 +0000
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:23:54.650000 #526]  INFO -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] Processing by StaticPagesController#home as HTML
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:23:54.695747 #526]  INFO -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]   Rendered static_pages/home.html.erb within layouts/application (Duration: 27.2ms | Allocations: 2203)
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:23:54.696883 #526]  INFO -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]   Rendered layout layouts/application.html.erb (Duration: 29.3ms | Allocations: 2270)
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:23:54.697759 #526]  INFO -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] Completed 500 Internal Server Error in 48ms (Allocations: 4319)
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]F, [2023-06-20T12:23:54.699805 #526] FATAL -- : [e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] ActionView::Template::Error (could not translate host name "top2.nearest.of.klubhowse-db.internal" to address: No address associated with hostname
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info]):
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     1: <div class="password-container text-center">
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     2:   <h1 class="h3 font-weight-normal">Please sign in</h1>
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     3:
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     4:   <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'form-with-password'} ) do |f| %>
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     5:     <%= f.label :email, class: 'sr-only' %><br />
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     6:     <%= f.email_field :email, class: 'form-control', autofocus: true, placeholder: 'Email address', autocomplete: "email", required: true %>
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]     7:     <%= f.label :password, class: 'sr-only'  %>
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd]
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] app/helpers/application_helper.rb:9:in `resource'
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] app/views/devise/shared/_signin.html.erb:4
2023-06-20T12:23:54Z app[21781e4a093e89] ewr [info][e9b043e3-6ec7-4b3f-9a51-3b8adbfbcfbd] app/views/static_pages/home.html.erb:35
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:24:00.715591 #526]  INFO -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae] Started GET "/" for 137.66.43.92 at 2023-06-20 12:24:00 +0000
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:24:00.718387 #526]  INFO -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae] Processing by StaticPagesController#home as HTML
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:24:00.724236 #526]  INFO -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae]   Rendered static_pages/home.html.erb within layouts/application (Duration: 3.0ms | Allocations: 1001)
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:24:00.724402 #526]  INFO -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae]   Rendered layout layouts/application.html.erb (Duration: 3.2ms | Allocations: 1032)
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]I, [2023-06-20T12:24:00.724572 #526]  INFO -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae] Completed 500 Internal Server Error in 6ms (Allocations: 1433)
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]F, [2023-06-20T12:24:00.725819 #526] FATAL -- : [ff701d20-f4dd-4ef4-a688-b1264d33e4ae]
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae] ActionView::Template::Error (could not translate host name "top2.nearest.of.klubhowse-db.internal" to address: No address associated with hostname
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info]):
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     1: <div class="password-container text-center">
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     2:   <h1 class="h3 font-weight-normal">Please sign in</h1>
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     3:
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     4:   <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'form-with-password'} ) do |f| %>
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     5:     <%= f.label :email, class: 'sr-only' %><br />
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     6:     <%= f.email_field :email, class: 'form-control', autofocus: true, placeholder: 'Email address', autocomplete: "email", required: true %>
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]     7:     <%= f.label :password, class: 'sr-only'  %>
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae]
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae] app/helpers/application_helper.rb:9:in `resource'
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae] app/views/devise/shared/_signin.html.erb:4
2023-06-20T12:24:00Z app[21781e4a093e89] ewr [info][ff701d20-f4dd-4ef4-a688-b1264d33e4ae] app/views/static_pages/home.html.erb:35
^C%                                 

Tried deploying again, this time got an error right away that deploy failed in the terminal I ran the command:

WARN Failed to start remote builder heartbeat: You hit a Fly API error with request ID: 01H3CEHQVBET8QM96FR6FEMG2R-ord
Error: failed to fetch an image or build from source: error connecting to docker: You hit a Fly API error with request ID: 01H3CEHR9F5S684WQWTCB0KHDS-ord

Resolved! Had to restart the postgres app/machine:
flyctl machine restart <machine-id> --config fly/db.toml

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.