I got logout by telegram

Bug #1479680 reported by Yuan-Chen Cheng
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Telegram app
Fix Released
Critical
Michał Karnicki

Bug Description

I got hit by the following use case:

1. install channel: ubuntu-touch/stable/meizu.en, version version: 3 on mx4.
2. login to telegram account.
3. upgrade telegram
4. reboot or something
5. found I got logout from telegram
6. re-login and it look fine.
7. got logout again.

I didn't try to reproduce it, and certain procedure might not be exactly correct.

Still report to capture if someone else have similar issue.

Tags: v2-verify
Revision history for this message
Michał Karnicki (karni) wrote :

Logs contain:
401 AUTH_KEY_UNREGISTERED
(twice, and you mentioned you where signed out twice).

For reference:
https://github.com/Aseman-Land/Cutegram/issues/65#issuecomment-110225763
The assumption was the fault was on Telegram's end. I'll mark the bug incomplete, and we see if it happens more often. As it may have been on Telegram end, that would explain why reproducing the bug isn't easy.

Changed in libqtelegram:
status: New → Incomplete
Revision history for this message
Michał Karnicki (karni) wrote :

Reached out to TTF (Telegram Task Force). Since one of them also experienced such log out yesterday with a custom client software,
I asked them to comment here if they have more details. They would also let server folks know. Since the custom client was not C++, there's no common denomiator with that and our client, so may have been server side issue. I can't say that confidently yet, though.

Revision history for this message
Shawn Wang (shawn111) wrote :

I use MX4 ubuntu phone.
It can easy to reduplicate on my phone.

Don't need to update, change network.
Just send message and wait about 3 mins.

Revision history for this message
Shawn Wang (shawn111) wrote :

Telegram version: 1.3.20.113

Revision history for this message
Ethan Chang (ethan.chang) wrote :

I can confirm this issue with Shawn's steps.
1. Upgrade to 1.3.20.114
2. Launch Telegram
3. Send a message to another account
4. Wait for couple minutes
5. The telegram will be logout

Changed in libqtelegram:
status: Incomplete → Confirmed
Revision history for this message
Shawn Wang (shawn111) wrote :

Here is my telegram log.

/home/phablet/.cache/upstart/application-click-com.ubuntu.telegram_telegram_1.3.20.114.log

Revision history for this message
Shawn Wang (shawn111) wrote :

It seems not really logout from telegram.
The app still can receive the messages.

I can see it on the Notifications.

Revision history for this message
Shawn Wang (shawn111) wrote :

$ system-image-cli -icurrent build number: 81
device name: arale
channel: ubuntu-touch/rc-proposed/meizu.en
last update: 2015-08-06 13:41:21
version version: 81
version ubuntu: 20150806
version device: 20150709-8965e37
version custom: 20150716-819-8-42

Update to r81, still not fix this issue.

Revision history for this message
Michał Karnicki (karni) wrote :

Hi Shawn, ( /me back from hols)

I am not able to repro on r83 even after 10 minutes of sending the message. Would you be kind and do the following:

adb shell
touch ~/.config/com.ubuntu.telegram/.debug

rm ~/.cache/upstart/*telegram*

Then go ahead, reproduce the problem again, and attach the log please / or send it to my e-mail. Thank you.

Changed in libqtelegram:
status: Confirmed → Incomplete
Revision history for this message
Michał Karnicki (karni) wrote :

Actually I'll leave this as 'Confirmed', but I'd like to understand if Ethan / Shawn you guys are seeing the
401 AUTH_KEY_UNREGISTERED
in the logs as well. Can you still reproduce the problem? Is it reproducible every time or only now and then?

Changed in libqtelegram:
status: Incomplete → Confirmed
Revision history for this message
Shawn Wang (shawn111) wrote :

@Michał,

I'm not sure does r83 do any improve.
It seems r83 is harder to reproduce this issue.

I found once, after touch ~/.config/com.ubuntu.telegram/.debug

My system just upgrade from r83 -> r85.

Here is my log.

Revision history for this message
Michał Karnicki (karni) wrote :

Hi Shawn!

Kindly thank you for your log file. However, as mentioned on IRC, it does not contain reproduction of the problem.
Regarding r83, r85, etc, there have been no changes in Telegram recently, so the issue seems to be intermittent :S

Michał Karnicki (karni)
tags: added: v2
Revision history for this message
Ethan Chang (ethan.chang) wrote :

the issue doesn't happen again after Install telegram v2.0.5.

Revision history for this message
Michał Karnicki (karni) wrote :

Thanks Etan. (FTR I'd call it 2.0.0.0-alpha1, anyone reading thi splease don't think there's 2.0.5 version out yet.)

Changed in telegram-app:
importance: Undecided → Critical
status: Confirmed → Fix Committed
Michał Karnicki (karni)
tags: added: v2-verify
removed: v2
Changed in telegram-app:
assignee: nobody → Michał Karnicki (karni)
Michał Karnicki (karni)
Changed in telegram-app:
milestone: none → alpha1
Michał Karnicki (karni)
Changed in telegram-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.