ChatSecure / ChatSecure-iOS

ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
https://chatsecure.org
Other
3.13k stars 1.03k forks source link

Registering new account on Prosody doesn't work #840

Open friesenkiwi opened 7 years ago

friesenkiwi commented 7 years ago

Hi, I tried really hard to find a solution (e.g. https://github.com/iNPUTmice/ComplianceTester/issues/71) for my problem but unfortunately wasn't able to find one, I think it's a bug with ChatSecure:

When trying to register a new account on my uberspace-hosted Prosody XMPP/Jabber-Server (0.9.12), ChatSecure (4.0 until current beta, also tested and confirmed with Zom) always fails with different error messages. However, connecting with an already existing account works.

The server works since a while without problems in connection with Gajim or Conversations, also account registration works for those clients. I checked the server via https://github.com/iNPUTmice/ComplianceTester which went fine except for the last "XEP-0368: SRV records for XMPP over TLS" test, which is only optional. I also checked it via IM Observatory: https://check.messaging.one/result.php?domain=im.pokerazor.de&type=client which yields an A score. So I am pretty certain, that the Certificate, Prosody and DNS config is OK, my suspicion is, that ChatSecure doesn't use the port provided by the _xmpp-client._tcp. SRV for the registration but only for the regular connection. Also there is no captcha, so this is not a dupe of #673 .

Here are the different error messages. They appear, when filling in the registration form and hitting the checkmark button in the top right corner. Interestingly enough, one after another: 1: NSPOSIXErrorDomain: Operation not permitted 17-08-21 17-01-57 4116 2: NSPOSIXErrorDomain: No route to host 17-08-21 17-02-02 4117 3: NSPOSIXErrorDomain: Invalid argument 17-08-21 17-02-08 4118 4: NSPOSIXErrorDomain: Undefined error: 0 17-08-21 17-02-13 4119

Zom: faceslim-saved-image-22082017123132_9f5ba9b2e3ee41952dff74c16300ea0a2bbff2f0

Older failed tests had: NSPOSIXErrorDomain Code: 65 UserInfo: { NSLocalizedDescription = "No route to host"; NSLocalizedFailureReason = "Error in connect() function"; }

faceslim-saved-image-22082017123234_e2b93f0f1c82aa51ffecdac83e7b74824cf303a3

NSPOSIXErrorDomain : No such file or directory Domain: NSPOSIXErrorDomain Code: 2 UserInfo: { NSLocalizedDescription = "No such file or directory"; NSLocalizedFailureReason = "Error in connect() function"; }

Registration on the server is still open, so you're welcome to register and see yourself! :-) Unfortunately, I don't have an iOS device myself, but @ronnicek helped me to test.

Thanks in advance for checking this! Cheers

friesenkiwi commented 6 years ago

Hi. @chrisballinger, is there anything you can suggest about the problem? I would love to suggest ChatSecure to my iOS friends to use it with my prosody server, but as long as they cannot register, it won't work for them :-( If I can provide any more information to track down the problem, please let me know!

Neustradamus commented 6 years ago

It is important to works with:

Infos: https://wiki.xmpp.org/web/SRV_Records