Open baznikin opened 2 months ago
Here @Intuinewin recommends to set sockopts
to {}
since default values are broken in firezone. I tried {}
, []
, ''
. I found default values here https://github.com/gen-smtp/gen_smtp but still no luck. Errors on strart like:
ERROR! Config provider Config.Reader failed with:
** (Protocol.UndefinedError) protocol Enumerable not implemented for "{}" of type BitString. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Stream
(elixir 1.17.2) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir 1.17.2) lib/enum.ex:166: Enumerable.reduce/3
(elixir 1.17.2) lib/enum.ex:4423: Enum.reverse/1
(elixir 1.17.2) lib/keyword.ex:209: Keyword.new/2
(elixir 1.17.2) lib/keyword.ex:1182: Keyword.update_guarded/4
(elixir 1.17.2) lib/keyword.ex:1186: Keyword.update_guarded/4
(domain 0.1.0+deadbeef) lib/domain/config/fetcher.ex:21: Domain.Config.Fetcher.fetch_source_and_config/4
/app/releases/0.1.0+deadbeef/runtime.exs:229: (file)
Runtime terminating during boot ({#{value=><<"{}">>,protocol=>'Elixir.Enumerable',description=><<>>,'__struct__'=>'Elixir.Protocol.UndefinedError','__exception__'=>true},[{'Elixir.Enumerable','impl_for!',1,[{file,"lib/enum.ex"},{line,1}]},{'Elixir.Enumerable',reduce,3,[{file,"lib/enum.ex"},{line,166}]},{'Elixir.Enum',reverse,1,[{file,"lib/enum.ex"},{line,4423}]},{'Elixir.Keyword',new,2,[{file,"lib/keyword.ex"},{line,209}]},{'Elixir.Keyword',update_guarded,4,[{file,"lib/keyword.ex"},{line,1182}]},{'Elixir.Keyword',update_guarded,4,[{file,"lib/keyword.ex"},{line,1186}]},{'Elixir.Domain.Config.Fetcher',fetch_source_and_config,4,[{file,"lib/domain/config/fetcher.ex"},{line,21}]},{elixir_eval,'__FILE__',1,[{file,"/app/releases/0.1.0+deadbeef/runtime.exs"},{line,229}]}]})
Crash dump is being written to: erl_crash.dump...
Hey, thanks for the ping, I just sent a PR with a fix for the default value of sockopts
Describe the bug
Trying to setup firezone admin portal with Helmchart, got strange error:
Env vars:
Start with full SMTP configuration, stripped it down to minimal one. No attempts to connect to mail relay.
Screenshots / Logs
Platform (please complete the following information)