I am completely new to the world of XMPP and profanity and so the below query might sound very basic.
I have run an ejabberd server using profanity as my client.
When i try to connect to my registered account in ejabberd via the /connect command, profanity abruptly exits and returns to my prompt. I enabled the profanity debug option but I do not unfortunately see anything useful from it. I have copied it for you here.
29/12/2016 07:31:39: prof: INF: Starting Profanity (0.5.0)...
29/12/2016 07:31:39: prof: INF: Initialising chat logs
29/12/2016 07:31:39: prof: INF: Initialising groupchat logs
29/12/2016 07:31:39: prof: INF: Loading accounts
29/12/2016 07:31:39: prof: INF: Initialising UI
29/12/2016 07:31:39: prof: INF: Initialising XMPP
29/12/2016 07:31:39: prof: INF: Loading capabilities cache
29/12/2016 07:31:39: prof: INF: Initialising commands
29/12/2016 07:31:39: prof: INF: Initialising contact list
29/12/2016 07:31:39: prof: INF: Loading TLS certificates
29/12/2016 07:31:39: prof: INF: Starting main event loop
29/12/2016 07:31:53: prof: DBG: Input received: /connect bvp@localhost
29/12/2016 07:31:56: prof: INF: Connecting without account, JID: bvp@localhost/profanity
29/12/2016 07:31:56: prof: INF: Connecting as bvp@localhost/profanity
I have been trying to find out if there's a problem with the server side but i dont see anything suspicious. Is there something else I need to do in profanity ?
Thanks,
Nithin Mohan
Thanks for the response.
There was no segmentation fault message seen.
The libstrophe version is 0.9.1. The package was installed manually.
Please let me know if there is any other information required too.
Regards,
Nithin Mohan
I don't see any "core" file in the directory I am running profanity from.
1) I have been trying to connect to only local servers (localhost). Haven't tried non-local servers yet. Will give that a try.
2) I hadn't added an account in my earlier trials. I added one now and the result is the same.
03:43:50 - Account prakash:
03:43:50 - enabled : TRUE
03:43:50 - jid : bvp@localhost
03:43:50 - resource : profanity
03:43:50 - muc service : conference.localhost
03:43:50 - muc nick : bvp
03:43:50 - Last presence : online
03:43:50 - Login presence : online
03:43:50 - Priority : chat:0, online:0, away:0, xa:0, dnd:0
3) The ejabberd config file has not been changed and is exactly the same as the one available in the ejabberd github.
https://github.com/processone/ejabberd/blob/master/config/ejabberd.yml
When I posted the issue first I had used a modified config file but then after stopping ejabberd , it would never start again no matter what I tried. So i replaced the file with the original one.
If you need more information, please let me know.
And yes, thanks for the quick responses.
Regards,
Nithin Mohan
I shall try to run profanity with gdb next.
Regards,
Nithin Mohan
Regards,
Nithin Mohan
Sorry I was busy with other stuff at work.
I used gdb and found that it abruptly quits when below api is called
xmpp_conn_set_flags(conn.xmpp_conn, XMPP_CONN_FLAG_MANDATORY_TLS);
from connection_connect().
I couldn't find the definition for xmpp_conn_set_flags(). I checked if I missed anything while compiling libstrophe but the steps seem to be correct.
Can you tell me what's wrong ?
Thanks,
Nithin Mohan
Your suggestions helped especially the strace.
I found out that there were 2-3 installations of libstrophe and the one that profanity was pointing to didn't the xmpp_conn_set_flags defined in it.Once I pointed it(soft link) to the correct libstrophe installation, I was able to connect and also chat.
I just discovered this is the same case as:
https://github.com/boothj5/profanity/issues/860
Thanks for the help !
Regards,
Nithin Mohan