-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL unix socket will not connect and crashes #3716
Comments
/close as duplicate #3165 ? |
I don't see any resolution in that issue report, only that it was closed, and that was over a year ago, so I am hoping it is worth revisiting this? |
Did the issue got fixed in the lib? |
mmm I found this project: https://github.com/saleyn/euds the opening readme of the page says this:
That to me says that if we are on Erlang 19RC2 or later then yes native support for Unix sockets should be in the Erlang Library. EDIT: here is relevant info: http://erlang.org/download/otp_src_19.0.readme
|
ejabberd uses p1_pgsql Line 954 in 5506b83
and that library expects a host and a port and that's the only it supports: |
hey hey, thanks for the reply! would still love to be able to use unix socket. |
This is possible now? |
Not possible yet, and apparently no plan; in that case the Milestone field should indicate in what version it is supported, expected or possible. As months have passed and it seems there's no specific plan to implement it or general interest, during the periodic issue cleaning this has been marked for the "Parking lot", tagged "To reconsider", and temporarily closed. |
FYI: @badlop wrote a patch 🥇 (see processone/p1_pgsql#7 (comment)) that I successfully (smoke)tested. @Jieiku perhaps you want to test https://github.com/badlop/ejabberd/tree/pgsql-unix-socket as well? |
Thanks again @badlop 🥇! Now that it's committed we only need to be patience for it to be released. |
Environment
erl +V
: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 10.6.4Configuration:
Errors from error.log/crash.log
ejabberd.log:
crash.log:
error.log:
Bug description
If you configure ejabberd.yaml (as shown above) to use pgsql via unix socket then it will not connect. Crashes are generated in the crash log as well.
The text was updated successfully, but these errors were encountered: