3 Replies Latest reply: May 4, 2012 9:36 AM by george_h
george_h Level 1 Level 1 (0 points)

Trying to create user accounts for iCal on Lion Server. iCal is running, as is Postgresql, but the postgres log shows:

 

2012-01-31 20:46:27 CST LOG:  connection authorized: user=collab database=collab

2012-01-31 20:46:27 CST FATAL:  role "collab" does not exist

 

and the iCal error log shows:

 

2012-01-31 20:51:34-0600 [-] Re-trying connection due to connection failure

        Traceback (most recent call last):

          File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext

            return self.currentContext().callWithContext(ctx, func, *args, **kw)

          File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext

            return func(*args,**kw)

          File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 49, in _run

            work = self._q.get()

          File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 72, in _oneWorkUnit

            self._reactor.callFromThread(deferred.callback, result)

        --- <exception caught here> ---

          File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 64, in _oneWorkUnit

            result = instruction()

          File "/usr/share/caldavd/lib/python/twext/enterprise/adbapi2.py", line 806, in initCursor

            connection = self.connectionFactory()

          File "/usr/share/caldavd/lib/python/txdav/base/datastore/dbapiclient.py", line 196, in connect

            connection = self.dbModule.connect(*self.connectArgs, **self.connectKw)

          File "/usr/share/caldavd/lib/python/pgdb.py", line 482, in connect

            dbtty, dbuser, dbpasswd)

        pg.InternalError: FATAL:  role "caldav" does not exist

 

Previously postgres was failing due to a permissions error on /Library/Logs/PostgreSQL.log preventing creating the log.

Creating the log and setting the permissions  as suggested in:

Calendar Server Reported Error: Operation CalDAVAccountRefreshQueueableOperation

allowed postgres to start but this error occurred immediately

 

OS X 7.2  Mac Mini.

 

Is there a way to create the caldav role? Or to create a new instane of ICal Server?

 

Thanks

 

Gh


Mac mini, Mac OS X (10.7)