googlearchive / calendar-connectors

Automatically exported from code.google.com/p/google-calendar-connectors
20 stars 20 forks source link

ERROR Google.GCalExchangeSync.Library.Scheduling.BaseWorker - GCalSync process failed #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Everytime I start the service I have this error

What is the expected output? What do you see instead?
I have this error message in my log file:
2009-10-09 16:15:52,636 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.Scheduling.BaseWorker - Starting
GCalSyncProcess
2009-10-09 16:15:52,636 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalSyncProcess - Exchange synchronization
process started.
2009-10-09 16:15:52,699 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.Util.BlockTimer - [Timer] - LoadUserList -
Total Execution Time: 16 ms.
2009-10-09 16:15:52,699 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.Util.BlockTimer - [Timer] - RunSyncProcess
- Total Execution Time: 62 ms.
2009-10-09 16:15:52,699 [Sentinel Thread] ERROR
Google.GCalExchangeSync.Library.Scheduling.BaseWorker - GCalSync process failed
System.FormatException: Le format de la chaîne d'entrée est incorrect***.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider,
String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format,
Object[] args)
   at Google.GCalExchangeSync.Library.ActiveDirectoryService..ctor()
   at
Google.GCalExchangeSync.Library.ExchangeService.QueryActiveDirectoryByAttribute(
String
ldapAttribute, String[] searchTerms)
   at
Google.GCalExchangeSync.Library.GCalSyncProcess.QueryExchangeForValidUsers()
   at Google.GCalExchangeSync.Library.GCalSyncProcess.RunSyncProcess(Int32
threadCount)
   at Google.GCalExchangeSync.Service.GCalSyncProcessHost.Execute()
   at Google.GCalExchangeSync.Library.Scheduling.BaseWorker.DoWork()

***Le format de la chaîne d'entrée est incorrect
In English it should be "The input string format is not correct"

What version of the product are you using? On what operating system?
I am using the Google Calendar Connector Sync Service v1.2.0.289.
Windows Server 2008 Standard Edition 64 bits with SP1
Exchange Server 2007 SP1

Please provide any additional information below.
I know it's not the supported version but can you please help me?
I cannot be sure but I think I filled the config file correctly. 
Do you think it should work if I compile the DLL from a 64 bits development
station?

Thanks.

Original issue reported on code.google.com by administ...@gtempaccount.com on 9 Oct 2009 at 3:02

GoogleCodeExporter commented 9 years ago
What is the value of "ActiveDirectory.DomainController" key in App.config file 
of the
Sync service? It should look like "LDAP://active.directory.server" and I guess 
the
value was configured to something like "LDAP://{active.directory.server}" since 
it
was resulting in a format error. Please check if it is so and kindly revert 
back if
that is not the issue.

Thanks!

Original comment by suman.ne...@gmail.com on 10 Oct 2009 at 4:26

GoogleCodeExporter commented 9 years ago
Thanks, it worked!

But now I have another problem...

This is my log content:
2009-10-12 09:26:59,680 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalSyncProcess - Processing user
MyUsername@MyDomain.com for [12/09/2009 09:26:59 - 11/12/2009 09:26:59]
2009-10-12 09:26:59,696 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalGateway - FeedQuery with parameters:
MyUsername@MyDomain.com, Private, Full, 01/01/0001 00:00:00 [[12/09/2009 
09:26:59 -
11/12/2009 09:26:59]]
2009-10-12 09:26:59,711 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalGateway - Querying GCal for User
'MyUsername@MyDomain.com':
https://www.google.com/calendar/feeds/MyUsername@MyDomain.com/private/full?max-r
esults=2147483647&start-min=2009-09-12T09:26:59+02:00&start-max=2009-12-11T09:26
:59+01:00&singleevents=true
2009-10-12 09:27:00,959 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.Util.BlockTimer - [Timer] - QueryGCal - Total
Execution Time: 1248 ms.
2009-10-12 09:27:00,959 [Sentinel Thread] DEBUG
Google.GCalExchangeSync.Library.ConnectionThrottle - Failure reported, 
increasing the
delay as appropriate
2009-10-12 09:27:00,959 [Sentinel Thread] DEBUG
Google.GCalExchangeSync.Library.ConnectionThrottle - Generated deviation of 126%
2009-10-12 09:27:00,959 [Sentinel Thread] ERROR
Google.GCalExchangeSync.Library.GCalSyncProcess - Error occured while executing 
sync
process for user 'MyUsername@MyDomain.com'. [running error count=1]
System.BadImageFormatException: Tentative de chargement d'un programme de format
incorrect. (Exception de HRESULT : 0x8007000B)
   at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince)
   at Google.GData.Client.Service.Query(FeedQuery feedQuery, DateTime ifModifiedSince)
   at Google.GCalExchangeSync.Library.GCalGateway.QueryGCal(FeedQuery query, String
userName, DateTime modifiedSince)
   at Google.GCalExchangeSync.Library.GCalGateway.QueryGCal(String email,
GCalVisibility visibility, GCalProjection projection, DateTime modifiedSince,
DateTimeRange window)
   at Google.GCalExchangeSync.Library.GCalSyncProcess.SyncUsers()

Original comment by administ...@gtempaccount.com on 12 Oct 2009 at 8:03

GoogleCodeExporter commented 9 years ago
By the way, I tried to open the link
https://www.google.com/calendar/feeds/MyUsername@MyDomain.com/private/full?max-r
esults=2147483647&start-min=2009-09-12T09:26:59+02:00&start-max=2009-12-11T09:26
:59+01:00&singleevents=true
in my browser and this is what I get:
Invalid value for start-min parameter: 2009-09-12T09:26:59 02:00

I tried to change the "start-min" parameter to "2009-09-12". I also had the same
error message for "start-max" so I changed it too to "2009-12-11".

Then, I got that:
Authorization required
Error 401

I don't have a Premium Edition account yet because I wanted to try the connector
before buying. Do you think it should solve my problem?

Thanks.

Original comment by administ...@gtempaccount.com on 12 Oct 2009 at 8:31

GoogleCodeExporter commented 9 years ago
This has nothing to do with not having a Premium Edition (a premier edition is 
free
to try, though).

The "System.BadImageFormatException" in the logs, might mean an issue with the 
Google
Calendar Connector Sync service binaries installed on your machine. Please see
http://msdn.microsoft.com/en-us/library/k7137bfe(VS.80).aspx. Can kindly let me 
know
the platform on which the connector sync service is running.

A second issue seems to be with the authorization. Please check that the keys
"GoogleApps.AdminUser.Login" and "GoogleApps.AdminUser.Password" are 
initialized to
an admin user's login/password in GoogleCalendarSyncService.exe.config file. 
Also,
check with "SyncService.FreeBusy.DetailLevel" set to "Basic" instead of "Full".

Please let me know how it goes.

Original comment by suman.ne...@gmail.com on 13 Oct 2009 at 8:11

GoogleCodeExporter commented 9 years ago
Of course. Here is my system config:
Google Calendar Connector Sync Service v1.2.0.289
Windows Server 2008 Standard Edition 64 bits with SP1
Exchange Server 2007 SP1

The GoogleApps.AdminUser.Login/Password are set correctly to the administrator
account I usually use to manage my Google Apps account.

This is what I get now, with "SyncService.FreeBusy.DetailLevel" set to Basic:
2009-10-13 11:06:13,659 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalSyncProcess - Processing user
MyUserName@MyDomain.com for [13/09/2009 11:06:13 - 12/12/2009 11:06:13]
2009-10-13 11:06:13,659 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalGateway - FeedQuery with parameters:
MyUserName@MyDomain.com, Private, FreeBusy, 01/01/0001 00:00:00 [[13/09/2009 
11:06:13
- 12/12/2009 11:06:13]]
2009-10-13 11:06:13,690 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.GCalGateway - Querying GCal for User
'MyUserName@MyDomain.com':
https://www.google.com/calendar/feeds/MyUserName@MyDomain.com/private/free-busy?
max-results=2147483647&start-min=2009-09-13T11:06:13+02:00&start-max=2009-12-12T
11:06:13+01:00
2009-10-13 11:06:14,892 [Sentinel Thread] INFO 
Google.GCalExchangeSync.Library.Util.BlockTimer - [Timer] - QueryGCal - Total
Execution Time: 1201 ms.
2009-10-13 11:06:14,892 [Sentinel Thread] DEBUG
Google.GCalExchangeSync.Library.ConnectionThrottle - Failure reported, 
increasing the
delay as appropriate
2009-10-13 11:06:14,892 [Sentinel Thread] DEBUG
Google.GCalExchangeSync.Library.ConnectionThrottle - Generated deviation of 119%
2009-10-13 11:06:14,892 [Sentinel Thread] ERROR
Google.GCalExchangeSync.Library.GCalSyncProcess - Error occured while executing 
sync
process for user 'MyUserName@MyDomain.com'. [running error count=1]
System.BadImageFormatException: Tentative de chargement d'un programme de format
incorrect. (Exception de HRESULT : 0x8007000B)
   at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince)
   at Google.GData.Client.Service.Query(FeedQuery feedQuery, DateTime ifModifiedSince)
   at Google.GCalExchangeSync.Library.GCalGateway.QueryGCal(FeedQuery query, String
userName, DateTime modifiedSince)
   at Google.GCalExchangeSync.Library.GCalGateway.QueryGCal(String email,
GCalVisibility visibility, GCalProjection projection, DateTime modifiedSince,
DateTimeRange window)
   at Google.GCalExchangeSync.Library.GCalSyncProcess.SyncUsers()

Original comment by administ...@gtempaccount.com on 13 Oct 2009 at 9:13

GoogleCodeExporter commented 9 years ago
Exchange 2007 is not supported in existing version of GCC (Google Calendar
Connectors) and is expected to be released shortly.

Sorry about that.

Original comment by suman.ne...@gmail.com on 13 Oct 2009 at 9:32

GoogleCodeExporter commented 9 years ago
Ok.

I was just hopping it could work... Even if it was not officialy supported.

Thank you anyway.

Original comment by administ...@gtempaccount.com on 13 Oct 2009 at 9:33

GoogleCodeExporter commented 9 years ago
I solved the problem regarding the DLL thing. The service may have been 
compiled for
x64 but the DLL has been compiled for x86. As the service is running in x64 
native
mode, the DLL is not loaded properly.
Forcing the service to start in x86 mode using WoW64 is needed.

Do to so, you can use "corflags.exe" which is a tool included in the dotNet 
Framework
SDK. Download it on your server, and use it with the "/32BIT+" option.

I still have errors in my logfile but I guess it's because of compatibility 
issues...
The attached text file is my logfile.

Good work anyway, and thanks for the help.

Original comment by administ...@gtempaccount.com on 13 Oct 2009 at 1:09

Attachments: