View Issue Details

IDProjectCategoryView StatusLast Update
0003939SOGoActiveSyncpublic2017-05-01 20:38
ReporterePirat Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
PlatformClientOSWindowsOS Version10
Product Version3.2.4 
Summary0003939: Unable to login with Windows 10
Description

I tried logging in in the Windows 10 Mail App using ActiveSync, which seems to work (even though SOGo returns HTTP Error 401) but later when trying to sync I get the message that the server version is too old.

Looking at the SOGo logs it contain the following for the login attempt:

Dec 09 20:55:41 sogod [18267]: |SOGo| starting method 'OPTIONS' on uri '/SOGo/Microsoft-Server-ActiveSync?User=TestUser&DeviceId=XXXXXXXXXXXXXXXXXXX&DeviceType=WindowsMail'
2016-12-09 20:55:41.490 sogod[18267] PG0x0x7fcad65cca80 SQL: SELECT c_password FROM users WHERE c_uid = 'TestUser'
Dec 09 20:55:41 sogod [18267]: <0x0x7fcad6227050[SOGoCache]> an error occurred when caching value for key 'TestUser +attributes': "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY"
2016-12-09 20:55:41.492 sogod[18267] PG0x0x7fcad65cca80 SQL: SELECT * FROM users WHERE (c_uid = 'TestUser') OR (mail = 'testuser')
Dec 09 20:55:41 sogod [18267]: <0x0x7fcad6227050[SOGoCache]> an error occurred when caching value for key 'TestUser +attributes': "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY"
Dec 09 20:55:41 sogod [18267]: <0x0x7fcad6227050[SOGoCache]> an error occurred when caching value for key 'testuser@example.com+attributes': "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY"
Dec 09 20:55:41 sogod [18267]: |SOGo| request took 0.004566 seconds to execute
Dec 09 20:55:41 sogod [18267]: 127.0.0.1 "OPTIONS /SOGo/Microsoft-Server-ActiveSync?User= TestUser&DeviceId= XXXXXXXXXXXXXXXXXXX&DeviceType=WindowsMail HTTP/1.1" 200 0/0 0.006 - - 0
Dec 09 20:55:41 sogod [18267]: |SOGo| starting method 'OPTIONS' on uri '/SOGo/Microsoft-Server-ActiveSync'
Dec 09 20:55:41 sogod [18267]: <0x0x7fcad6247460[SOGoDAVAuthenticator]> tried unknown authentication method: Bearer (B)
Dec 09 20:55:41 sogod [18267]: |SOGo| request took 0.000205 seconds to execute
Dec 09 20:55:41 sogod [18267]: 127.0.0.1 "OPTIONS /SOGo/Microsoft-Server-ActiveSync HTTP/1.1" 401 33/0 0.001 - - 0

(The username/e-mail was replaced with TestUser and the DeviceID with XXXXXXXXXXXXXXXXXXX as I do not want to make them public)

Steps To Reproduce
  1. Open the Mail app in Windows 10
  2. Add Account "Exchange ActiveSync"
  3. Enter Account details

It appears like it has worked fine, but according to the SOGo log, it has not due to the unknown authentication method, Bearer.

TagsNo tags attached.

Activities

ePirat

ePirat

2016-12-09 21:10

reporter   ~0010981

Last edited: 2016-12-09 21:10

Of course the query is not "User= TestUser" or the Databse query "key 'TestUser +attributes'", these spaces were added by accident, not sure how though, but they are not present in my original log.

tfu

tfu

2016-12-10 09:59

reporter   ~0010982

Are you sure about the username you entered? e.g testuser instead of testuser@domain.tld.

ePirat

ePirat

2016-12-10 10:11

reporter   ~0010983

Last edited: 2016-12-10 10:12

Are you sure about the username you entered?
The login window has a field for username and one for the email, in the email field I entered the email and in the username field I entered the username.

tfu

tfu

2016-12-10 10:49

reporter   ~0010984

I asked because it works for me, but I get the same error when I enter an invalid username / password combination. I my case username and email-address is the same.

tfu

tfu

2016-12-13 07:42

reporter   ~0010988

Do you still need help?

ePirat

ePirat

2016-12-13 08:46

reporter   ~0010989

Last edited: 2016-12-13 08:47

Yes, for authentication I am using a postgresql database, and authentication has to be done using the username in my case.

tfu

tfu

2016-12-13 09:19

reporter   ~0010990

To get rid of the messages like

'an error occurred when caching value for key 'TestUser +attributes': "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY"'

you should check whether memcached is installed an configured.

To debug the error 'tried unknown authentication method: Bearer (B)'
Create a tcpdump while creating the profile
tcpdump -i lo -s 0 -w /tmp/dump.pcap tcp and port 20000
and
set PGDebugEnabled=YES and SOGoEASDebugEnabled = YES

You can send the info to tfu@aon.at

ludovic

ludovic

2017-01-06 17:56

reporter   ~0011173

No feedback provided.

Just tested and all works fine - suspending for now.

Issue History

Date Modified Username Field Change
2016-12-09 21:06 ePirat New Issue
2016-12-09 21:10 ePirat Note Added: 0010981
2016-12-09 21:10 ePirat Note Edited: 0010981
2016-12-10 09:59 tfu Note Added: 0010982
2016-12-10 10:11 ePirat Note Added: 0010983
2016-12-10 10:12 ePirat Note Edited: 0010983
2016-12-10 10:49 tfu Note Added: 0010984
2016-12-13 07:42 tfu Note Added: 0010988
2016-12-13 08:46 ePirat Note Added: 0010989
2016-12-13 08:47 ePirat Note Edited: 0010989
2016-12-13 09:19 tfu Note Added: 0010990
2017-01-06 17:56 ludovic Note Added: 0011173
2017-01-06 17:56 ludovic Status new => closed
2017-01-06 17:56 ludovic Assigned To => ludovic
2017-01-06 17:56 ludovic Resolution open => suspended