Skip to content

Postgres SSL support missing #347

Description

@BobyMCbobs

I'm trying to set up Analytics in Kubernetes with a Postgres database that requires SSL support.

I'm getting this error:

kubectl -n plausible logs plausible-654fd79d98-7ptnt -c plausible-init 
create Plausible.Repo database if it doesn't exist
06:15:41.518 [error] Task #PID<0.166.0> started from #PID<0.204.0> terminating
** (RuntimeError) SSL connection can not be established because `:ssl` application is not started,
you can add it to `extra_application` in your `mix.exs`:

  def application do
    [extra_applications: [:ssl]]
  end

    (postgrex 0.15.5) lib/postgrex.ex:554: Postgrex.ensure_deps_started!/1
    (postgrex 0.15.5) lib/postgrex.ex:169: Postgrex.start_link/1
    (ecto_sql 3.4.4) lib/ecto/adapters/postgres.ex:258: anonymous fn/2 in Ecto.Adapters.Postgres.run_query/2
    (elixir 1.10.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
    (elixir 1.10.3) lib/task/supervised.ex:35: Task.Supervised.reply/5
    (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: #Function<7.43614902/0 in Ecto.Adapters.Postgres.run_query/2>
    Args: []
** (MatchError) no match of right hand side value: {:error, "an exception was raised:\n    ** (RuntimeError) SSL connection can not be established because `:ssl` application is not started,\nyou can add it to `extra_application` in your `mix.exs`:\n\n  def application do\n    [extra_applications: [:ssl]]\n  end\n\n        (postgrex 0.15.5) lib/postgrex.ex:554: Postgrex.ensure_deps_started!/1\n        (postgrex 0.15.5) lib/postgrex.ex:169: Postgrex.start_link/1\n        (ecto_sql 3.4.4) lib/ecto/adapters/postgres.ex:258: anonymous fn/2 in Ecto.Adapters.Postgres.run_query/2\n        (elixir 1.10.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2\n        (elixir 1.10.3) lib/task/supervised.ex:35: Task.Supervised.reply/5\n        (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3"}
    (plausible 0.0.1) lib/plausible_release.ex:56: anonymous fn/2 in Plausible.Release.createdb/0
    (elixir 1.10.3) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
    (plausible 0.0.1) lib/plausible_release.ex:55: Plausible.Release.createdb/0
    (stdlib 3.12.1) erl_eval.erl:680: :erl_eval.do_apply/6
    (elixir 1.10.3) lib/code.ex:341: Code.eval_string_with_error_handling/3

It appears that there is a elixir dependency missing for SSL support, from what I take from this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions