Cannot reregister my phone number


#1

I’ve lost my old device and tried to register my number on a new device, everything was fine until the verification code step
it says "Verification code refused. Authentication failed"
Here’s the log

2017-11-29 23:47:24 V/NumberValidation: Using phone number to register: +*************
2017-11-29 23:47:25 D/NumberValidation: phone number checked, sending validation request
2017-11-29 23:47:25 D/MessageCenterService: using server network@beta.kontalk.net|kontalk.halifax.rwth-aachen.de
2017-11-29 23:47:25 W/NumberValidator: connection error - trying next server in list
2017-11-29 23:47:25 W/NumberValidator: org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: '137.226.111.112:5222' failed because: kontalk.halifax.rwth-aachen.de/137.226.111.112 exception: java.net.ConnectException: failed to connect to kontalk.halifax.rwth-aachen.de/137.226.111.112 (port 5222) from /192.168.178.36 (port 48911) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
	at org.kontalk.client.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:618)
	at org.kontalk.client.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:890)
	at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:379)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:202)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:151)
	at org.kontalk.client.NumberValidator.initConnection(NumberValidator.java:672)
	at org.kontalk.client.NumberValidator.run(NumberValidator.java:307)
	at java.lang.Thread.run(Thread.java:764)


2017-11-29 23:47:25 D/MessageCenterService: using server network@beta.kontalk.net|beta.kontalk.net
2017-11-29 23:47:25 D/SMACK: SENT (8): <stream:stream xmlns='jabber:client' to='beta.kontalk.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
2017-11-29 23:47:25 D/SMACK: RECV (8): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='beta.kontalk.net' id='3d04517f-c962-4d6d-ab20-73ea197ffba9' version='1.0' xml:lang='en'>
2017-11-29 23:47:25 D/SMACK: RECV (8): <stream:features><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><roster xmlns="http://kontalk.org/extensions/roster"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
2017-11-29 23:47:25 D/SMACK: SENT (8): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'></starttls>
2017-11-29 23:47:25 D/SMACK: RECV (8): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
2017-11-29 23:47:25 D/SMACK: SENT (8): <stream:stream xmlns='jabber:client' to='beta.kontalk.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
2017-11-29 23:47:26 D/SMACK: RECV (8): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='beta.kontalk.net' id='3d04517f-c962-4d6d-ab20-73ea197ffba9' version='1.0' xml:lang='en'>
2017-11-29 23:47:26 D/SMACK: RECV (8): <stream:features><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>EXTERNAL</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><roster xmlns="http://kontalk.org/extensions/roster"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
2017-11-29 23:47:26 D/SMACK: SENT (8): <iq to='beta.kontalk.net' id='6hH2g-22' type='set'><query xmlns='jabber:iq:register'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value>jabber:iq:register</value></field><field label='Phone number' var='phone' type='text-single'><value>+*************</value></field><field label='Challenge type' var='challenge' type='text-single'><value>pin</value></field></x></query></iq>
2017-11-29 23:47:26 D/SMACK: RECV (8): <iq type="error" from="beta.kontalk.net" id="6hH2g-22" xmlns="jabber:client"><query xmlns="jabber:iq:register"><x type="submit" xmlns="jabber:x:data"><field type="hidden" var="FORM_TYPE"><value>jabber:iq:register</value></field><field type="text-single" label="Phone number" var="phone"><value>+*************</value></field><field type="text-single" label="Challenge type" var="challenge"><value>pin</value></field></x></query><error type="modify" code="409"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Another user is registered with the same id.</text></error></iq>
2017-11-29 23:47:26 D/SMACK: SENT (8): <presence id='6hH2g-24' type='unavailable'></presence>
2017-11-29 23:47:26 D/SMACK: SENT (8): 
2017-11-29 23:47:26 D/SMACK: SENT (8): </stream:stream>
2017-11-29 23:47:26 D/SMACK: RECV (8): <presence type="error" id="6hH2g-24" xmlns="jabber:client"><error type="auth" code="401"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You must authenticate session first, before you can send any message or presence packet.</text></error></presence>
2017-11-29 23:47:26 D/SMACK: RECV (8): <presence type="error" id="6hH2g-24" xmlns="jabber:client"><error type="cancel" code="503"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Service not available.</text></error></presence>
2017-11-29 23:47:26 D/SMACK: RECV (8): </stream:stream>
2017-11-29 23:47:26 E/NumberValidation: phone number validation failed (2)
2017-11-29 23:47:26 W/NumberValidator: shutting down
2017-11-29 23:47:26 W/NumberValidator: exiting
2017-11-29 23:47:28 V/NumberValidation: Using phone number to register: +*************
2017-11-29 23:47:28 D/NumberValidation: phone number checked, sending validation request
2017-11-29 23:47:29 D/MessageCenterService: using server network@beta.kontalk.net|kontalk.halifax.rwth-aachen.de
2017-11-29 23:47:29 W/NumberValidator: connection error - trying next server in list
2017-11-29 23:47:29 W/NumberValidator: org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: '137.226.111.112:5222' failed because: kontalk.halifax.rwth-aachen.de/137.226.111.112 exception: java.net.ConnectException: failed to connect to kontalk.halifax.rwth-aachen.de/137.226.111.112 (port 5222) from /192.168.178.36 (port 48917) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
	at org.kontalk.client.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:618)
	at org.kontalk.client.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:890)
	at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:379)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:202)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:151)
	at org.kontalk.client.NumberValidator.initConnection(NumberValidator.java:672)
	at org.kontalk.client.NumberValidator.run(NumberValidator.java:307)
	at java.lang.Thread.run(Thread.java:764)

2017-11-29 23:47:29 D/MessageCenterService: using server network@beta.kontalk.net|beta.kontalk.net
2017-11-29 23:47:29 D/SMACK: SENT (10): <stream:stream xmlns='jabber:client' to='beta.kontalk.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
2017-11-29 23:47:29 D/SMACK: RECV (10): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='beta.kontalk.net' id='2224b6f8-b5d6-4bd5-b012-63a3240c50ad' version='1.0' xml:lang='en'>
2017-11-29 23:47:29 D/SMACK: RECV (10): <stream:features><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><roster xmlns="http://kontalk.org/extensions/roster"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
2017-11-29 23:47:29 D/SMACK: SENT (10): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'></starttls>
2017-11-29 23:47:29 D/SMACK: RECV (10): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
2017-11-29 23:47:29 D/SMACK: SENT (10): <stream:stream xmlns='jabber:client' to='beta.kontalk.net' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
2017-11-29 23:47:29 D/SMACK: RECV (10): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='beta.kontalk.net' id='2224b6f8-b5d6-4bd5-b012-63a3240c50ad' version='1.0' xml:lang='en'>
2017-11-29 23:47:29 D/SMACK: RECV (10): <stream:features><sm xmlns="urn:xmpp:sm:3"/><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>EXTERNAL</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><roster xmlns="http://kontalk.org/extensions/roster"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
2017-11-29 23:47:29 D/SMACK: SENT (10): <iq to='beta.kontalk.net' id='6hH2g-27' type='set'><query xmlns='jabber:iq:register'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value>jabber:iq:register</value></field><field label='Phone number' var='phone' type='text-single'><value>+*************</value></field><field label='Force registration' var='force' type='boolean'><value>true</value></field><field label='Challenge type' var='challenge' type='text-single'><value>pin</value></field></x></query></iq>
2017-11-29 23:47:30 D/SMACK: RECV (10): <iq type="error" from="beta.kontalk.net" id="6hH2g-27" xmlns="jabber:client"><query xmlns="jabber:iq:register"><x type="submit" xmlns="jabber:x:data"><field type="hidden" var="FORM_TYPE"><value>jabber:iq:register</value></field><field type="text-single" label="Phone number" var="phone"><value>+*************</value></field><field type="boolean" label="Force registration" var="force"><value>true</value></field><field type="text-single" label="Challenge type" var="challenge"><value>pin</value></field></x></query><error type="wait" code="503"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Too many attempts.</text></error></iq>
2017-11-29 23:47:30 D/SMACK: SENT (10): <presence id='6hH2g-29' type='unavailable'></presence>
2017-11-29 23:47:30 D/SMACK: SENT (10): 
2017-11-29 23:47:30 D/SMACK: SENT (10): </stream:stream>
2017-11-29 23:47:30 D/SMACK: RECV (10): <presence type="error" id="6hH2g-29" xmlns="jabber:client"><error type="auth" code="401"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You must authenticate session first, before you can send any message or presence packet.</text></error></presence>
2017-11-29 23:47:30 D/SMACK: RECV (10): <presence type="error" id="6hH2g-29" xmlns="jabber:client"><error type="cancel" code="503"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Service not available.</text></error></presence>
2017-11-29 23:47:30 D/SMACK: RECV (10): </stream:stream>
2017-11-29 23:47:30 E/NumberValidation: phone number validation failed (1)
2017-11-29 23:47:30 W/NumberValidator: shutting down
2017-11-29 23:47:30 W/NumberValidator: exiting
2017-11-29 23:47:40 V/NumberValidation: Using phone number to register: +*************
2017-11-29 23:47:42 D/NumberValidation: phone number checked, sending validation request
2017-11-29 23:47:42 D/MessageCenterService: using server network@beta.kontalk.net|kontalk.halifax.rwth-aachen.de
2017-11-29 23:47:42 W/NumberValidator: connection error - trying next server in list
2017-11-29 23:47:42 W/NumberValidator: org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: '137.226.111.112:5222' failed because: kontalk.halifax.rwth-aachen.de/137.226.111.112 exception: java.net.ConnectException: failed to connect to kontalk.halifax.rwth-aachen.de/137.226.111.112 (port 5222) from /192.168.178.36 (port 48927) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
	at org.kontalk.client.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:618)
	at org.kontalk.client.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:890)
	at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:379)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:202)
	at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:151)
	at org.kontalk.client.NumberValidator.initConnection(NumberValidator.java:672)
	at org.kontalk.client.NumberValidator.run(NumberValidator.java:307)
	at java.lang.Thread.run(Thread.java:764)

#2

I don’t like this log line. Could you please clear app data before retrying?

That being said, the error is “too many attempts” (it’s not notified clearly by the app though). Did you already try in a short time before?


Is post boot-loop recovery possible? (w/ backup files, w/o key)
#3

Same problem here. Yesterday I got the message to re-register my account and now I’m stuck in the registration process which I can only try every few hours. The code is getting rejected and afterwards I get a call with the same code. Clearing the app data also didn’t work for me.


#4

It is working again for me.