[CalendarServer-users] how to update ?

jean jduffas1 at free.fr
Wed Nov 12 00:56:42 PST 2008


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.




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-12 09:53:41+0100 [-] Log opened.
2008-11-12 09:53:41+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-12 09:53:41+0100 [-] reactor class: <class  
'twisted.internet.selectreactor.SelectReactor'>
2008-11-12 09:53:41+0100 [-] [twistedcaldav.upgrade#info] Removed the  
old principal directory at '/Library/WebServer/CalendarServed/ 
principals'.
2008-11-12 09:53:41+0100 [-] [twistedcaldav.cluster#info] 2 processors  
found, configuring 2 processes.
2008-11-12 09:53:41+0100 [-] [twistedcaldav.cluster#info] Adding  
pydirector service with configuration: /tmp/pydirb4XzXZ
2008-11-12 09:53:41+0100 [-] [twistedcaldav.cluster#info] Adding  
memcached service
2008-11-12 09:53:41+0100 [-] twistedcaldav.accesslog.AMPLoggingFactory  
starting on "'logs/caldavd.sock'"
2008-11-12 09:53:41+0100 [-] [memcached] can't run as root without the  
-u switch
2008-11-12 09:53:42+0100 [-] [memcached] can't run as root without the  
-u switch
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-] Log opened.
2008-11-12 09:53:43+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-12 09:53:43+0100 [-] [caldav-8010]  [-] reactor class: <class  
'twisted.internet.selectreactor.SelectReactor'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Configuring directory service of type:  
twistedcaldav.directory.xmlfile.XMLDirectoryService
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-] Log opened.
2008-11-12 09:53:43+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-12 09:53:43+0100 [-] [caldav-8009]  [-] reactor class: <class  
'twisted.internet.selectreactor.SelectReactor'>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Configuring directory service of type:  
twistedcaldav.directory.xmlfile.XMLDirectoryService
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Configuring SudoDirectoryService with file:  
conf/sudoers.plist
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Configuring SudoDirectoryService with file:  
conf/sudoers.plist
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up document root at: /Library/ 
WebServer/CalendarServed/
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up principal collection: <class  
'twistedcaldav 
.directory.principal.DirectoryPrincipalProvisioningResource'>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up calendar collection: <class  
'twistedcaldav.static.CalendarHomeProvisioningFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up root resource: <class  
'twistedcaldav.root.RootResource'>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up time zone service resource: <class  
'twistedcaldav.static.TimezoneServiceFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up iMIP inbox resource: <class  
'twistedcaldav.static.IMIPInboxFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up document root at: /Library/ 
WebServer/CalendarServed/
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up principal collection: <class  
'twistedcaldav 
.directory.principal.DirectoryPrincipalProvisioningResource'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up calendar collection: <class  
'twistedcaldav.static.CalendarHomeProvisioningFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up root resource: <class  
'twistedcaldav.root.RootResource'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up time zone service resource: <class  
'twistedcaldav.static.TimezoneServiceFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up iMIP inbox resource: <class  
'twistedcaldav.static.IMIPInboxFile'>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up Timezone Cache
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up Timezone Cache
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Configuring authentication for realm:  
icalconsult Realm
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up scheme: wiki
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#error] Unknown scheme: wiki
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up scheme: digest
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Configuring authentication for realm:  
icalconsult Realm
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up scheme: wiki
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#error] Unknown scheme: wiki
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up scheme: digest
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up scheme: basic
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Configuring authentication wrapper
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Setting up service
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Configuring log observer:  
<twistedcaldav.accesslog.AMPCommonAccessLoggingObserver object at  
0x18b0470>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Adding server at 127.0.0.1:8009
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
[twistedcaldav.tap#info] Adding SSL server at 127.0.0.1:8444
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up scheme: basic
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Configuring authentication wrapper
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Setting up service
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Configuring log observer:  
<twistedcaldav.accesslog.AMPCommonAccessLoggingObserver object at  
0x18b0470>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Adding server at 127.0.0.1:8010
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
[twistedcaldav.tap#info] Adding SSL server at 127.0.0.1:8445
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8009
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.httpfactory.HTTP503LoggingFactory instance at 0x18ae850>
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8010
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.httpfactory.HTTP503LoggingFactory instance at 0x18ae850>
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-]  
twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8444
2008-11-12 09:53:43+0100 [twistedcaldav.accesslog.AMPLoggingFactory]  
AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/ 
caldavd.sock') PEER:UNIXSocket(''))
2008-11-12 09:53:43+0100 [-] [caldav-8009]  [-] AMP connection  
established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock'))
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-]  
twistedcaldav.httpfactory.HTTP503LoggingFactory starting on 8445
2008-11-12 09:53:43+0100 [-] [caldav-8010]  [-] AMP connection  
established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock'))
2008-11-12 09:53:43+0100 [twistedcaldav.accesslog.AMPLoggingFactory]  
AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/ 
caldavd.sock') PEER:UNIXSocket(''))
2008-11-12 09:53:45+0100 [-] [memcached] can't run as root without the  
-u switch
2008-11-12 09:53:48+0100 [-] [caldav-8009]  [-] AMP connection  
established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd- 
pydir.sock'))
2008-11-12 09:53:48+0100 [-] [caldav-8010]  [-] AMP connection  
established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd- 
pydir.sock'))
2008-11-12 09:53:48+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0b90>
2008-11-12 09:53:48+0100 [-] [caldav-8009]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:48+0100 [-] [caldav-8009] 	]
2008-11-12 09:53:48+0100 [-] [caldav-8009]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a58> will retry in 2  
seconds
2008-11-12 09:53:48+0100 [-] [caldav-8009]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0b90>
2008-11-12 09:53:48+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0bb0>
2008-11-12 09:53:48+0100 [-] [caldav-8010]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:48+0100 [-] [caldav-8010] 	]
2008-11-12 09:53:48+0100 [-] [caldav-8010]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a30> will retry in 2  
seconds
2008-11-12 09:53:48+0100 [-] [caldav-8010]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0bb0>
2008-11-12 09:53:51+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0bb0>
2008-11-12 09:53:51+0100 [-] [caldav-8010]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:51+0100 [-] [caldav-8010] 	]
2008-11-12 09:53:51+0100 [-] [caldav-8010]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a30> will retry in 6  
seconds
2008-11-12 09:53:51+0100 [-] [caldav-8010]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0bb0>
2008-11-12 09:53:51+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0b90>
2008-11-12 09:53:51+0100 [-] [caldav-8009]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:51+0100 [-] [caldav-8009] 	]
2008-11-12 09:53:51+0100 [-] [caldav-8009]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a58> will retry in 7  
seconds
2008-11-12 09:53:51+0100 [-] [caldav-8009]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0b90>
2008-11-12 09:53:53+0100 [-] [memcached] can't run as root without the  
-u switch
2008-11-12 09:53:57+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0bb0>
2008-11-12 09:53:57+0100 [-] [caldav-8010]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:57+0100 [-] [caldav-8010] 	]
2008-11-12 09:53:57+0100 [-] [caldav-8010]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a30> will retry in  
20 seconds
2008-11-12 09:53:57+0100 [-] [caldav-8010]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0bb0>
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0b90>
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:59+0100 [-] [caldav-8009] 	]
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18b6a58> will retry in  
19 seconds
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0b90>
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [AMP,client]  
[twistedcaldav.directory.xmlfile.XMLDirectoryService#info] Directory  
service <XMLDirectoryService 'icalconsult Realm': FilePath('/Users/ 
jduffas/Desktop/test/CalendarServer/conf/accounts.xml')> has no GUID;  
generating service GUID from realm name.
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b9b50>
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:59+0100 [-] [caldav-8009] 	]
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18df6c0> will retry in 2  
seconds
2008-11-12 09:53:59+0100 [-] [caldav-8009]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b9b50>
2008-11-12 09:53:59+0100 [-] [caldav-8010]  [AMP,client]  
[twistedcaldav.directory.xmlfile.XMLDirectoryService#info] Directory  
service <XMLDirectoryService 'icalconsult Realm': FilePath('/Users/ 
jduffas/Desktop/test/CalendarServer/conf/accounts.xml')> has no GUID;  
generating service GUID from realm name.
2008-11-12 09:53:59+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0c10>
2008-11-12 09:53:59+0100 [-] [caldav-8010]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:53:59+0100 [-] [caldav-8010] 	]
2008-11-12 09:53:59+0100 [-] [caldav-8010]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18bf1c0> will retry in 1  
seconds
2008-11-12 09:53:59+0100 [-] [caldav-8010]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0c10>
2008-11-12 09:54:01+0100 [-] [caldav-8010]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b0c10>
2008-11-12 09:54:01+0100 [-] [caldav-8010]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:54:01+0100 [-] [caldav-8010] 	]
2008-11-12 09:54:01+0100 [-] [caldav-8010]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18bf1c0> will retry in 4  
seconds
2008-11-12 09:54:01+0100 [-] [caldav-8010]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b0c10>
2008-11-12 09:54:01+0100 [-] [caldav-8009]  [-] Starting factory  
<twistedcaldav.memcachepool.MemCacheClientFactory object at 0x18b9b50>
2008-11-12 09:54:01+0100 [-] [caldav-8009]  [Uninitialized]  
[twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache  
connection failed: [Failure instance: Traceback (failure with no  
frames): <class 'twisted.internet.error.ConnectionRefusedError'>:  
Connection was refused by other side: 61: Connection refused.
2008-11-12 09:54:01+0100 [-] [caldav-8009] 	]
2008-11-12 09:54:01+0100 [-] [caldav-8009]  [Uninitialized]  
<twisted.internet.tcp.Connector instance at 0x18df6c0> will retry in 7  
seconds
2008-11-12 09:54:01+0100 [-] [caldav-8009]  [Uninitialized] Stopping  
factory <twistedcaldav.memcachepool.MemCacheClientFactory object at  
0x18b9b50>
^C2008-11-12 09:54:04+0100 [-] Received SIGINT, shutting down.
2008-11-12 09:54:04+0100 [-] (Port None Closed)

mac-mini-de-jean-duffas-4:CalendarServer jduffas$ 2008-11-12  
09:54:04+0100 [AMPLoggingProtocol,0,] AMPLoggingProtocol connection  
lost (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket(''))
2008-11-12 09:54:04+0100 [AMPLoggingProtocol,1,] AMPLoggingProtocol  
connection lost (HOST:UNIXSocket('logs/caldavd.sock')  
PEER:UNIXSocket(''))
2008-11-12 09:54:04+0100 [-] Main loop terminated.
2008-11-12 09:54:04+0100 [-] Server Shut Down.








Le 12 nov. 08 à 01:24, Wilfredo Sánchez Vega a écrit :

>  I'm not sure what's broken for you, but it appears to be multiple  
> things.  A couple of notes:
>
> 1- Do not disable memcached.  It is required.
>
> 2- Get rid of all <guid> tags in your accounts.xml file and be sure  
> to set <realm> to something that will not change in the future.  The  
> server will compute GUIDs for you based on record type/name and the  
> realm.  Or, set real GUIDs up for each account.  On many systems,  
> including Mac OS X, the "uuidgen" command can spit out a valid GUID  
> for you.
>
> 	-wsv
>
>



More information about the calendarserver-users mailing list