siddhant3030
I’m working on an ejabberd project but I’m having an issue with login through xmpp client. Here’s a gist for the ejabberd.yml
Environment
- ejabberd version: 20.04
- Erlang version: Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
- OS: MacOs (Catalina)
Errors from error.log/crash.log
[info] (#PID<0.1123.0>) Accepted connection 127.0.0.1:61129 -> 127.0.0.1:5222
[info] (tcp|<0.1123.0>) Accepted c2s DIGEST-MD5 authentication for mickael@localhost by mnesia backend from 127.0.0.1
[warn] (tcp|<0.1123.0>) Forbidden c2s session for mickael@localhost/Apples-MacBook-Air
Bug description
I have registered a user using
:ejabberd_auth.try_register("mickael", "localhost", "mypass")
But when I try to connect this user from PSI XMPP client it’s giving me this error. I looked into issues where I found someone using Gajim and has the same error. But in that case, it was written
that it would get resolve in 18.09 version and I’m using the latest.
I thought it’s happening with PSI XMPP client only. But I got the same error when I used Adium. I don’t know what this is about?
Please let me know how can I resolve this?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
JeyHey
I would try first to use a correct domain instead of “localhost”. Somthing like “example.com”.
siddhant3030
We have tried that. But it didn’t work
JeyHey
It looks to me as if the error is coming from the bind/2 function in ejabberd_c2s.erl: probably there is a ressource conflict. In other words “Apples-MacBook-Air” is allready bound to an existing connection and the server policy refuses to close this connection and bind the ressource to the new connection.
I could only take a quick look into the configs and could not find a config to change the policy. A quick work around is to use another ressource name.
JeyHey
Thinking more about this, I think no configs should be changed. The issue is on the client side. The client sould try to resume an existing session when reconnecting.
siddhant3030
Yes I also thought that issue is from client side but I tried psi + and adium both. But it didn’t work. Also I tried with other resource name like you can see here
But it did not change anything.
JeyHey
get_users doesn’t return the resource names. The list shows different users but not the different resources of a single user.
Regarding the configs for setting the policy to drop the old connection I found this:
http://jabber.996255.n3.nabble.com/resource-conflict-td31971.html
The link says, you can set the policy to close the old session by adding this to the configs:
{resource_conflict, closeold}.
siddhant3030
{resource_conflict, closeold}is there a key for that? Or just like this, we have to add ?JeyHey
In the ejabberd.yml file the syntax is:
In the example here Session ID mismatch · Issue #2657 · processone/ejabberd · GitHub it is right below
siddhant3030
Yes I tried this. But I’m getting that error again.
Is trying to reconnect every few second. But it’s failing
lkowolowski
Any update on this? I’m seeing this issue as well.