Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4169 from esl/update-epgsql
Update epgsql to fix an issue with Erlang/OTP 26 Apparently epgsql fails to connect without TLS on Erlang/OTP 26. This is fixed in 4.7.1. Errors with 4.7.0: when=2023-11-16T07:43:36.255641+00:00 level=error what=rdbms_connection_attempt_error pid=<0.740.0> at=mongoose_rdbms:connect/4:899 sleep_for=1 backend=pgsql error={error,sock_closed} when=2023-11-16T07:43:36.256737+00:00 level=error reason=sock_closed pid=<0.741.0> at=gen_server:error_info/8:1373 client_info=undefined last_message={tcp_closed,#Port<0.8>} state="{state,gen_tcp,undefined,<<>>,undefined,on_message,undefined,{[],[]},undefined,undefined,undefined,undefined,[],information_redacted,[],undefined,undefined,undefined,undefined,#{port => 5432,host => \"localhost\",codecs => [{mongoose_rdbms_pgsql_codec_boolean,[]}],database => \"ejabberd\"}}" log= name=<0.741.0> label={gen_server,terminate} when=2023-11-16T07:43:36.256933+00:00 level=error pid=<0.741.0> at=proc_lib:crash_report/4:584 report="[[{initial_call,{epgsql_sock,init,['Argument__1']}},{pid,<0.741.0>},{registered_name,[]},{error_info,{exit,sock_closed,[{gen_server,handle_common_reply,8,[{file,\"gen_server.erl\"},{line,1208}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,241}]}]}},{ancestors,['wpool_pool-mongoose_wpool$rdbms$global$default-1','wpool_pool-mongoose_wpool$rdbms$global$default-process-sup','mongoose_wpool$rdbms$global$default',mongoose_wpool_rdbms_sup,mongoose_wpool_sup,ejabberd_sup,<0.340.0>]},{message_queue_len,0},{messages,[]},{links,[<0.740.0>]},{dictionary,[]},{trap_exit,false},{status,running},{heap_size,6772},{stack_size,28},{reductions,20292}],[]]" label={proc_lib,crash} 08:43:36.259 [error] gen_server <0.741.0> terminated with reason: sock_closed No such errors with 4.7.1: it started cleanly. Same results when calling epgsql:connect/1 manually. Change in 4.7.1 most likely fixing the issue: https://github.com/epgsql/epgsql/pull/284/files#diff-bee3ee44dca8eaa3ab72727b8d11c695f2ae4dcf0a0534fc51323d0aaa1a3a9f Note for the future: maybe test databases without TLS as well.
- Loading branch information