Ha anybody ran into this problem before? I followed these instructions for a mix
deploy: Modifying an Existing App to Run on Gigalixir — GIGALIXIR 1.3.0 documentation
I tried distillery
and releases
as well and got the same results.
# elixir -v
Erlang/OTP 25 [erts-13.0.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Elixir 1.13.4 (compiled with Erlang/OTP 25)
defp deps do
[
{:bcrypt_elixir, "~> 3.0"},
{:phoenix, "~> 1.6.11"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.6"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.17.11"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.6"},
{:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
{:swoosh, "~> 1.3"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.18"},
{:jose, "~> 1.11"},
{:jason, "~> 1.2"},
{:joken, "~> 2.4"},
{:httpoison, "~> 1.8"},
{:plug_cowboy, "~> 2.5"},
{:retry, "~> 0.16"},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
# prod.exs for mix deploy
import Config
config :collaborlist, CollaborlistWeb.Endpoint,
load_from_system_env: true,
cache_static_manifest: "priv/static/cache_manifest.json",
url: [host: "example.com", port: 80]
config :logger, level: :info
config :collaborlist, :http_processor, GoogleCerts.HTTPProcessor.HTTPoisonProcessor
config :collaborlist, CollaborlistWeb.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: System.get_env("APP_NAME") <> ".gigalixirapp.com", port: 443],
secret_key_base: Map.fetch!(System.get_env(), "SECRET_KEY_BASE"),
server: true
config :collaborlist, Collaborlist.Repo,
adapter: Ecto.Adapters.Postgres,
url: System.get_env("DATABASE_URL"),
ssl: true,
pool_size: 1
# gigalixir logs -a collaborlist
2022-08-31T11:42:38+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:38+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:39+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:39+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:42+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:42+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:45+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:45+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:48+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:48+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:51.166948+00:00 collaborlist[gigalixir-run]: Attempting to start 'collaborlist' on host 'b'collaborlist-f4b65cb6-9s44k''
2022-08-31T11:42:51.166956+00:00 collaborlist[gigalixir-run]: Attempting health checks on port 4000
2022-08-31T11:42:51+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:51+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:51.564661+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | started with pid 43
2022-08-31T11:42:54+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:54+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:57+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T11:42:57+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.128:4000: connect: connection refused
2022-08-31T11:42:58.816111+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:42:58.683 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T11:42:58.816195+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 |
2022-08-31T11:42:58.816427+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T11:42:58.816157+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T11:42:58.816401+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:42:58.683 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T11:42:58.816548+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 |
2022-08-31T11:42:59.035699+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:42:59.035 [info] Access CollaborlistWeb.Endpoint at http://example.com:443
2022-08-31T11:42:58.982986+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:42:58.982 [info] Running CollaborlistWeb.Endpoint with cowboy 2.9.0 at :::4000 (http)
2022-08-31T11:43:00+00:00 collaborlist[gigalixir]: Stopping container collaborlist
2022-08-31T11:43:25.862435+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:43:25.861 request_id=391279f86129c16873ccfa0244c4e85a [info] GET /
2022-08-31T11:43:26.405558+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:43:26.352 [error] #PID<0.592.0> running CollaborlistWeb.Endpoint (connection #PID<0.591.0>, stream id 1) terminated
2022-08-31T11:43:26.405579+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:43:26.405581+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Request: GET /
2022-08-31T11:43:26.405788+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:43:26.405605+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (exit) an exception was raised:
2022-08-31T11:43:26.405835+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 |
2022-08-31T11:43:26.405846+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:43:26.405846+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:43:26.405850+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:43:26.405887+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:43:26.406161+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:43:26.406232+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:43:26.406255+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:43:26.406177+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:43:26.406307+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T11:43:28.218473+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:43:28.217 request_id=18065e87d076f1525ae083fee76d8073 [info] GET /
2022-08-31T11:43:28.222038+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:43:28.220 [error] #PID<0.595.0> running CollaborlistWeb.Endpoint (connection #PID<0.594.0>, stream id 1) terminated
2022-08-31T11:43:28.222179+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:43:28.222186+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Request: GET /
2022-08-31T11:43:28.222223+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (exit) an exception was raised:
2022-08-31T11:43:28.222285+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:43:28.222293+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 |
2022-08-31T11:43:28.222410+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:43:28.222411+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:43:28.222431+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:43:28.222507+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:43:28.222611+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:43:28.222633+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:43:28.222668+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:43:28.222705+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:43:28.222828+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T11:43:30.322318+00:00 collaborlist[gigalixir-run]: Shutting down 'collaborlist' on host 'b'collaborlist-6789fc677d-bmn5g''
2022-08-31T11:43:32+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.26.126:4000: i/o timeout
2022-08-31T11:45:45.768057+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:45:45.767 request_id=c543f979cfb27ef29ec6d52a725cfb0d [info] GET /
2022-08-31T11:45:45.770975+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | 11:45:45.769 [error] #PID<0.644.0> running CollaborlistWeb.Endpoint (connection #PID<0.643.0>, stream id 1) terminated
2022-08-31T11:45:45.770985+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Server: collaborlist.gigalixirapp.com:80 (http)
2022-08-31T11:45:45.771004+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | Request: GET /
2022-08-31T11:45:45.771145+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (exit) an exception was raised:
2022-08-31T11:45:45.771200+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "users" does not exist
2022-08-31T11:45:45.771211+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 |
2022-08-31T11:45:45.771212+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | query: INSERT INTO "users" ("is_guest","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
2022-08-31T11:45:45.771332+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
2022-08-31T11:45:45.771330+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-08-31T11:45:45.771374+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (ecto 3.7.2) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
2022-08-31T11:45:45.771487+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (phoenix 1.6.11) lib/phoenix/router.ex:346: Phoenix.Router.__call__/2
2022-08-31T11:45:45.771385+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/controllers/user_auth.ex:136: CollaborlistWeb.UserAuth.maybe_assign_guest_user/2
2022-08-31T11:45:45.771485+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/router.ex:1: CollaborlistWeb.Router.__pipe_through0__/1
2022-08-31T11:45:45.771514+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.plug_builder_call/2
2022-08-31T11:45:45.771527+00:00 collaborlist[b'collaborlist-f4b65cb6-9s44k']: web.1 | (collaborlist 0.1.0) lib/collaborlist_web/endpoint.ex:1: CollaborlistWeb.Endpoint.call/2
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:37+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:40+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:40+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:43+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:43+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:46.656243+00:00 collaborlist[gigalixir-run]: Attempting to start 'collaborlist' on host 'b'collaborlist-6d87bd4966-mxbks''
2022-08-31T12:37:46.656250+00:00 collaborlist[gigalixir-run]: Attempting health checks on port 4000
2022-08-31T12:37:47.009140+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | started with pid 44
2022-08-31T12:37:46+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:46+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:49+00:00 collaborlist[gigalixir]: Your app is failing health checks, which means it isn't listening on port 4000 yet.
2022-08-31T12:37:49+00:00 collaborlist[gigalixir]: Readiness probe failed: dial tcp 10.56.42.115:4000: connect: connection refused
2022-08-31T12:37:50.919255+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | 12:37:50.877 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T12:37:50.919274+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T12:37:50.919320+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 |
2022-08-31T12:37:50.919433+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | 12:37:50.877 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-08-31T12:37:50.919467+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-08-31T12:37:50.919702+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 |
2022-08-31T12:37:51.017149+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | 12:37:51.016 [info] Access CollaborlistWeb.Endpoint at http://example.com:443
2022-08-31T12:37:50.981062+00:00 collaborlist[b'collaborlist-6d87bd4966-mxbks']: web.1 | 12:37:50.980 [info] Running CollaborlistWeb.Endpoint with cowboy 2.9.0 at :::4000 (http)
2022-08-31T12:37:53+00:00 collaborlist[gigalixir]: Stopping container collaborlist
2022-08-31T12:38:23.156550+00:00 collaborlist[gigalixir-run]: Shutting down 'collaborlist' on host 'b'collaborlist-f4b65cb6-9s44k''