Can not run calendarserver
On Dec 25, 2012, at 10:55 PM, Taiping Tan <taiping.tan@pdcnt.com> wrote:
Hi Glyph,
I had changed another user and run server again and display the follow message:
2012-12-26 14:40:27+0800 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout 'could not start server\n' 2012-12-26 14:40:27+0800 [-] [txdav.base.datastore.subpostgres#info] postgres process ended <twisted.python.failure.Failure <class 'twisted.internet.error.ProcessTerminated'>> 2012-12-26 14:40:27+0800 [-] [txdav.base.datastore.subpostgres#error] [Failure instance: Traceback: <class 'pg.InternalError'>: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/ccs_postgres_217bba20faff3d3d791aa94cc0f75a06/.s.PGSQL.5432"?
How do i configure the Database connection for calendarserver. Which is the configuration file to add the DB user and password forcalendarserver?
If you look at this file: <http://trac.calendarserver.org/browser/CalendarServer/trunk/twistedcaldav/stdconfig.py> you will see documentation for a number of configuration options, including the one you're looking for, "DSN". If you want to run the database yourself, you need to set "DBType" to "postgres" and "DSN" to ":your-db-username:your-db-password:::", which is the format needed by the pyGreSQL driver. A database just for calendar server should be starting up automatically; the log lines you've pasted aren't quite enough information to go on, but I assume calendarserver can't start up its own postgres because it conflicts in some way with another one that you've installed and run yourself. Hope this helps, -glyph
participants (2)
-
Glyph
-
Taiping Tan