Open Bug 1223689 Opened 9 years ago Updated 2 years ago

"Login failed" ... "Login to server" appears regularly, walking through folders of exchange account - "NS_ERROR_XPC_BAD_CONVERT_NATIVE: Could not convert Native argument arg 5"

Categories

(Thunderbird :: General, defect)

42 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: d0bc6fcb, Unassigned, NeedInfo)

Details

(Whiteboard: [dupme])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20151102093849

Steps to reproduce:

Thunderbird 42 beta on KUbuntu 15.04
I have an exchange account set up under Thunderbird. No add ons enabled.
Config of the exchange account:
Server: exchange.xxx.xxx Port: 993
Username: me
Connection security: SSL/TLS
Authentication methode: NTLM

No changes from default except that.

In exchange i have a ton of server side rules to filter the almost 800 messages per day to their various folders. As a result i have around 35 folders that receive unread emails.


Actual results:

When i am checking my mails i walk through the folders simply clicking them checking what needs first priority.

After several folders i get the message:
Login Failed:
Login to server exchange.xxx.xxx failed.
Enter new password (doesn't work), Cancel, Retry (doesn't work either).

At this point i can only close the mail client and start it again. 

This happens 15 - 20 times a day.

When i get this message the thunderbird error console shows:
Timestamp: 11-11-15 08:41:27
Error: NS_ERROR_XPC_BAD_CONVERT_NATIVE: Could not convert Native argument arg 5 [nsIWindowWatcher.openWindow]
Source File: resource://gre/components/nsPrompter.js
Line: 370

Timestamp: 11-11-15 08:41:41
Error: 1447227701771	Toolkit.Telemetry	ERROR	TelemetryStorage::loadAbortedSessionPing - error removing ping: PingReadError JS Stack trace: PingReadError@TelemetryStorage.jsm:80:15 < TelemetryStorageImpl.loadPingFile<@TelemetryStorage.jsm:1448:13
Source File: resource://gre/modules/Log.jsm
Line: 749

Nothing else.





Expected results:

When you go through your folders thunderbird should keep working as intended.
I forgot to mention that Thunderbird at that point keeps running and allows me to open some (never the same) folders still. Slowly but steadily it will give the error on all folders though.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Priority: -- → P1
Component: Untriaged → Account Manager
Alias: d0bc6fcb@opayq.com
Component: Account Manager → General
(priority is reserved for developers)
Priority: P1 → --
I got pointed at the imap logging option, must have missed that before. Here is a log file from start to the point i trigger the error.

I attached the file since 72000+ lines of log will not be nice to scroll through
Logging of imap session from start of client till error.

Triggering done by going through all the folders 1 by 1 in succession.
(In reply to d0bc6fcb from comment #0)
> User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101
> Firefox/42.0
> Build ID: 20151102093849
> 
> Steps to reproduce:
> 
> Thunderbird 42 beta on KUbuntu 15.04
> I have an exchange account set up under Thunderbird. No add ons enabled.
> Config of the exchange account:
> Server: exchange.xxx.xxx Port: 993
> Username: me
> Connection security: SSL/TLS
> Authentication methode: NTLM

Authentication "normal password" produces the same results.
Did this work for you in 41 beta, or any prior version?
Alias: d0bc6fcb@opayq.com
Component: General → Untriaged
Flags: needinfo?(d0bc6fcb)
It has been quite a while since i last used version 38, but i had the issue then as well. It was the main reason i started to use the beta versions, in the hope it would get fixed. Took me till November last year to decide and make a bug report for it.
Flags: needinfo?(d0bc6fcb)
I took the effort and put 38.6.0 as provided with Xubuntu 15.10 on another machine and configured mail only without plugins. Almost immediately the client complains about the login having failed. The client could not possibly have synced the entire mailbox yet, so this may be the cause here.

I am currently still syncing all folders and will post the results after when i finish that (sorry, 8GB mailbox, slow speed mailserver, it's exchange)
After having all mail synchronized the problem persists even in version 38.6.0, i cannot for the life of me remember if version 31 or earlier had this as well. I don't distinctly remember it though.
Kent, ever hear of such a thing?
Flags: needinfo?(rkent)
Summary: Login to exchange server fails regularly → "Login to server" appears regularly, walking through folders of exchange account
Never heard of such a thing directly, but the symptoms of this sound like an authentication key with a 30 minute lifetime, that for some reason Thunderbird does not recover from upon failure.
Flags: needinfo?(rkent)
similarities to bug 1097932
Not an Exchange server user, so unable to test it.
Tested the "solution" given in the link in bug 1097932, result, i cannot connect to exchange at all now.

So then went through the Account Settings -> Server Settings and worked through all connection/authentication combinations. I did not manage to find a combination that actually works. All of them respond with login failed. 

Is there any logging i can produce (and please help me help you by explaining how :)
Okay, i can authenticate (apparently i got locked out in my testing, odd since my password was correct all the time), but almost every folder i choose after the first password prompt results in a login failed.
And after another 15 attempts i settled on the same settings as before (SSL+NTLM) and on attempt 15 with that setting (including unlocking my mail account every time) i managed to egt logged in again. I will let you know if it happens again, should be within the next 4 hours if it does.
Dammit, should not have hit sent... still running into the same issue. Password list only contains 1 entry for exchange now as opposed to a few.
Component: Untriaged → Testing Infrastructure
Whiteboard: [dupme]
Do you see this problem with a nightly build from https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/ ?
Component: Testing Infrastructure → General
Flags: needinfo?(d0bc6fcb)
Summary: "Login to server" appears regularly, walking through folders of exchange account → "Login failed" ... "Login to server" appears regularly, walking through folders of exchange account - "NS_ERROR_XPC_BAD_CONVERT_NATIVE: Could not convert Native argument arg 5"
Whiteboard: [dupme] → [closeme 2017-05-15][dupme]
I downloaded the File thunderbird-55.0a1.en-US.linux-x86_64.tar.bz2 	53M 	24-Apr-2017 11:05

I do get the password error still. Also, I cannot subscribe to all folders and i always had the feeling that the problem is because of me having an excessive amount of folders.
Some just don't show up (all 1st level deep are shown, some 2nd and only 2 of the 3rd level) even if i refresh the subscription folder listing. (Folders Inbox and CC i assume "0 level", just for reference :))

What Thunderbird shows in subscription folders: http://prntscr.com/f0j1xh
What outlook shows in folders: http://prntscr.com/f0j25n

Obviously there are a lot of (useless) folders in outlook that would not show up or need to be shown in outlook. But all the folders below UNIX are needed (except maybe my archive). So missing those is very unpractical.


Do i need to capture a log of some sort? (I will do anything, but will need some guidance)
Flags: needinfo?(d0bc6fcb)
Whiteboard: [closeme 2017-05-15][dupme] → [dupme]
(In reply to Vincent Ouwehand from comment #19)
> I downloaded the File thunderbird-55.0a1.en-US.linux-x86_64.tar.bz2 	53M 
> 24-Apr-2017 11:05
> 
> I do get the password error still. Also, I cannot subscribe to all folders
> and i always had the feeling that the problem is because of me having an
> excessive amount of folders.
> Some just don't show up (all 1st level deep are shown, some 2nd and only 2
> of the 3rd level) even if i refresh the subscription folder listing.
> (Folders Inbox and CC i assume "0 level", just for reference :))
> 
> What Thunderbird shows in subscription folders: http://prntscr.com/f0j1xh
> What outlook shows in folders: http://prntscr.com/f0j25n
> 
> Obviously there are a lot of (useless) folders in outlook that would not
> show up or need to be shown in outlook. But all the folders below UNIX are
> needed (except maybe my archive). So missing those is very unpractical.
> 
> 
> Do i need to capture a log of some sort? (I will do anything, but will need
> some guidance)

I made a completely clean profile and the folders showed up again. The error is still the same, i would edit the comment but i can't so please disregard the complaint about the folders missing.
(In reply to Vincent Ouwehand from comment #20)
> ...
> I made a completely clean profile and the folders showed up again. The error
> is still the same, i would edit the comment but i can't so please disregard
> the complaint about the folders missing.

I don't understand what wording you are suggesting needs to change
Flags: needinfo?(d0bc6fcb)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: