Server App 4.0 stuck on "Upgrading Calendar Service"

Hi,


i just updated to Yosemite and then to Server 4.0. During the upgrade the Server App gets stuck on updating the calendar service. I really do not use that service. Any idea how I can get this to get past this so I can actually configure the server from within Server App?

Mac mini, OS X Mavericks (10.9.4), also have an AmigaONE

Posted on Oct 16, 2014 6:57 PM

Reply
28 replies

Oct 17, 2014 4:31 AM in response to _morgen__

Here is what I see in the migration log.


calendarpromotionextra: Oct 17 07:26:50 /Library/Server/Calendar and Contacts/Config/caldavd-system.plist does not exist

calendarpromotionextra: Oct 17 07:26:50 DataRoot: /Library/Server/Calendar and Contacts/Data

calendarpromotionextra: Oct 17 07:26:50 ServerRoot: /Library/Server/Calendar and Contacts

calendarcommonextra: Oct 17 07:26:51 Clean install: False

calendarcommonextra: Oct 17 07:26:51 Legacy indicator file does not exist

calendarcommonextra: Oct 17 07:26:51 Default certificate is: /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.cert.pem

calendarcommonextra: Oct 17 07:26:51 Default cert path: /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.cert.pem

calendarcommonextra: Oct 17 07:26:51 Reading plist /Library/Server/Calendar and Contacts/Config/caldavd-system.plist

calendarcommonextra: Oct 17 07:26:51 Reading plist /Library/Server/Calendar and Contacts/Config/caldavd-system.plist

calendarcommonextra: Oct 17 07:26:51 Read in plist /Library/Server/Calendar and Contacts/Config/caldavd-system.plist

calendarcommonextra: Oct 17 07:26:51 Base path is /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.

calendarcommonextra: Oct 17 07:26:51 Setting SSLCertificate to /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.cert.pem

calendarcommonextra: Oct 17 07:26:51 Setting SSLAuthorityChain to /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.chain.pe m

calendarcommonextra: Oct 17 07:26:51 Setting SSLPrivateKey to /etc/certificates/example.com.E7FAC41F434ACAF4C94E95F658C63AB50EEB2A58.key.pem

calendarcommonextra: Oct 17 07:26:51 Writing plist /Library/Server/Calendar and Contacts/Config/caldavd-system.plist

calendarcommonextra: Oct 17 07:26:51 EnableCalDAV=False

calendarcommonextra: Oct 17 07:26:51 EnableCardDAV=False

calendarcommonextra: Oct 17 07:26:51 Looking up DatabaseRoot

calendarcommonextra: Oct 17 07:27:02 Output from calendarserver_config: DatabaseRoot=/Library/Server/Calendar and Contacts/Data/Database.xpg



calendarcommonextra: Oct 17 07:27:02 Looking up Postgres.ClusterName

calendarcommonextra: Oct 17 07:27:03 Output from calendarserver_config: Postgres.ClusterName=cluster.pg



calendarcommonextra: Oct 17 07:27:03 Sending to serveradmin: calendar:command = exportPushCertificates



calendarcommonextra: Oct 17 07:27:06 Output from push certificate export: calendar:Exported = "Yes"



calendarcommonextra: Oct 17 07:27:06 Calling calendarserver_upgrade --postprocess

Oct 17, 2014 4:41 AM in response to _morgen__

thanks, your tip helped me get past this.


I saw errors in the xpg log, so I renamed renamed both the Data and Config folders and created empty replacements.


This allowed the updater to treat the Calendar Service like a new install and it re-created everything and finished it in under 1 minute.


So, now Server App completed installing and all is good. )

Oct 17, 2014 11:18 AM in response to Erich Wetzel

In the /Library/Server/Calendar and Contacts folder I renamed both the Data and Config folders by adding the suffix .old.

I then create empty folders to replace them both.


User uploaded file

Then I ran the update again and it got past the Calendar service by creating all the missing structures in the new folders.


After that all is well again. this worked for me because I did not have any data to loose as I was not using the service to begin with.

Oct 17, 2014 11:24 AM in response to _morgen__

This is the XPG log.


014-10-16 20:34:40 XPG.4952: Process parent is PID 1

2014-10-16 20:34:40 XPG.4952: Excluding data directory.

2014-10-16 20:34:40 XPG.4952: Turning on archive logging.

Traceback (most recent call last):

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 423, in errback

self._startRunCallbacks(fail)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 490, in _startRunCallbacks

self._runCallbacks()

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 577, in _runCallbacks

current.result = callback(current.result, *args, **kw)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1155, in gotResult

_inlineCallbacks(r, g, deferred)

--- <exception caught here> ---

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1097, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/failure.py", line 389, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)

File "/Applications/Server.app/Contents/ServerRoot/usr/bin/xpostgres", line 2038, in main

result = yield xpg.do_everything(argv, environ)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1099, in _inlineCallbacks

result = g.send(result)

File "/Applications/Server.app/Contents/ServerRoot/usr/bin/xpostgres", line 1107, in do_everything

self.toggle_wal_archive_logging(True)

File "/Applications/Server.app/Contents/ServerRoot/usr/bin/xpostgres", line 1307, in toggle_wal_archive_logging

postgres_config = postgres_fp.getContent().split("\n")

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/filepath.py", line 287, in getContent

fp = self.open()

File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/filepath.py", line 828, in open

return open(self.path, mode + 'b')

exceptions.IOError: [Errno 2] No such file or directory: '/Library/Server/Calendar and Contacts/Data/Database.xpg/cluster.pg/postgresql.conf'

Oct 17, 2014 11:26 AM in response to _morgen__

In one of the log files I checked I saw that there is a check to determine if this was an initial installation or an upgrade. I basically be renaming the folders made it think it was doing an initial installation and not an upgrade, which for my purposes was ok.


Even if I had data this would have been fine as both contacts and calendar I could sync back from other devices.

Oct 17, 2014 12:37 PM in response to Kraftwerk

That is unusual -- what server version had you been running prior to Yosemite and Server 4? Not sure how you could end up with a Database.xpg *not* containing a cluster.pg. I'd like to look at your calendar server logs. Can you file a report on bugreport.apple.com including the .tgz file you get from running "sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_gather_log s", and paste the bug number here?

Oct 18, 2014 7:42 AM in response to Kraftwerk

Ok, I did this as I was getting stuck at the same point. I do have a difference though in that my Server was running overflow to a USB attached HDD so there's a library directory on the Mac SSD and the external HDD, though I wasn't really using Calendar and Contacts on it. I changed all of them to .old. I restarted Server hoping all would be well. I'm still stuck on the same 'Updating Calendar service" screen. That kinda *****. I think that when I first was upgrading the server, the external HDD was asleep and it must have ran into some reference error. But now I'm stuck.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Server App 4.0 stuck on "Upgrading Calendar Service"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.