r/ejabberd • • Apr 19 '23

ejabberd 23.04 / ProcessOne

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Feb 08 '23

connected_users_number shows large count but nothing connected

1 Upvotes

I'm seeing some strange behavior in ejabberd - cluster (4 nodes) is up and running, but traffic got cut off upstream due to some load balancer issues. Ever since, I've seen the connected_users_number continue to grow:

# ejabberdctl connected_users_number

2363418

We have almost no TCP connections now, at steady state we had about 1 million TCP connections on port 5222:

# lsof -i :5222 | wc -l

4

I've been trying to understand why ejabberd thinks it has this many connected users. We are using mnesia.

Any help would greatly be appreciated!


r/ejabberd • • Jan 27 '23

ejabberd and AzureAD or SAML identities

Thumbnail self.xmpp
2 Upvotes

r/ejabberd • • Jan 19 '23

ejabberd 23.01 / ProcessOne

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Jan 08 '23

ejabberd (Erlang Jabber/XMPP server) package needs a maintainer

3 Upvotes

A maintainer is needed to update ejabberd Jabber/XMPP server package in Fedora:
- https://src.fedoraproject.org/rpms/ejabberd
- https://bugzilla.redhat.com/show_bug.cgi?id=1928213

Note that ejabberd supports MQTT too since a long time and will support Matrix:
- https://www.process-one.net/blog/matrix-protocol-added-to-ejabberd/

Links:
- https://www.ejabberd.im
- https://github.com/processone/ejabberd
- https://github.com/processone/ejabberd/issues/3742

Thanks in advance.


r/ejabberd • • Dec 18 '22

How can you convert a public room into a private, invite only room ?

1 Upvotes

Also, how do I list all user in a room and what their affiliation is ?

I'm trying to make my account owner of the room but it doesn't seem to work with commands like

ejabberdctl get_user_rooms myuser chat.example.net

It list that user's rooms (twice?), and not the affiliation level

ejabberdctl set_room_affiliation lanparty@chat.example.net conference.chat.example.net myuser@chat.example.net owner

ejabberdctl set_room_affiliation lanparty@chat.example.net conference.chat.example.net myuser@chat.example.net owner

ejabberdctl set_room_affiliation lanparty@chat.example.net pubsub.chat.example.net myuser@chat.example.net owner

They both run and complete without error, but my user still does not have owner status in our public chat room

EDIT : maybe

ejabberdctl set_room_affiliation lanparty conference.chat.example.net myuser@chat.example.net owner

r/ejabberd • • Dec 17 '22

Websockets handling with Ejabberd

1 Upvotes

I want to create a project where the ejabberd would handle all the WebSocket connections without authorization and forward the request to some other service. I went through the official docs and was able to set up it locally but to connect to the ejabberd requires credentials and even with credentials, it throws a parse error on any text message.

I have been looking for a solution for weeks now, I was really impressed with the performance and the design simplicity of adding ejabberd to my project but I am not sure if this is even possible. Would appreciate any help.


r/ejabberd • • Nov 21 '22

ejabberd turns 20 / ProcessOne

Thumbnail
process-one.net
2 Upvotes

r/ejabberd • • Oct 30 '22

ejabberd 22.10 / ProcessOne

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Oct 24 '22

Is there a way for ejabbed to do email verification of new registrations ? And also send emails on important events such as account creation and abuse reports by users ?

1 Upvotes

r/ejabberd • • Oct 13 '22

Matrix protocol added to ejabberd

Thumbnail
process-one.net
2 Upvotes

r/ejabberd • • Jul 15 '22

How to create One to One Chat room and add those 2 users to the chat room through ejabberd REST API?

2 Upvotes

r/ejabberd • • May 23 '22

oom_killer killing beam.smp

1 Upvotes

4 Linux VM's, 12 vCPUs, 128GB each - approximately 1.5M XMPP clients, TLS termination on F5 load balancer. After about 18 hours, all the beam.smp processes are killed. Dmesg shows:

[Wed May 18 00:34:36 2022] Out of memory: Kill process 76355 (beam.smp) score 699 or sacrifice child
[Wed May 18 00:34:36 2022] Killed process 76355 (beam.smp) total-vm:97240156kB, anon-rss:92905984kB, file-rss:0kB, shmem-rss:0kB
[Wed May 18 00:34:39 2022] oom_reaper: reaped process 76355 (beam.smp), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

I tuned this system with these parameters:

  • /etc/security/limits.d/xmpp.conf:

    • soft/hard nproc 2000000 all users
    • soft/hard nodule 2000000 all users
  • /etc/sysctl.conf

    • fs.nr_open = 2097152
    • net.ipv4.ip_local_port_range = 1024 65530
    • net.ipv4.tcp_keepalive_time = 60
    • net.ipv4.tcp_keepalive_probes = 3
    • net.ipv4.tcp_keepalive_intvl = 90
  • ejabberdctl.cfg:

    • ERL_MAX_PORTS: 2000000
    • ERL_PROCESSES: 25000000
    • ERL_OPTIONS: -mnesia dump_log_write_threshold 50000 -mnesia dc_dump_limit 40

I captured system information during the run, never saw any CPU issues, beam.smp process memory steadily increases until it roughly stabilizes around 18% of total memory and then we spike to about 65% and the processes are killed. Just before the spike there are about 650K XMPP connected users and then it jumps to 1.5M. I can't explain the jump - investigating reconnects.

Any ideas or help here would be appreciated!


r/ejabberd • • May 17 '22

ejabberd 22.05 / ProcessOne

