Hi,
I had installed calendarserver in Centos
6.0(2.6.32-71.el6.x86_64),but when i run it the follow error message
will be displayed.
Error Message:
[root@mail5 CalendarServer]# ./run
Using built libevent.
Using built memcached.
Using system Postgres.
Using system OpenLDAP.
Using system version of setuptools.
Using system version of Zope Interface.
Using system version of PyOpenSSL.
Building PyKerberos...
Current working copy (/opt/CalendarServer/xattr) is from the wrong
URI: http://svn.red-bean.com/bob/xattr/releases/xattr-0.6.1
!= http://svn.red-bean.com/bob/xattr/releases/xattr-0.6.1/
Performing repository switch for xattr...
Fetching external item into '/opt/CalendarServer/xattr/ez_setup'
External at revision 2714.
At revision 1038.
Removing build directory /opt/CalendarServer/xattr/build...
Removing pyc files from /opt/CalendarServer/xattr...
Building xattr...
A system version of pgdb exists, but version is 3.8.1 (< 4.0).
Building PyGreSQL...
Updating Twisted...
At revision 36616.
Removing build directory /opt/CalendarServer/Twisted/build...
Removing pyc files from /opt/CalendarServer/Twisted...
Building Twisted...
In file included from /usr/include/python2.6/pyconfig.h:6,
from /usr/include/python2.6/Python.h:8,
from twisted/internet/_sigchld.c:9:
/usr/include/python2.6/pyconfig-64.h:1031:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/signal.h:29,
from twisted/internet/_sigchld.c:6:
/usr/include/features.h:162:1: warning: this is the location of the
previous definition
In file included from /usr/include/python2.6/pyconfig.h:6,
from /usr/include/python2.6/Python.h:8,
from twisted/internet/_sigchld.c:9:
/usr/include/python2.6/pyconfig-64.h:1040:1: warning:
"_XOPEN_SOURCE" redefined
In file included from /usr/include/signal.h:29,
from twisted/internet/_sigchld.c:6:
/usr/include/features.h:164:1: warning: this is the location of the
previous definition
Using system version of dateutil.
A system version of ldap exists, but version is 2.3.10 (<
2.3.13).
Building python-ldap...
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
Building SQLParse...
Building Pyflakes...
Updating CalDAVClientLibrary...
At revision 10192.
Removing build directory
/opt/CalendarServer/CalDAVClientLibrary/build...
Removing pyc files from /opt/CalendarServer/CalDAVClientLibrary...
Building CalDAVClientLibrary...
/usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown
distribution option: 'app'
warnings.warn(msg)
Using system version of pytz.
Building PyCrypto...
warning: GMP or MPIR library not found; Not building
Crypto.PublicKey._fastmath.
Building pyasn1...
Building pydoctor...
Building our own extension modules...
running build_ext
Using python2.6 as Python
Starting server...
Reading configuration from file:
/opt/CalendarServer/CalendarServer/conf/caldavd-dev.plist
Removing stale pidfile
/opt/CalendarServer/CalendarServer/data/Logs/state/caldavd.pid
2012-12-24 11:39:44+0800 [-] Log opened.
2012-12-24 11:39:44+0800 [-] twistd 12.0.0 (/usr/bin/python2.6
2.6.5) starting up.
2012-12-24 11:39:44+0800 [-] reactor class:
twisted.internet.pollreactor.PollReactor.
2012-12-24 11:39:44+0800 [-] AMPLoggingFactory starting on
'./data/Logs/state/caldavd.sock'
2012-12-24 11:39:44+0800 [-] CalDAVStatisticsServer starting on
'./data/Logs/state/caldavd-stats.sock'
2012-12-24 11:39:45+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:39:45+0800 [-] [txdav.base.datastore.subpostgres#info]
received postgres stdout '2012-12-24 11:39:45+0800 [-]
/opt/CalendarServer/Twisted/build/lib.linux-x86_64-2.6/twisted/python/util.py:714:
exceptions.UserWarning: tried to drop privileges and setuid 0 but
uid is already 0; should we be root? Continuing.\n'
2012-12-24 11:39:45+0800 [-] [txdav.base.datastore.subpostgres#info]
received postgres stderr 'pg_ctl: cannot be run as root\nPlease log
in (using, e.g., "su") as the (unprivileged) user that will\nown the
server process.\n'
2012-12-24 11:39:45+0800 [-] [txdav.base.datastore.subpostgres#info]
postgres process ended <twisted.python.failure.Failure <class
'twisted.internet.error.ProcessTerminated'>>
2012-12-24 11:39:45+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"?
/opt/CalendarServer/Twisted/build/lib.linux-x86_64-2.6/twisted/internet/_baseprocess.py:60:maybeCallProcessEnded
/opt/CalendarServer/CalendarServer/txdav/base/datastore/subpostgres.py:92:processEnded
/opt/CalendarServer/Twisted/build/lib.linux-x86_64-2.6/twisted/internet/defer.py:368:callback
/opt/CalendarServer/Twisted/build/lib.linux-x86_64-2.6/twisted/internet/defer.py:464:_startRunCallbacks
--- <exception caught here> ---
/opt/CalendarServer/Twisted/build/lib.linux-x86_64-2.6/twisted/internet/defer.py:551:_runCallbacks
/opt/CalendarServer/CalendarServer/txdav/base/datastore/subpostgres.py:367:gotReady
/opt/CalendarServer/CalendarServer/txdav/base/datastore/subpostgres.py:269:ready
/opt/CalendarServer/CalendarServer/txdav/base/datastore/subpostgres.py:261:produceConnection
/opt/CalendarServer/CalendarServer/txdav/base/datastore/dbapiclient.py:196:connect
/opt/CalendarServer/PyGreSQL-4.0/build/lib.linux-x86_64-2.6/pgdb.py:482:connect
]
2012-12-24 11:39:46+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:39:48+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:39:53+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:40:02+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:40:02+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:40:04+0800 [-] [memcached-Default] can't run as root
without the -u switch
2012-12-24 11:40:06+0800 [-] [memcached-Default] can't run as root
without the -u switch
How do i fix it?
--
B.Rgds
Tan Taiping
Platform & Service Group
PD CLOTHING & TEXTILES (ZHONGSHAN) LTD.
Tel:86760-85548083 Fax:86760-85548005
E-mail:taiping.tan@pdcnt.com
----------------------------------------------------------------------
Don't print this e-mail unless it's really necessary