HTC Hero-integrated Exchange active sync notworking(Android)

How to sync or use Zarafa with you PDA.

HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 09:11

Hello,
i tried using z-push with my new htc hero and its integrated exchange active sync. I entered the correct url, correct name and correct password, but after some seconds it sais "account could not be created, please try again later" at least thats my translation.

the server apache logs sais the following:

80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:47 +0200] "OPTIONS /Microsoft-Server-ActiveSync?User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 200 - "-" "And
roid-EAS/0.1"
80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:49 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 44
9 - "-" "Android-EAS/0.1"
80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:54 +0200] "OPTIONS /Microsoft-Server-ActiveSync?User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 200 - "-" "Android-EAS/0.1"
80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:55 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 449 - "-" "Android-EAS/0.1"
80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:58 +0200] "OPTIONS /Microsoft-Server-ActiveSync?User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 200 - "-" "Android-EAS/0.1"
80.187.109.230 - domain\\catscrash [10/Aug/2009:21:38:59 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=catscrash&DeviceId=HTCAnd1918747&DeviceType=htchero HTTP/1.1" 449 - "-" "Android-EAS/0.1"

any other logs i should search?
can you see something wrong?

thanks!

btw: with touchdown it works, but that doesn't help since it has a sandbox and you can't sync your calender and contacts with the main ones...
Last edited by Catscrash on 2009-08-11, 09:26, edited 1 time in total.
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync not working

Postby dw2412 on 2009-08-11, 09:24

Hi Catscrash,

please enable debug logging in Z-Push by creating debug.txt file in main folder (debug.php is in this folder) and give write rights to the webserver daemon user. Afterwards please change line 15 in wbxml (WBXML_DEBUG define) to true. Try the sync and post the results you find in debug.txt to this forum.

Additionally (although the debug.txt will mention) the Z-Push Version in use would help and the Windows Mobile Version information from your device could help, too.

Best regards

Andreas
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 09:32

debug.txt stays empty, i tried z-push SVN checkout and version 1.3beta2

btw it is android, not windows mobile, i should have mentioned that (http://www.jonoble.com/blog/2009/6/25/h ... hange.html)
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby dw2412 on 2009-08-11, 09:35

In case debug.txt remains empty and you say another device works well, I guess that the file rights for debug.txt are not propper. Try a chmod 777 on the debug.txt file.

Best regards

Andreas
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 09:51

-.- sry...

Code: Select all
08/11/09 09:51:23 [12262] Start
08/11/09 09:51:23 [12262] Z-Push version: SVN checkout
08/11/09 09:51:23 [12262] Client IP: 80.187.108.154
08/11/09 09:51:23 [12262] Client supports version 2.5
08/11/09 09:51:23 [12262] User catscrash logged on
08/11/09 09:51:23 [12262] Options request
08/11/09 09:51:23 [12262] end
08/11/09 09:51:23 [12262] --------
08/11/09 09:51:30 [12309] Start
08/11/09 09:51:30 [12309] Z-Push version: SVN checkout
08/11/09 09:51:30 [12309] Client IP: 80.187.108.154
08/11/09 09:51:30 [12309] Client supports version 2.5
08/11/09 09:51:31 [12309] User catscrash logged on
08/11/09 09:51:31 [12309] Options request
08/11/09 09:51:31 [12309] end
08/11/09 09:51:31 [12309] --------
08/11/09 09:51:32 [11711] Start
08/11/09 09:51:32 [11711] Z-Push version: SVN checkout
08/11/09 09:51:32 [11711] Client IP: 80.187.108.154
08/11/09 09:51:32 [11711] Client supports version 2.5
08/11/09 09:51:32 [11711] User catscrash logged on
08/11/09 09:51:32 [11711] POST cmd: FolderSync
08/11/09 09:51:32 [11711] end
08/11/09 09:51:32 [11711] --------
08/11/09 09:51:34 [11711] Start
08/11/09 09:51:34 [11711] Z-Push version: SVN checkout
08/11/09 09:51:34 [11711] Client IP: 80.187.108.154
08/11/09 09:51:34 [11711] Client supports version 2.5
08/11/09 09:51:34 [11711] User catscrash logged on
08/11/09 09:51:34 [11711] Options request
08/11/09 09:51:34 [11711] end
08/11/09 09:51:34 [11711] --------
08/11/09 09:51:35 [27259] User catscrash logged on
08/11/09 09:51:35 [27259] POST cmd: FolderSync
08/11/09 09:51:35 [27259] end
08/11/09 09:51:35 [27259] --------
08/11/09 09:51:37 [27467] Start
08/11/09 09:51:37 [27467] Z-Push version: SVN checkout
08/11/09 09:51:37 [27467] Client IP: 80.187.108.154
08/11/09 09:51:37 [27467] Client supports version 2.5
08/11/09 09:51:37 [27467] User catscrash logged on
08/11/09 09:51:37 [27467] Options request
08/11/09 09:51:37 [27467] end
08/11/09 09:51:37 [27467] --------
08/11/09 09:51:38 [29808] Start
08/11/09 09:51:38 [29808] Z-Push version: SVN checkout
08/11/09 09:51:38 [29808] Client IP: 80.187.108.154
08/11/09 09:51:38 [29808] Client supports version 2.5
08/11/09 09:51:38 [29808] User catscrash logged on
08/11/09 09:51:38 [29808] POST cmd: FolderSync
08/11/09 09:51:38 [29808] end
08/11/09 09:51:38 [29808] --------


then the error on the device pops up
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby dw2412 on 2009-08-11, 09:58

Did you switch on wbxml debugging? I wonder a bit since there is absolutly no XML Content in the FolderSync request.
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 10:05

at least i didn't switch anything off...

debug.php says
Code: Select all
error_reporting(E_ALL);
set_error_handler("zarafa_error_handler");


and i just changed in wbxml.php the following to true:
define('WBXML_DEBUG', true);

but that didn't change anything
08/11/09 10:06:00 [29808] Start
08/11/09 10:06:00 [29808] Z-Push version: SVN checkout
08/11/09 10:06:00 [29808] Client IP: 80.187.108.154
08/11/09 10:06:00 [29808] Client supports version 2.5
08/11/09 10:06:00 [29808] User catscrash logged on
08/11/09 10:06:00 [29808] POST cmd: FolderSync
08/11/09 10:06:00 [29808] end

did i miss anything?
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby dw2412 on 2009-08-11, 10:10

Now it is getting a bit strange for me. What you can try is to switch of provisioning. Have no idea if this could be the problem but this is usually the first thing that should occur.

Please give it a try and change request.php file. In function HandleRequest please comment out the first 13 lines that have to do with Provisioning.
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 13:11

you mean these ones:?

Code: Select all
    for($n=0;$n<$lifetime / $timeout; $n++ ) {
        //check the remote wipe status
        $rwstatus = $backend->getDeviceRWStatus($user, $auth_pw, $devid);
        if ($rwstatus == SYNC_PROVISION_RWSTATUS_PENDING || $rwstatus == SYNC_PROVISION_RWSTATUS_WIPED) {
            //return 7 because it forces folder sync
            $pingstatus = 7;
            break;
        }

        if(count($collections) == 0) {
            $error = 1;
            break;
        }
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby dw2412 on 2009-08-11, 14:10

No... These lines I mean:

file request.php function HandleRequest($backend, $cmd, $devid, $protocolversion)

Code: Select all
    $status = HandlePolicy($backend, $devid, $protocolversion);
    if ($cmd != 'Ping' && $cmd != 'Provision' ) {
        if ($status != SYNC_PROVISION_STATUS_SUCCESS) {
            header("HTTP/1.1 449 Retry after sending a PROVISION command");
            header("MS-Server-ActiveSync: 6.5.7638.1");
            header("MS-ASProtocolVersions: 1.0,2.0,2.1,2.5,12.0");
            // CHANGED dw2412 Support for Settings command
            header("MS-ASProtocolCommands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreateCollection,DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItems,GetItemEstimate,MeetingResponse,Provision,ResolveRecipients,ValidateCert,Settings,Search,Ping");
            header("Cache-Control: private");
            return 1;
        }
    }


Comment out all these lines in your version. Start at first line shown with /* and end behind last shown } with */

The point is that the HTC maybe need some other Provisioning Format. Although current Z-Push shows Protocol Version 2.5 maybe this is not covered correctly in device and it needs the "new" style that I currently work on for Protocol Version 12 Support.
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 14:58

sry, didn't read the "in function handle..."

but now... yay! it works... thank you again ;-)

do i have any disadvantages by commenting these lines out?
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby dw2412 on 2009-08-11, 15:40

Yes, Device Provisioning enables remote wipe. Means in case you loose your mobile you could wipe it.

So what you need to do is either to wait until my V12 is being published (SVN Branch needed for this, zSebastian is working on this) or to be happy to be a alpha tester of my V12 implementation...

Best regards

Andreas
Using Zarafa 6.40.1.21473 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 904
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Catscrash on 2009-08-11, 15:51

yes i would be happy to be your alphatester ;-)
Catscrash
Junior Member
 
Posts: 44
Joined: 2009-08-10, 17:54

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby Sebastian on 2009-08-17, 22:28

I could get this working in my Android emulator, with the same issues. I'm going to perform more tests. But I've also read that this new client is not working "very well". The problem is the provisioning, also with Exch. as they say in several forums.

Catscrash: Can you also sync calendar and contacts? My version doesn't support this.

Gr, Sebastian
User avatar
Sebastian
Special Member
 
Posts: 581
Joined: 2007-09-27, 10:59
Location: Aka SebastianBrasil

Re: HTC Hero-integrated Exchange active sync notworking(Android)

Postby toetensen on 2009-08-18, 20:39

SebastianBrasil wrote:I could get this working in my Android emulator, with the same issues. I'm going to perform more tests. But I've also read that this new client is not working "very well". The problem is the provisioning, also with Exch. as they say in several forums.

Catscrash: Can you also sync calendar and contacts? My version doesn't support this.

Gr, Sebastian


Hello Sebastian,

i use the same workaround from dw2412.

Yes. It works/syncs calender and contacts as well.

Greets , Marc
toetensen
Junior Member
 
Posts: 1
Joined: 2009-07-13, 20:48

Next