hello,

I tried this, and replaced "uid" with "jduffas" witch is the only user I created on my MacOSX system.
did you tell me to do this, or did I understand wrong ?
is it an other kind of user ?

anyway, it doesn't work, it doesn't recognise the user.
I tried with "root", ans with "www", it didn"t worked neither.

here are the logs with "jduffas" :


mac-mini-de-jean-duffas-4:CalendarServer jduffas$ sudo ./run
Password:
Using python as Python

exec python /Users/jduffas/Desktop/test/Twisted/bin/twistd -n caldav - f /Users/jduffas/Desktop/test/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined
2008-11-13 01:37:42+0100 [-] Log opened.
2008-11-13 01:37:42+0100 [-] twistd 2.5.0+rUnknown (/System/Library/ Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/ MacOS/Python 2.5.1) starting up 2008-11-13 01:37:42+0100 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-11-13 01:37:42+0100 [-] [twistedcaldav.upgrade#info] Moved the calendar user proxy database from '/Library/WebServer/CalendarServed/ principals/.db.calendaruserproxy' to 'data/calendaruserproxy.sqlite'. 2008-11-13 01:37:42+0100 [-] [twistedcaldav.upgrade#info] Removed the old principal directory at '/Library/WebServer/CalendarServed/ principals'. 2008-11-13 01:37:42+0100 [-] [twistedcaldav.cluster#info] 2 processors found, configuring 2 processes. 2008-11-13 01:37:42+0100 [-] [twistedcaldav.cluster#info] Adding pydirector service with configuration: /tmp/pydirLMRxuC 2008-11-13 01:37:42+0100 [-] [twistedcaldav.cluster#info] Adding memcached service 2008-11-13 01:37:42+0100 [-] twistedcaldav.accesslog.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2008-11-13 01:37:42+0100 [-] [memcached] can't find the user jduffas to switch to 2008-11-13 01:37:43+0100 [-] [memcached] can't find the user jduffas to switch to
2008-11-13 01:37:44+0100 [-] [caldav-8009]  [-] Log opened.
2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008-11-13 01:37:44+0100 [-] [caldav-8010]  [-] Log opened.
2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up document root at: /Library/ WebServer/CalendarServed/ 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up principal collection: <class 'twistedcaldav .directory.principal.DirectoryPrincipalProvisioningResource'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up document root at: /Library/ WebServer/CalendarServed/ 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up principal collection: <class 'twistedcaldav .directory.principal.DirectoryPrincipalProvisioningResource'> 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up time zone service resource: <class 'twistedcaldav.static.TimezoneServiceFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up time zone service resource: <class 'twistedcaldav.static.TimezoneServiceFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up iMIP inbox resource: <class 'twistedcaldav.static.IMIPInboxFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up Timezone Cache 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Configuring authentication for realm: icalconsult Realm 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up scheme: wiki 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#error] Unknown scheme: wiki 2008-11-13 01:37:44+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up scheme: digest 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up iMIP inbox resource: <class 'twistedcaldav.static.IMIPInboxFile'> 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up Timezone Cache 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Configuring authentication for realm: icalconsult Realm 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up scheme: wiki 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#error] Unknown scheme: wiki 2008-11-13 01:37:44+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up scheme: digest 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up scheme: basic 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Configuring authentication wrapper 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Setting up service 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Configuring log observer: <twistedcaldav.accesslog.AMPCommonAccessLoggingObserver object at 0x18b04d0> 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Adding server at 127.0.0.1:8010 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] [twistedcaldav.tap#info] Adding SSL server at 127.0.0.1:8445 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8010 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] Starting factory <twistedcaldav.httpfactory.HTTP503LoggingFactory instance at 0x18ae878> 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8445 2008-11-13 01:37:45+0100 [twistedcaldav.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/ caldavd.sock') PEER:UNIXSocket('')) 2008-11-13 01:37:45+0100 [-] [caldav-8010] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up scheme: basic 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Configuring authentication wrapper 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Setting up service 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Configuring log observer: <twistedcaldav.accesslog.AMPCommonAccessLoggingObserver object at 0x18b04d0> 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Adding server at 127.0.0.1:8009 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] [twistedcaldav.tap#info] Adding SSL server at 127.0.0.1:8444 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8009 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] Starting factory <twistedcaldav.httpfactory.HTTP503LoggingFactory instance at 0x18ae878> 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8444 2008-11-13 01:37:46+0100 [twistedcaldav.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/ caldavd.sock') PEER:UNIXSocket('')) 2008-11-13 01:37:46+0100 [-] [caldav-8009] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2008-11-13 01:37:46+0100 [-] [memcached] can't find the user jduffas to switch to 2008-11-13 01:37:53+0100 [-] [memcached] can't find the user jduffas to switch to
^C2008-11-13 01:37:55+0100 [-] Received SIGINT, shutting down.

2008-11-13 01:37:55+0100 [-] (Port None Closed)
mac-mini-de-jean-duffas-4:CalendarServer jduffas$ 2008-11-13 01:37:55+0100 [AMPLoggingProtocol,0,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-11-13 01:37:55+0100 [AMPLoggingProtocol,1,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket(''))
2008-11-13 01:37:55+0100 [-] Main loop terminated.
2008-11-13 01:37:55+0100 [-] Server Shut Down.





Le 12 nov. 08 à 15:42, Cyrus Daboo a écrit :
Hi jean,

--On November 12, 2008 9:56:42 AM +0100 jean <[EMAIL PROTECTED]> wrote:

here are the new logs (it's what happend in the terminal while running, not log file) without the guid in the accounts file, and with memcache
turned on.
it's not working, but there are no more errors concerning guids.


memcached is not starting because you are trying to run the server as root and are not specifying a different user. What you need to do is edit the caldavd.plist you are using an change the Memcached key to have:

  <key>Options</key>
  <array>
    <string>-u uid</string>
</array>

where uid is a valid system id.

Either that or do not run the server as root in the first place by setting UserName and GroupName keys to valid ids on the system. If you do that you will need to adjust the permissions on your DocumentRoot and DataRoot to match those new ids.

--
Cyrus Daboo



Le 12 nov. 08 à 15:42, Cyrus Daboo a écrit :

Hi jean,

--On November 12, 2008 9:56:42 AM +0100 jean <[EMAIL PROTECTED]> wrote:

here are the new logs (it's what happend in the terminal while running, not log file) without the guid in the accounts file, and with memcache
turned on.
it's not working, but there are no more errors concerning guids.


memcached is not starting because you are trying to run the server as root and are not specifying a different user. What you need to do is edit the caldavd.plist you are using an change the Memcached key to have:

  <key>Options</key>
  <array>
    <string>-u uid</string>
</array>

where uid is a valid system id.

Either that or do not run the server as root in the first place by setting UserName and GroupName keys to valid ids on the system. If you do that you will need to adjust the permissions on your DocumentRoot and DataRoot to match those new ids.

--
Cyrus Daboo



_______________________________________________
calendarserver-users mailing list
calendarserver-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users

Reply via email to