Skip navigation

some webcals not accessible

2741 Views 19 Replies Latest reply: Feb 13, 2013 8:48 AM by detourdog RSS
1 2 Previous Next
detourdog Calculating status...
Currently Being Moderated
Jul 25, 2012 9:48 AM

I have a problem with one particular webcal user not being able to use the webcal feature but iCal and Calendars on iPhone are ok.

What I find odd is that webcal for other users is fine.

 

While logging into webcal as this user the web interface is stuck with the getting events from server.. message.

 

Any ideas?

 

Ben

  • ~morgen Calculating status...
    Currently Being Moderated
    Jul 25, 2012 11:02 AM (in response to detourdog)

    When I've seen webcal stuck at that "getting events from server" message, it's usually been due to calendar server returning an error response code and webcal not handling that error gracefully. First I would check /var/log/caldavd/access.log to see if there are any requests not getting a 20X response.  The next step would be to view the actual HTTP response body for the error.  This can be done a few ways:

     

    1) Using your web browser's javascript console

    2) Enabling HTTP request logging on calendar server

    3) tcpdump to capture the traffic (although tougher if SSL is enabled)

     

    For #2 you have to edit the calendar server configuration.  If you're on Lion Server, it's /etc/caldavd/caldavd.plist.  If you are on Mountain Lion Server it's /Library/Server/Calendar and Contacts/Config/caldavd.plist

     

    Add this key to the caldavd.plist and restart calendar server:

     

        <key>AccountingCategories</key>

        <dict>

          <key>HTTP</key>

          <true/>

        </dict>

     

    You might also need to turn off gzip via:

     

        <key>ResponseCompression</key>

        <false/>

     

    From then on evey request/response is logged as a separate file in /var/log/caldavd/accounting/HTTP.  This can grow quickly, so undo the above plist changes when you are done debugging.

  • Andrea_Nove Calculating status...
    Currently Being Moderated
    Aug 7, 2012 3:37 AM (in response to detourdog)

    you solved the problem?

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 7, 2012 1:54 PM (in response to ~morgen)

    This appears to me in access.log:

     

    127.0.0.1 - andrea [07/Aug/2012:22:51:08 +0200] "GET /webcal/ HTTP/1.1" 200 3350 "https://10.10.2.254/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25" i=1 t=41.3 or=1 xff=10.10.2.30 fwd=10.10.2.30

    127.0.0.1 - andrea [07/Aug/2012:22:51:08 +0200] "GET /webcal/calendar/css/calendar_standalone.css HTTP/1.1" 200 2565 "https://10.10.2.254/webcal" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25" i=1 t=99.0 or=1 xff=10.10.2.30 fwd=10.10.2.30

     

     

     

    there are no errors in error.log after the request.

     

     

    How can I fix it??

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 7, 2012 2:21 PM (in response to Andrea_Nove)

    This appeared in error.log after restarting the mini:

     

     

    2012-08-07 23:10:57+0200 [-] Log opened.

    2012-08-07 23:10:57+0200 [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:10:57+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:10:57+0200 [-] AMPLoggingFactory starting on '/var/run/caldavd/caldavd.sock'

    2012-08-07 23:10:57+0200 [-] CalDAVStatisticsServer starting on '/var/run/caldavd/caldavd-stats.sock'

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Beginning database schema check.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Required database key VERSION: 9.

    2012-08-07 23:10:58+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Actual database key VERSION: 9.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Database schema check complete.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Beginning database data check.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Required database key CALENDAR-DATAVERSION: 3.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Actual database key CALENDAR-DATAVERSION: 3.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Data version check complete: no upgrade needed.

    2012-08-07 23:10:58+0200 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Database data check complete.

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8008

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8800

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8443

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8843

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8008

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8800

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8443

    2012-08-07 23:10:59+0200 [-] LimitingInheritingProtocolFactory starting on 8843

    2012-08-07 23:10:59+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] Log opened.

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] AMPPushNotifierFactory starting on 62311

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] InternalNotificationFactory starting on 62309

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] set uid/gid 93/93

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] Starting factory <twext.internet.adaptendpoint.LegacyClientFactoryWrapper instance at 0x10a181128>

    2012-08-07 23:11:00+0200 [-] [notifications] 2012-08-07 23:11:00+0200 [-] Starting factory <twext.internet.adaptendpoint.LegacyClientFactoryWrapper instance at 0x10a181368>

    2012-08-07 23:11:00+0200 [-] [groupcacher] 2012-08-07 23:11:00+0200 [-] Log opened.

    2012-08-07 23:11:00+0200 [-] [groupcacher] 2012-08-07 23:11:00+0200 [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:00+0200 [-] [groupcacher] 2012-08-07 23:11:00+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:00+0200 [-] [groupcacher] 2012-08-07 23:11:00+0200 [-] set uid/gid 93/93

    2012-08-07 23:11:00+0200 [-] [groupcacher] 2012-08-07 23:11:00+0200 [-] [twistedcaldav.directory.directory.GroupMembershipCacherService#warn] Starting group membership cacher service

    2012-08-07 23:11:01+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:11:01+0200 [-] [mailgateway] 2012-08-07 23:11:01+0200 [-] Log opened.

    2012-08-07 23:11:01+0200 [-] [mailgateway] 2012-08-07 23:11:01+0200 [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:01+0200 [-] [mailgateway] 2012-08-07 23:11:01+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:01+0200 [-] [mailgateway] 2012-08-07 23:11:01+0200 [-] HTTPFactory starting on 62310

    2012-08-07 23:11:01+0200 [-] [mailgateway] 2012-08-07 23:11:01+0200 [-] set uid/gid 93/93

    2012-08-07 23:11:01+0200 [-] [notifications] 2012-08-07 23:11:01+0200 [Uninitialized] [calendarserver.push.applepush.APNProviderFactory#warn] Connection to APN server made

    2012-08-07 23:11:01+0200 [-] [caldav-2] Reading configuration from file: /Library/Server/Calendar and Contacts/Config/caldavd.plist

    2012-08-07 23:11:01+0200 [-] [caldav-2]  [-] Log opened.

    2012-08-07 23:11:01+0200 [-] [caldav-2]  [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:01+0200 [-] [caldav-2]  [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:01+0200 [-] [notifications] 2012-08-07 23:11:01+0200 [Uninitialized] [calendarserver.push.applepush.APNProviderFactory#warn] Connection to APN server made

    2012-08-07 23:11:01+0200 [-] [caldav-2]  [-] set uid/gid 93/93

    2012-08-07 23:11:01+0200 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('/var/run/caldavd/caldavd.sock') PEER:UNIXAddress(''))

    2012-08-07 23:11:01+0200 [-] [caldav-2]  [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('/var/run/caldavd/caldavd.sock'))

    2012-08-07 23:11:01+0200 [-] [caldav-1] Reading configuration from file: /Library/Server/Calendar and Contacts/Config/caldavd.plist

    2012-08-07 23:11:01+0200 [-] [caldav-1]  [-] Log opened.

    2012-08-07 23:11:01+0200 [-] [caldav-1]  [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:01+0200 [-] [caldav-1]  [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:01+0200 [-] [caldav-1]  [-] set uid/gid 93/93

    2012-08-07 23:11:01+0200 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('/var/run/caldavd/caldavd.sock') PEER:UNIXAddress(''))

    2012-08-07 23:11:01+0200 [-] [caldav-1]  [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('/var/run/caldavd/caldavd.sock'))

    2012-08-07 23:11:01+0200 [-] [caldav-3] Reading configuration from file: /Library/Server/Calendar and Contacts/Config/caldavd.plist

    2012-08-07 23:11:01+0200 [-] [caldav-3]  [-] Log opened.

    2012-08-07 23:11:01+0200 [-] [caldav-3]  [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:01+0200 [-] [caldav-3]  [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:01+0200 [-] [caldav-3]  [-] set uid/gid 93/93

    2012-08-07 23:11:01+0200 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('/var/run/caldavd/caldavd.sock') PEER:UNIXAddress(''))

    2012-08-07 23:11:01+0200 [-] [caldav-3]  [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('/var/run/caldavd/caldavd.sock'))

    2012-08-07 23:11:01+0200 [-] [caldav-0] Reading configuration from file: /Library/Server/Calendar and Contacts/Config/caldavd.plist

    2012-08-07 23:11:01+0200 [-] [caldav-0]  [-] Log opened.

    2012-08-07 23:11:01+0200 [-] [caldav-0]  [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.

    2012-08-07 23:11:01+0200 [-] [caldav-0]  [-] reactor class: twext.internet.kqreactor.KQueueReactor.

    2012-08-07 23:11:01+0200 [-] [caldav-0]  [-] set uid/gid 93/93

    2012-08-07 23:11:01+0200 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('/var/run/caldavd/caldavd.sock') PEER:UNIXAddress(''))

    2012-08-07 23:11:01+0200 [-] [caldav-0]  [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('/var/run/caldavd/caldavd.sock'))

    2012-08-07 23:11:05+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:11:13+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:11:29+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

    2012-08-07 23:12:01+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

  • Mark23 Level 3 Level 3 (975 points)
    Currently Being Moderated
    Sep 3, 2012 1:37 PM (in response to detourdog)

    Have you given the specific user permissions to access the Calendar server?

    This is done in Server.app: Users; Right-click the user and see if the Calendar is ticked.

     

    If so, removing the check and later on re-enabling it might help...

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 3, 2012 1:43 PM (in response to Mark23)

    my user has the rights to the calendar :-(

  • Mark23 Level 3 Level 3 (975 points)
    Currently Being Moderated
    Sep 3, 2012 2:10 PM (in response to Andrea_Nove)
  • ~morgen Level 1 Level 1 (105 points)
    Currently Being Moderated
    Sep 4, 2012 7:37 AM (in response to detourdog)

    I don't see anything obviously wrong from this access.log, detourdog.  If you're still stuck with the "getting events from server" message for only one particular user, that implies there is something about the calendar data the javascript client doesn't like.  You should use Safari's "Develop > Show Error Console" menu item to see if you find what the error is.  If you don't have a "Develop" menu item in Safari, you can enable it via Safari's Preferences > Advanced > Show Develop menu in menu bar.

  • ~morgen Level 1 Level 1 (105 points)
    Currently Being Moderated
    Sep 4, 2012 7:40 AM (in response to Andrea_Nove)

    Andrea_Nove: this shouldn't be happening:

     

    2012-08-07 23:12:01+0200 [-] [memcached-Default] failed to listen on TCP port 11211: Address already in use

     

    That means calendar server is trying to run memcached but there is a memcached already running.  I would reboot the computer and see if that goes away.

     

    Are you having the same symptoms as detourdog where the webcal is working for all users but one?

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 5, 2012 3:41 AM (in response to ~morgen)

    Hello,
    the problem for all users from the server ... :-(

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 5, 2012 3:43 AM (in response to ~morgen)

    Hello,
    I rebooted several times but nothing, I've created a user group that has the rights (all services) to various users.

  • Andrea_Nove Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 6, 2012 2:39 PM (in response to Mark23)

    macmini:~ adminsrv$ dseditgroup -o edit -n /LDAPv3/127.0.0.1 -u diradmin -p -a Utenti -t group com.apple.access_calendar

    Please enter user password:

    Group not found.

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.