processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6k stars 1.5k forks source link

Notify Socket Disable? #4122

Open taqveemahsan opened 6 months ago

taqveemahsan commented 6 months ago

Hello, I'm encountering an error while installing the mod_push module in ejabberd. root@chat:$ ejabberdctl module_install mod_push WARNING: It is not recommended to run ejabberd as root Error: error Error: not_available

I have configured the p2 proxy module with ejabberd and am receiving logs from the ejabberd server. It gives log about but didn't receive notifications on devices. 2023-12-15 09:25:47.907284+00:00 [warning] <0.13127.0>@ejabberd_s2s_out:process_closed/2:157 Failed to establish outbound s2s conns connection chat.example.tech -> push.chat.example.tech: Connection failed: network is unreachable; bouncing for 214> When a user attempts to send an SMS, ejabberd initiates a connection to "push.example.com," but encounters a connection refusal. How can both systems effectively address this situation?

licaon-kter commented 6 months ago

mod_push is already included, no need to 'install' anything

You've read https://github.com/iNPUTmice/p2/blob/master/docs/install.md#xmpp-server yet?

taqveemahsan commented 6 months ago

Yes, I've configured it with the identical details, but I'm perplexed by this specific aspect.

ejabberd_service: Interact with external components (transports, ...)

- port: 5347 module: ejabberd_service access: all shaper_rule: fast ip: "127.0.0.1" hosts: "p2.yourserver.tld": password: "verysecure"

What do you mean by "hosts" and password in this context? I've deployed ejabberd and the p2 proxy on the same server, and I've set the host as "127.0.0.1." While I've configured all other settings, I still haven't received notifications.

taqveemahsan commented 6 months ago

Dec 15 10:51:48 chat.example.tech java[470355]: IN (7483801069514495246): Dec 15 11:06:48 chat.example.tech java[470355]: OUT (7483801069514495246): Dec 15 11:06:48 chat.example.tech java[470355]: IN (7483801069514495246): Dec 15 11:06:48 chat.example.tech java[470355]: OUT (7483801069514495246): Dec 15 11:06:48 chat.example.tech java[470355]: IN (7483801069514495246): Dec 15 11:21:48 chat.example.tech java[470355]: OUT (7483801069514495246): Dec 15 11:21:48 chat.example.tech java[470355]: IN (7483801069514495246): Dec 15 11:21:48 chat.example.tech java[470355]: OUT (7483801069514495246): Dec 15 11:21:48 chat.example.tech java[470355]: IN (7483801069514495246):

I got this kind of logs from p2 service.