ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

Telegram fails to start #169

Closed AlanGriffiths closed 6 years ago

AlanGriffiths commented 6 years ago

This started happening today, and only affects one phone (my "daily driver" :), the other (and desktop) works fine. I didn't install any updates or change anything.

Clicking on "Telegram" shows the app logo full screen and then returns to the previous screen. Similarly when a notification comes in.

Power off & on and uninstalling & reinstalling have no effect.

I assume some logfiles would be useful for diagnosis, but I need an idiot's guide to finding the right ones.

NeoTheThird commented 6 years ago

Sounds like corrupted configs to me, that happens sometimes when the internet connection is lost during initialization. For an easy fix, run rm -rf ~/.config/*com.ubuntu.telegram* ~/.cache/*com.ubuntu.telegram*. You'll have to log in again when you start the app for the next time. Alternatively, you can use UT tweak tool.

If you want to provide a log, the easiest way is probably Logviewer, if you don't want to go through your PC. Just select the telegram log file, select the pastebin option and post the link here.

NeoTheThird commented 6 years ago

If you want to do get logs over adb, put your device in developer mode, connect it to your PC, run adb devices on your PC and accept the connection in the dialog on your phone. Then, you can do adb shell cat /home/phablet/.cache/upstart/*com.ubuntu.telegram* to read the log.

AlanGriffiths commented 6 years ago

Deleting the cache & config didn't work. :(

Tried reinstalling again, but still the same failure. Logviewer doesn't list any telegram logs.

NeoTheThird commented 6 years ago

That is very odd. Time to call in @Flohack74.

Flohack74 commented 6 years ago

Did you accidently upgrade to 16.04?

AlanGriffiths commented 6 years ago

No, 15.04 (r3).

AlanGriffiths commented 6 years ago

Fixed:

  1. Uninstall telegram
  2. find -name *telegram* | xargs rm -rf
  3. Install telegram
  4. Start telegram & sign in
Flohack74 commented 6 years ago

Yeah for some reason there are situations where the local config f*cks up, no idea why...