Re: Re: [SOGo] Cannot get SOGo/OpenChange working with Cyrus-IMAP

2013-04-06 Thread lloydsystems
Hi Jean,

Thanks very much for your response.  I created a sogo.conf file from the output
of the 'sogo-tool dump-defaults' and it works!  I found by trial and error it
accepts C-style comments too.

Thanks also for the tip about running imapd with '-N' option.  That is
certainly better than using pwcheck_method = alwaystrue because, on EL, that
requires a rebuild of the SASL rpm to enable the option.  Should add it to the
documentation one day.

I also updated the openchange packages (3 of) to those on the nightly build
and, as you suggested, this fixed the 100% CPU usage problem with paster.

I ran the openchange_cleanup.py script and got the following output:

Logged in as 'testuser'
Traceback (most recent call last):
  File ./openchange_cleanup.py, line 254, in module
main()
  File ./openchange_cleanup.py, line 88, in main
sqlCleanup(username)
  File ./openchange_cleanup.py, line 229, in sqlCleanup
OCSFolderInfoURL = getOCSFolderInfoURL()
  File ./openchange_cleanup.py, line 193, in getOCSFolderInfoURL
sogoDefaults = plistlib.readPlist(sogoSysDefaultsFile)
  File /usr/lib64/python2.6/plistlib.py, line 78, in readPlist
rootObject = p.parse(pathOrFile)
  File /usr/lib64/python2.6/plistlib.py, line 406, in parse
parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0

so I'm not sure if it was successful.  I deleted the user profile and tried
Outlook again, but unfortunately I got the same result as before (as posted on
the 5th).  Outlook hangs at the splash screen for 12 minutes, then opens and
displays mail.  When it does the maillog shows testuser logged in on service
'imaplocal' (127.0.0.1).  If the authentication works, why does Outlook hang
for 12 minutes?

The apache logs are not much help.  The ocsmanager log shows little more than
service start/stop messages.  When Outlook does open it shows some messages
'client did not pass auth cookie'.  The samba log, just before Outlook hangs
shows this:

registered class 'MAPIStoreNotesContext' as handler of 'notes' contexts
registered class 'MAPIStoreFallbackContext' as handler of 'fallback' contexts
registered class 'MAPIStoreCalendarContext' as handler of 'calendar' contexts
registered class 'MAPIStoreOutboxContext' as handler of 'outbox' contexts
registered class 'MAPIStoreTasksContext' as handler of 'tasks' contexts
registered class 'MAPIStoreContactsContext' as handler of 'contacts' contexts
registered class 'MAPIStoreMailContext' as handler of 'mail' contexts
[ERROR] 0x0x2b3f868[NGLdapAttribute] cound not convert value of objectGUID to
string
[ERROR] 0x0x3719c78[NGLdapAttribute] cound not convert value of objectSid to
string
[WARN] 0x0x4517108[SOGoWebDAVAclManager] entry '{DAV:}write' already exists
in DAV permissions table
[WARN] 0x0x4517108[SOGoWebDAVAclManager] entry '{DAV:}write-properties'
already exists in DAV permissions table
[WARN] 0x0x4517108[SOGoWebDAVAclManager] entry '{DAV:}write-content' already
exists in DAV permissions table
[ERROR] 0x0x4191128[NGLdapAttribute] cound not convert value of objectGUID to
string
[ERROR] 0x0x4191888[NGLdapAttribute] cound not convert value of objectSid to
string
WARNING: IMAP4 connection pooling is disabled!

Once Outlook opens there is reams of openchange-related junk written to the log
making it impossible to gather anything useful.  Looks more like programmers
debugging info than a log file.  Maybe this is of some help?

Regards,

Stephen Jones
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: Re: [SOGo] Cannot get SOGo/OpenChange working with Cyrus-IMAP

2013-04-06 Thread lloydsystems
Hi Jean,

OK, I grabbed the latest openchange_cleanup.py script and ran it and, from the
output, appeared to be successful.

I tried Outlook again with a new profile and this time it did not hang at the
splash screen.  However, there was no email visible other than a message
created by Outlook about sync issues, seemingly with Inbox.  It did create the
folder 'Junk E-mail'.  Attempting to update folders failed.  After a few
minutes Outlook said it was disconnected - game over.  

In the samba log file there were many messages related to MAPIStore___Context
saying 'you should *never* get here'!!  The last log entry was a 'panic:
internal error'.

The maillog showed 'testuser nopassword' logged in on service 'imaplocal'.  The
imap protocol logging shows connection activity by testuser, but nothing
retrieved.

So, I repeated the whole process, and this time went back to hanging at the
Outlook splash screen.  But, once it opens after 12 minutes, the mail is there.
 I ambitiously tried to send an email, but it just stuck in the outbox.

It seems to be some connection problem between OpenChange and the SOGo backend
or IMAP server.  But SOGo works just fine from its web GUI, and I guess I'll
have to settle with that for now.

It may be a hard question but do you know at what timeframe or version the
OpenChange/Outlook solution should reach a point where it is stable for live
use?

Regards,

Stephen Jones
-- 
users@sogo.nu
https://inverse.ca/sogo/lists