tlietz

tlietz

Gigalixir deployment "Readiness probe failed: dial tcp ..."

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.4.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''

Marked As Solved

karlosmid

karlosmid

Also Liked

tlietz

tlietz

That got my web app appearing, but the LiveView interactivity does not work. Have you fixed the following error before?
Everything works locally on localhost:4000 upon running mix phx.server, and I believe that I have the url configured correctly in prod.exs

2022-08-31T13:46:36.513221+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | 13:46:36.512 [error] Could not check origin for Phoenix.Socket transport.
2022-08-31T13:46:36.513252+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513255+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | Origin of the request: https://collaborlist.gigalixirapp.com
2022-08-31T13:46:36.513295+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513315+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | This happens when you are attempting a socket connection to
2022-08-31T13:46:36.513351+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | a different host than the one configured in your config/
2022-08-31T13:46:36.513360+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | files. For example, in development the host is configured
2022-08-31T13:46:36.513385+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | to "localhost" but you may be trying to access it from
2022-08-31T13:46:36.513409+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  | "127.0.0.1". To fix this issue, you may either:
2022-08-31T13:46:36.513433+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513454+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |   1. update [url: [host: ...]] to your actual host in the
2022-08-31T13:46:36.513484+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      config file for your current environment (recommended)
2022-08-31T13:46:36.513510+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513531+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |   2. pass the :check_origin option when configuring your
2022-08-31T13:46:36.513556+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      endpoint or when configuring the transport in your
2022-08-31T13:46:36.513582+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      UserSocket module, explicitly outlining which origins
2022-08-31T13:46:36.513618+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |      are allowed:
2022-08-31T13:46:36.513639+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513664+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |         check_origin: ["https://example.com",
2022-08-31T13:46:36.513685+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |                        "//another.com:888", "//other.com"]
2022-08-31T13:46:36.513697+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |
2022-08-31T13:46:36.513738+00:00 collaborlist[b'collaborlist-5c7c6d6d7-jwwcp']: web.1  |

edit:

I got the entire web app working now. Had to add check_origin to prod.exs:

config :collaborlist, CollaborlistWeb.Endpoint,
  # Possibly not needed, but doesn't hurt
  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,
  check_origin: ["https://" <> System.get_env("APP_NAME") <> ".gigalixirapp.com"]

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36128 110
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement