unity-mail does not open

Bug #1667377 reported by EmT24jkRV on 2017-02-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity Mail
Undecided
Robert Tari

Bug Description

Cannot open Unity-mail settings via messages indicator applet (Ubuntu 16.04)

1. The app has stopped working with new versions (1.5.4 was last working version),
2. Re-installed the program - didn't help
3. Changed account from Outlook to GMail and now the app does not even open
4. terminal output for 'unity-mail':

Unity-Mail: ERROR: Exception occured: b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'
Unity-Mail: CRITICAL: Invalid account data provided for connection "<email address hidden>", exiting

5. cannot open unity-mail settings to change anything

System: 16.04 Ubuntu, Dell XPS 13 9560.

P.S. is there a way to get old 1.5.4 version?

EmT24jkRV (emt24jkrv) on 2017-02-23
description: updated
Robert Tari (robert-tari) wrote :

Your login data seems to be wrong. Starting from version 1.6.8 you cannot save an account with invalid login data, exactly to avoid situations like these.

Please do the following to reset your account(s):

1. type killall unity-mail in the terminal
2. type python3 in the terminal
3. paste the following lines one-by-one and press enter after each one:

import secretstorage
bus = secretstorage.dbus_init()
collection = secretstorage.get_default_collection(bus)
collection.unlock()
list(collection.search_items({'application': 'unity-mail'}))[0].delete()

4. repeat the last line until you get an error
5. close python3 with ctrl+d

Now you should have no connection settings stored. Make sure you update the app to the latest version and try again.

1.5.4 is very old and deprecated.

Please report back here so I should know what the situation is.

Changed in unity-mail:
assignee: nobody → Robert Tari (robert-tari)
status: New → Incomplete
EmT24jkRV (emt24jkrv) wrote :

Hi Robert,

thanks for your answer. This solved my original problem, i.e. the problem that I cannot open settings for unity-mail. However, I encountered another problem now.

When trying to setup a new account, I put everything correctly, then press Connect (it connects) but then Apply button does not do anything.

I get an error:

Traceback (most recent call last):
  File "/usr/share/unity-mail/UnityMail/application.py", line 515, in on_dialog_response
    self.load_data_from_dicts()
  File "/usr/share/unity-mail/UnityMail/application.py", line 541, in load_data_from_dicts
    self.onClear(None)
  File "/usr/share/unity-mail/UnityMail/application.py", line 274, in onClear
    self.set_launcher_count(0)
  File "/usr/share/unity-mail/UnityMail/application.py", line 1010, in set_launcher_count
    self.launcher.set_property('count', nCount)
AttributeError: 'NoneType' object has no attribute 'set_property'

(same for Gmail and Outlook)

Should I make a new bug report for this?

Cheers,
EmT24jkRV

Please watch your mail (or this page), there will be an update in the next
20-30 minutes. After that, do:

sudo apt-get update
sudo apt-get upgrade

...and report back.

Thanks.

On 23 February 2017 at 19:08, EmT24jkRV <email address hidden> wrote:

> Hi Robert,
>
> thanks for your answer. This solved my original problem, i.e. the
> problem that I cannot open settings for unity-mail. However, I
> encountered another problem now.
>
> When trying to setup a new account, I put everything correctly, then
> press Connect (it connects) but then Apply button does not do anything.
>
> I get an error:
>
> Traceback (most recent call last):
> File "/usr/share/unity-mail/UnityMail/application.py", line 515, in
> on_dialog_response
> self.load_data_from_dicts()
> File "/usr/share/unity-mail/UnityMail/application.py", line 541, in
> load_data_from_dicts
> self.onClear(None)
> File "/usr/share/unity-mail/UnityMail/application.py", line 274, in
> onClear
> self.set_launcher_count(0)
> File "/usr/share/unity-mail/UnityMail/application.py", line 1010, in
> set_launcher_count
> self.launcher.set_property('count', nCount)
> AttributeError: 'NoneType' object has no attribute 'set_property'
>
>
> (same for Gmail and Outlook)
>
> Should I make a new bug report for this?
>
>
> Cheers,
> EmT24jkRV
>
> --
> You received this bug notification because you are a bug assignee.
> Matching subscriptions: Robert Tari
> https://bugs.launchpad.net/bugs/1667377
>
> Title:
> unity-mail does not open
>
> Status in Unity Mail:
> Incomplete
>
> Bug description:
> Cannot open Unity-mail settings via messages indicator applet (Ubuntu
> 16.04)
>
> 1. The app has stopped working with new versions (1.5.4 was last working
> version),
> 2. Re-installed the program - didn't help
> 3. Changed account from Outlook to GMail and now the app does not even
> open
> 4. terminal output for 'unity-mail':
>
> Unity-Mail: ERROR: Exception occured: b'[AUTHENTICATIONFAILED] Invalid
> credentials (Failure)'
> Unity-Mail: CRITICAL: Invalid account data provided for connection "
> <email address hidden>", exiting
>
> 5. cannot open unity-mail settings to change anything
>
> System: 16.04 Ubuntu, Dell XPS 13 9560.
>
> P.S. is there a way to get old 1.5.4 version?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/unity-mail/+bug/1667377/+subscriptions
>

Robert Tari (robert-tari) wrote :

Launchpad's build system was a bit slow today. 1.5.9 is now ready, please see if it works as expected.

Robert Tari (robert-tari) wrote :

I meant 1.6.9, sorry..

EmT24jkRV (emt24jkrv) wrote :

Hi again,

thanks for the update. I did as you suggested and updated the app to the newest version. It solved the last problem but now it's followed by another strange error:

Unity-Mail: INFO: Connection to "<email address hidden>:INBOX" established
  32:00.60 MainThread last 20 log messages:
  32:00.83 MainThread last 20 log messages:
  32:01.05 MainThread last 20 log messages:
  32:01.27 MainThread last 20 log messages:
  32:01.49 MainThread last 20 log messages:
  32:01.72 MainThread last 20 log messages:
  32:01.96 MainThread last 20 log messages:
  32:02.18 MainThread last 20 log messages:
  32:02.41 MainThread last 20 log messages:
  32:02.62 MainThread last 20 log messages:
  32:03.12 outlook.office365.com reader last 20 log messages:
Unity-Mail: ERROR: Error in connection "<email address hidden>:INBOX": exception occured: command: FETCH => socket error: <class 'OSError'> - Too many read 0
Unity-Mail: INFO: Connection to "<email address hidden>:INBOX" established
Unread: 0 New: 0 Removed: 0

Now the first account is Outlook, while the second is Gmail. There is no problem with Gmail at all (popups + message indicator) but Outlook gives that error (see above) and just shows a pop-up window. No message indicator. Strangely if I use only Outlook, there's just this error and even no pop-up.

Any ideas?

Thanks a lot,
EmT24jkRV

Robert Tari (robert-tari) wrote :

To be honest, I have never met anybody with an Outlook account, so I did a quick research. It appears that it is fairly common for Outlook over IMAP to throw the very same socket error.

Have you been using this very same account successfully with Unity Mail in the past?

EmT24jkRV (emt24jkrv) wrote :

That's the e-mail provided by the university, so I didn't have much choice here.

It was working perfectly with older version (1.5.4) while newer ones didn't work anymore.

If there's no easy solution, please don't worry. I should be able to forward e-mails to Gmail account and so get the notifications in this way.

Thanks for your time, proper answers and keeping unity-mail alive!

Best,
EmT24jkRV

Robert Tari (robert-tari) wrote :

Old versions used a timer to periodically check for messages, but now we are using IMAP IDLE, which instantly notifies you - and this is the modern way to go. All today's mail servers should support this, and they do, as far as I know.

Sooner or later somebody else is bound to be plagued by this, so I should get to the bottom of it. Two more questions:

1. Could you please check exactly how many unread messages you are trying to retrieve?
2. I could whip up a short raw script which would try to pinpoint where the gremlins lie - are you up for some testing (being the only Outlook person I can think of)?

EmT24jkRV (emt24jkrv) wrote :

Actually checking messages periodically was useful option (at least for me). I get ~50 e-mails during working hours which means that there would be a possibility of be distracted 50 times/day with instant notification. Checking e-mails every 5 minutes (perfectly 7-8min but there was no option for that) gives a chance to get e-mail notifications in chunks and still be almost real-time notified.

1. now it was 12 but checked yesterday with unread count from 1 to 15.
2. yes, I am up for testing

Robert Tari (robert-tari) wrote :

OK, I will have to close this report as "invalid" since we've gone way off topic. I will contact you via E-mail during the day when I'm done with the script. Once(If?) we get it right, you could file a bug report requesting a feature to defer notifications, we'll see our options from there.

Changed in unity-mail:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers