1 (edited by AntonK 2016-02-05 22:37:31)

Topic: Can't sync SOGo CardDAV contacts with OS X.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version:  Debian 7.8.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I have strange problem, which I can’t fix myself - my expertise is not enough for that.
I have installed iRedMail with SOGo groupware (MySQL backend) on small Zotac box with clean Debian 7.8.0 on it, sitting in my home.
It sits behind my router, so I forward ports on router. Currently, this ports are opened for access from outside: 25,80,143,443,587,5222,5269.
Synchronization of contacts and calendar working just fine on my iPhone and iPad in both DAV and ActiveSync modes, I can sync my SOGo calendar and tasks with laptop (MB Pro with OS X El Capitan 10.11.3 on it) without any problems, but I’m not able to sync my OS X contacts via CardDAV.
I even did reinstall of iredmail and OS X later, but with zero success.
I’m configuring OS X CardDAV account as described in manual:
username: me@myserver.com
password: password
server address: https://box.myserver.com/SOGo/dav/


When I restart SOGo daemon - it looks like it have problems with listening on default 20000 port:


Feb 05 09:08:43 sogod [4762]: <0x0x7f20ee742ea0[SOGoProductLoader]>   CommonUI.SOGo, Appointments.SOGo, AdministrationUI.SOGo, MainUI.SOGo, PreferencesUI.SOGo, SchedulerUI.SOGo, Mailer.SOGo, ContactsUI.SOGo, Contacts.SOGo, ActiveSync.SOGo, MailPartViewers.SOGo, MailerUI.SOGo
Feb 05 09:08:43 sogod [4762]: [WARN] <0x0x7f20ee74d8e0[WOWatchDog]> listening socket: attempt 1 failed
Feb 05 09:08:44 sogod [4762]: [WARN] <0x0x7f20ee74d8e0[WOWatchDog]> listening socket: attempt 2 failed
Feb 05 09:08:45 sogod [4762]: [WARN] <0x0x7f20ee74d8e0[WOWatchDog]> listening socket: attempt 3 failed
Feb 05 09:08:46 sogod [4762]: [WARN] <0x0x7f20ee74d8e0[WOWatchDog]> listening socket: attempt 4 failed
Feb 05 09:08:47 sogod [4762]: [WARN] <0x0x7f20ee74d8e0[WOWatchDog]> listening socket: attempt 5 failed
Feb 05 09:08:48 sogod [4762]: [ERROR] <0x0x7f20ee74d8e0[WOWatchDog]> unable to listen on specified port, check that no other process is already using it

When I'm trying to add my address book after stopping and starting SOGo - it shows following data in it's log:

Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> listening on 127.0.0.1:20000
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> watchdog process pid: 5237
Feb 05 09:10:55 sogod [5237]: <0x0x7f72df000d60[WOWatchDogChild]> watchdog request timeout set to 10 minutes
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> preparing 10 children
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5255
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5256
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5257
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5258
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5259
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5260
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5261
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5262
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5263
Feb 05 09:10:55 sogod [5237]: <0x0x7f72e1dc08e0[WOWatchDog]> child spawned with pid 5264
Feb 05 09:12:36 sogod [5263]: <0x0x7f72e1c78440[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5263]: <0x0x7f72e1c78440[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5264]: <0x0x7f72e1f446a0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5264]: <0x0x7f72e1f446a0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5260]: <0x0x7f72e1cc96d0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5260]: <0x0x7f72e1cc96d0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5259]: <0x0x7f72e1cc96d0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5259]: <0x0x7f72e1cc96d0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5256]: <0x0x7f72e1cc96d0[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5256]: <0x0x7f72e1cc96d0[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5262]: <0x0x7f72e1cc9770[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Feb 05 09:12:36 sogod [5262]: <0x0x7f72e1cc9770[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Feb 05 09:12:36 sogod [5260]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBAEQARFBDgEMg-/unseenCount HTTP/1.1" 200 13/0 0.302 - - 1M
Feb 05 09:12:36 sogod [5259]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderTrash/unseenCount HTTP/1.1" 200 13/0 0.325 - - 1M
Feb 05 09:12:36 sogod [5264]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BCAEMARBBEEESwQ7BDoEOA-/unseenCount HTTP/1.1" 200 13/0 0.337 - - 1M
Feb 05 09:12:36 sogod [5256]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.334 - - 1M
Feb 05 09:12:36 sogod [5263]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/uids HTTP/1.1" 200 84/53 0.372 - - 1M
Feb 05 09:12:36 sogod [5262]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderDrafts/unseenCount HTTP/1.1" 200 13/0 0.286 - - 1M
Feb 05 09:12:37 sogod [5260]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/unseenCount HTTP/1.1" 200 13/0 0.286 - - 0
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com HTTP/1.1" 401 0/181 0.007 - - 0
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com HTTP/1.1" 207 498/181 0.030 - - 480K
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "OPTIONS /SOGo/dav/me@myserver.com/ HTTP/1.1" 200 0/0 0.004 - - 0
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com HTTP/1.1" 207 516/439 0.008 1609 67% 212K
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com/Contacts/ HTTP/1.1" 207 680/717 0.028 2820 75% 284K
Feb 05 09:14:01 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com/Contacts/vmail_mailbox/ HTTP/1.1" 207 525/717 0.007 1387 62% -40K
Feb 05 09:14:04 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com HTTP/1.1" 401 0/127 0.004 - - 0
Feb 05 09:14:04 sogod [5260]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com HTTP/1.1" 207 325/127 0.012 - - 0
Feb 05 09:17:38 sogod [5264]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BCAEMARBBEEESwQ7BDoEOA-/unseenCount HTTP/1.1" 200 13/0 0.292 - - 0
Feb 05 09:17:38 sogod [5259]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.301 - - 0Feb 05 09:17:38 sogod [5263]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderDrafts/unseenCount HTTP/1.1" 200 13/0 0.305 - - 16K

Feb 05 09:17:38 sogod [5262]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBAEQARFBDgEMg-/unseenCount HTTP/1.1" 200 13/0 0.313 - - 0
Feb 05 09:17:38 sogod [5256]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderTrash/unseenCount HTTP/1.1" 200 13/0 0.314 - - 0
Feb 05 09:17:38 sogod [5260]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/uids HTTP/1.1" 200 84/53 0.375 - - 256K
Feb 05 09:17:39 sogod [5260]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/unseenCount HTTP/1.1" 200 13/0 0.321 - - 0
Feb 05 09:22:39 sogod [5262]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.301 - - 0
Feb 05 09:22:39 sogod [5264]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBAEQARFBDgEMg-/unseenCount HTTP/1.1" 200 13/0 0.309 - - 0
Feb 05 09:22:39 sogod [5259]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BCAEMARBBEEESwQ7BDoEOA-/unseenCount HTTP/1.1" 200 13/0 0.309 - - 0
Feb 05 09:22:39 sogod [5263]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderDrafts/unseenCount HTTP/1.1" 200 13/0 0.313 - - 0
Feb 05 09:22:39 sogod [5260]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/uids HTTP/1.1" 200 84/53 0.349 - - 0
Feb 05 09:22:39 sogod [5256]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folderTrash/unseenCount HTTP/1.1" 200 13/0 0.344 - - 0
Feb 05 09:22:40 sogod [5256]: 134.249.152.133 "POST /SOGo/so/me@myserver.com/Mail/0/folder_AM_BBIEMAQ2BD0ESwQ1-_SP__AM_BD8EOARBBEwEPAQw-/unseenCount HTTP/1.1" 200 13/0 0.295 - - 0
Feb 05 09:23:06 sogod [5256]: 134.249.152.133 "PROPFIND /SOGo/dav/me@myserver.com/Calendar/ HTTP/1.1" 401 0/2217 0.004 - - 0
Feb 05 09:23:06 sogod [5256]: [WARN] <0x0x7f72e1fcd870[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table
Feb 05 09:23:06 sogod [5256]: [WARN] <0x0x7f72e1fcd870[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table
Feb 05 09:23:06 sogod [5256]: [WARN] <0x0x7f72e1fcd870[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can't sync SOGo CardDAV contacts with OS X.

The dav server address should be: https://box.myserver.com/SOGo/dav/me@myserver.com

It's clearly mentioned in our tutorial:
http://www.iredmail.org/docs/sogo.macosx.contacts.html