[horde] Problem syncing with AS on Horde webmail 5.2.16

Louis-Philippe Allard lp.allard.1 at gmail.com
Tue Mar 7 12:46:22 UTC 2017


  Quoting Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>
>> Quoting Simon Wilson <simon at simonandkate.net>:
>>
>>> ----- Message from Louis-Philippe Allard <lp.allard.1 at gmail.com> ---------
>>>     Date: Tue, 01 Nov 2016 23:23:27 -0400
>>>     From: Louis-Philippe Allard <lp.allard.1 at gmail.com>
>>> Reply-To: lp.allard.1 at gmail.com
>>> Subject: Re: [horde] Problem syncing with AS on Horde webmail 5.2.16
>>>       To: horde at lists.horde.org
>>>
>>>> Quoting Simon Wilson <simon at simonandkate.net>:
>>>>
>>>>> ----- Message from Louis-Philippe Allard <lp.allard.1 at gmail.com>  
>>>>> ---------
>>>>>    Date: Tue, 01 Nov 2016 22:29:41 -0400
>>>>>    From: Louis-Philippe Allard <lp.allard.1 at gmail.com>
>>>>> Reply-To: lp.allard.1 at gmail.com
>>>>> Subject: Re: [horde] Problem syncing with AS on Horde webmail 5.2.16
>>>>>      To: horde at lists.horde.org
>>>>>
>>>>>> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>>>>>>
>>>>>>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>>>>>>
>>>>>>>> Hello maillist.  I hope someone can help with AS.  The  
>>>>>>>> problem is that sync seems successful but nothing appears on  
>>>>>>>> the Android client.
>>>>>>>>
>>>>>>>> Basically, I am running Horde webmail 5.2.16 on a centos VM  
>>>>>>>> server which is accessible ONLY on LAN at adress  
>>>>>>>> https://centos-horde/horde.  I am using IMP as Horde's auth  
>>>>>>>> backend with my Gmail creds.
>>>>>>>>
>>>>>>>> I have successfully setup AS as per the wiki's instructions.
>>>>>>>>
>>>>>>>> I have also setup the exchange account properly (?) on the  
>>>>>>>> Android client.  Client is a Nexus 6P phone.
>>>>>>>>
>>>>>>>> I can see the client device under Administration > ActiveSync Devices
>>>>>>>>
>>>>>>>> User:  lp.allard.1 at gmail.com
>>>>>>>> Device: Android
>>>>>>>> Last Sync Time: October 31, 2016 18:53
>>>>>>>> Status: Not Provisioned
>>>>>>>> Device Information:
>>>>>>>> ID: ANDROIDCXXXXXXXXXXXX
>>>>>>>> POLICY KEY: 0
>>>>>>>> USER AGENT: Android-Mail/6.9.25.134833125.release
>>>>>>>> EAS VERSION: 14.1
>>>>>>>> FORCED MULTIPLEXED BITMASK: 15
>>>>>>>> CACHED HEARTBEAT (SECONDS): Unavailable
>>>>>>>>
>>>>>>>> The exchange account was added on the client by going in  
>>>>>>>> Settings > Accounts then adding an Exchange Account.
>>>>>>>>
>>>>>>>> The first "gotcha" was that Android wouldn't let me use my  
>>>>>>>> Gmail adress as username (the one I currently use to login to  
>>>>>>>> Horde) as it was already in use with my GMail account on the  
>>>>>>>> device (Exact message was:  You're already using this  
>>>>>>>> username for the account Gmail).  I used a fake email like  
>>>>>>>> user at horde.localdomain to get past this step.
>>>>>>>>
>>>>>>>> Then I clicked on "Manual setup"
>>>>>>>>
>>>>>>>> Then I clicked on "Exchange" and entered my Gmail (and Horde)  
>>>>>>>> password.  Then clicked "Next".
>>>>>>>>
>>>>>>>> Then I changed the Domain\Username field to my Gmail address  
>>>>>>>> (which is also the Horde username), entered my Gmail  
>>>>>>>> password, changed the server field to "centos-horde".  The  
>>>>>>>> port was left to default 443, and the security type was  
>>>>>>>> changed to TLS/SSL (Accept all certs) because other security  
>>>>>>>> settings didnt allow rto securely connect to the server...
>>>>>>>>
>>>>>>>> I finally hit Next, then was presented with the Sync options  
>>>>>>>> which I left all checked and hit Finish.
>>>>>>>>
>>>>>>>> After that, the AS sync process started on the server (using  
>>>>>>>> tail -f on the AS log file I saw tons of text going by).
>>>>>>>>
>>>>>>>> One thing I noticed in the AS log is this coming back over  
>>>>>>>> and over again:
>>>>>>>>
>>>>>>>> 2016-10-31T19:44:08-04:00 androidcXXXXXXXXXXXXX INFO: [27189]  
>>>>>>>> Maximum memory usage for ActiveSync request: 19968048 bytes.
>>>>>>>
>>>>>>> This is a normal entry, simply stating how much memory the  
>>>>>>> request used.
>>>>>>>
>>>>>>>> After the sync completes, Calendar is empty, task list is  
>>>>>>>> empty, and contacts are empty...
>>>>>>>
>>>>>>> Was the Email empty too?
>>>>>>>
>>>>>>> Hard to give any useful feedback without seeing the log, but  
>>>>>>> if the email worked and the other collections didn't you could  
>>>>>>> try making sure that the preferences for each application are  
>>>>>>> set correctly to allow them to be synchronized.
>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Louis-Philippe Allard
>>>>>>>> lp.allard.1 at gmail.com
>>>>>>>> Sent using Horde Groupware on GNU/Linux
>>>>>>>> --
>>>>>>>> Horde mailing list
>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>>
>>>>>>> --
>>>>>>> mike
>>>>>>> The Horde Project
>>>>>>> http://www.horde.org
>>>>>>> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>>>>>>
>>>>>> Hello Michael,  what permissions would I need to double check?   
>>>>>> I suspect they would be located in Administration >  
>>>>>> Permissions, but to be honest the webinterface is cryptic to  
>>>>>> me.  How do these work exactly?
>>>>>>
>>>>>> For example, the item "Address Book (turba) is set as follows:
>>>>>> All authenticated users : Show+Read+Edit+Delete
>>>>>> Guest permissions:  NONE (all unchecked)
>>>>>> Creator permissions: NONE (all unchecked)
>>>>>> Individual users: NONE (all unchecked)
>>>>>> Groups:  nothing in there...
>>>>>>
>>>>>> In the meantime I will retry with email by disabling the Gmail  
>>>>>> account on the phone and see if at least email gets synced thru  
>>>>>> AS.
>>>>>>
>>>>>> Thanks
>>>>>> Louis-Philippe Allard
>>>>>
>>>>> Check PREFERENCES not permissions. E.g. Calendar Preferences -  
>>>>> Synchronization Preferences.
>>>>>
>>>>> And quoting Michael, without a log file: "Hard to give any  
>>>>> useful feedback".
>>>>>
>>>>> Simon.
>>>>>
>>>>> --
>>>>> Simon WilsonM: 0400 12 11 16
>>>>
>>>> OK I have set the preferences to Sync all elements (2 calendars  
>>>> and 2 contactlists).  The items still dont show up on the phone  
>>>> although sync takes 5+minutes and the phone is busy syncing while  
>>>> this completes.
>>>>
>>>> Is there any ways to obfuscate the AS log file??  Handing over  
>>>> the log is like handing over my calendar and contact list... :)
>>>> Louis-Philippe Allard
>>>>  
>>>
>>> One suggestion if you are not able to share the log details would  
>>> be to set up a new empty account, create an event or two, some  
>>> emails, and a contact or two so that somethng is there to sync.  
>>> Then you can share the log file. That will also rule out a few  
>>> things for troubleshooting if that syncs ok or doesn't...
>>>
>>> Simon.
>>>
>>> --
>>> Simon WilsonM: 0400 12 11 16
>>
>> Hello
>>
>> OK I have performed a few tests.
>>
>> I have removed ALL accounts on the android phone and rebooted it.
>>
>> I have added the Horde AS account first before my Google account,  
>> and while it was syncing, I looked at the data. Emails never  
>> synced, but calendar, & contacts have synced.  After sync was done  
>> (no more output in the Activesync log), the data in calendar and  
>> contacts have DISAPPEARED from the phone.
>>
>> I am preparing a log to send to horde devs.  Could it be a bug in android?
>
> Always a possibility. Might have something to do with the email  
> address being a google email (even though you used a dummy email to  
> get around that initially, the real email is sent to the client from  
> the server as part of the initial sync negotiation). I can give a  
> look at the log though to see if anything else jumps out.
>
>> Louis-Philippe Allard
>> lp.allard.1 at gmail.com
>> Sent using Horde Groupware on GNU/Linux
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
> --
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject

Hello,

so I managed to create the Exchange account on the phone, and sync  
goes well.  There was numerous Android updates betwen now and when I  
initially posted to the maillist so.... Perhaps some stuff was fixed  
on the android side?

Anyways, now that sync works well, I am facing a new problem.....   
Once the exchange account is successfully synced, all is OK then all  
of a sudden, a Gmail icon shows up in the notification bar and says  
"Couldnt sign in".  Immediately, all data from the exchange (AS)  
server is removed fromt he phone!  The account is actually removed  
from the phone.  This is applicable for the calendar and contacts.

I have narrowed this down to the fact that while at work,  my phone  
doesnt have access to my horde server and therefore cannot sync.  Fair  
enough, but in former times (last time I successfully used AS &  
Android) the data would remain on the phone until syncing was possible  
again.

Now because of this, once the exchange server is once again available,  
I have to manually sync the account on the phone by going in Settings  
 > Accounts > Echange > Sync all...

Major annoyance.  Is it a problem on the Horde side or is it on the  
crappy android side?
In former times, when the exchange server
  Louis-Philippe Allard
lp.allard.1 at gmail.com
Sent using Horde Groupware on GNU/Linux


More information about the horde mailing list