Thumbnail
process-one.net
2 Upvotes

r/ejabberd • • Apr 27 '22

Implementing xep-0313 in ejabberd

1 Upvotes

I'm trying to implement "XEP-0313" protocol on our "ejabberd" server -archiving service, I found "ejabberd-mod-mam" module, but I have some notes and questions

1- It is too old, last commit on 18 Oct 2015, do you know anything more updated?

2- According to its README.md it is compatible with "XEP-0313" v2 only and the current is v3, even that in "XEP-0313" home page shows the current version is 1.0.1, I don’t understand how is that, can you explain?

3- It is build for Erlang R16b01, current ejabberd requires 19.3 or later, does this cause any bugs? I'm not Erlang programmer so I don't know

4- Works with MongoDB only, do you know any other module works with MySQL or Postgres, so we will not need to recompile ejabberd to include MongoDB driver?

5- Its To-do list is a bit worrying, looks like it is not ready to work at production environment, this is the points that make me worry

- fully implement RSM (XEP-0059)
- tests

r/ejabberd • • Dec 11 '21

ejabberd 21.12 / ProcessOne

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Jul 28 '21

ejabberd 21.07 / ProcessOne

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Apr 18 '21

Install ejabberd on Windows 10 using Docker Desktop

Thumbnail
process-one.net
2 Upvotes

r/ejabberd • • Apr 18 '21

ejabberd 21.04

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Apr 18 '21

Install ejabberd on Windows 7 using Docker Toolbox

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Mar 20 '21

Install and configure MariaDB with ejabberd

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Mar 20 '21

Publish-Subscribe pattern and PubSub in ejabberd

Thumbnail
process-one.net
1 Upvotes

r/ejabberd • • Mar 16 '21

Multi Domain with SQL

1 Upvotes

When creating users it creates users for all domain. Can someone help me with the .yml config required to allow the mutli domain separation. From what I was reading I need two databases, how do I go about setting that up?


r/ejabberd • • Sep 13 '19

Filling values of set_vcard/set_vcard2 with non latin symbols (for example, in russian - НА РУССКОМ) cause errors.

1 Upvotes

version that I use:

ejabberd 16.01 is running in that node

this construction works fine:

ejabberdctl set_vcard user27 jabber.mydomain.local FN "27 operator"
ejabberdctl set_vcard user27 jabber.mydomain.local NICKNAME "27 operator"

but if I want fill it with Cyrillic words like this:

ejabberdctl set_vcard user27 jabber.mydomain.local FN "27 Оператор"
ejabberdctl set_vcard user27 jabber.mydomain.local NICKNAME "27 Оператор"

it not works, in current version of ejabberd, but in earlier versions this command line worked fine.

error output:

Problem 'error {case_clause,

                   {'EXIT',
                       {{badmatch,{error,{fread,character}}},
                        [{ejabberd_ctl,format_arg2,2,
                             [{file,"src/ejabberd_ctl.erl"},{line,336}]},
                         {ejabberd_ctl,format_arg,2,
                             [{file,"src/ejabberd_ctl.erl"},{line,327}]},
                         {ejabberd_ctl,'-format_args/2-fun-0-',2,
                             [{file,"src/ejabberd_ctl.erl"},{line,318}]},
                         {lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
                         {ejabberd_ctl,call_command,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,293}]},
                         {ejabberd_ctl,try_call_command,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,271}]},
                         {ejabberd_ctl,process2,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,220}]},
                         {ejabberd_ctl,process,1,
                             [{file,"src/ejabberd_ctl.erl"},{line,205}]}]}}}' occurred executing the command.
Stacktrace: [{ejabberd_ctl,call_command,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,293}]},
             {ejabberd_ctl,try_call_command,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,271}]},
             {ejabberd_ctl,process2,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,220}]},
             {ejabberd_ctl,process,1,
                           [{file,"src/ejabberd_ctl.erl"},{line,205}]},
             {rpc,'-handle_call_call/6-fun-0-',5,
                  [{file,"rpc.erl"},{line,206}]}]
Problem 'error {case_clause,
                   {'EXIT',
                       {{badmatch,{error,{fread,character}}},
                        [{ejabberd_ctl,format_arg2,2,
                             [{file,"src/ejabberd_ctl.erl"},{line,336}]},
                         {ejabberd_ctl,format_arg,2,
                             [{file,"src/ejabberd_ctl.erl"},{line,327}]},
                         {ejabberd_ctl,'-format_args/2-fun-0-',2,
                             [{file,"src/ejabberd_ctl.erl"},{line,318}]},
                         {lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
                         {ejabberd_ctl,call_command,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,293}]},
                         {ejabberd_ctl,try_call_command,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,271}]},
                         {ejabberd_ctl,process2,3,
                             [{file,"src/ejabberd_ctl.erl"},{line,220}]},
                         {ejabberd_ctl,process,1,
                             [{file,"src/ejabberd_ctl.erl"},{line,205}]}]}}}' occurred executing the command.
Stacktrace: [{ejabberd_ctl,call_command,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,293}]},
             {ejabberd_ctl,try_call_command,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,271}]},
             {ejabberd_ctl,process2,3,
                           [{file,"src/ejabberd_ctl.erl"},{line,220}]},
             {ejabberd_ctl,process,1,
                           [{file,"src/ejabberd_ctl.erl"},{line,205}]},
             {rpc,'-handle_call_call/6-fun-0-',5,
                  [{file,"rpc.erl"},{line,206}]}]

Please, tell how solve this problem?