[CalendarServer] #295: memcached error on CS when I input a new event
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Version: trunk Severity: Crash/data loss | Keywords: memcached -----------------------------+---------------------------------------------- error on CS when I input a new event {{{ [memcached] can't run as root without the -u switch }}} -- Ticket URL: <http://trac.calendarserver.org/ticket/295> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Version: trunk Severity: Crash/data loss | Resolution: Keywords: memcached | -----------------------------+---------------------------------------------- Comment (by wsanchez@apple.com): Hrm. Yes. Here's a work-around until we fix this... add -u calendar to the list of options passed to memcached. For example: {{{ <!-- Support for Memcached --> <key>Memcached</key> <dict> <key>Options</key> <array> <string>-u</string> <string>calendar</string> </array> </dict> }}} -- Ticket URL: <http://trac.calendarserver.org/ticket/295#comment:1> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Version: trunk Severity: Crash/data loss | Resolution: Keywords: memcached | -----------------------------+---------------------------------------------- Comment (by filippos@dsi.gr): this is not working, same error at start {{{ 2008-07-19 08:43:25+0300 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8443 2008-07-19 08:43:25+0300 [twistedcaldav.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-07-19 08:43:25+0300 [-] [caldav-8008] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2008-07-19 08:43:25+0300 [-] [memcached] can't run as root without the -u switch 2008-07-19 08:43:28+0300 [-] [memcached] can't run as root without the -u switch 2008-07-19 08:43:35+0300 [-] [memcached] can't run as root without the -u switch 2008-07-19 08:43:50+0300 [-] [memcached] can't run as root without the -u switch }}} -- Ticket URL: <http://trac.calendarserver.org/ticket/295#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: assigned Priority: 1: Blocker | Milestone: 2.0 Component: Calendar Server | Version: trunk Severity: Crash/data loss | Resolution: Keywords: memcached | -----------------------------+---------------------------------------------- Changes (by wsanchez@apple.com): * priority: 2: Expected => 1: Blocker * status: new => assigned * milestone: Linux Port => 2.0 Comment: From the milestone, I assume this is on Linux? Shouldn't really matter though... Making this a P1 for 2.0. -- Ticket URL: <http://trac.calendarserver.org/ticket/295#comment:3> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: assigned Priority: 1: Blocker | Milestone: 2.0 Component: Calendar Server | Version: trunk Severity: Crash/data loss | Resolution: Keywords: memcached | -----------------------------+---------------------------------------------- Comment (by aaron.grattafiori@microvu.com): Running CalendarServer as root is NOT a good idea. Especially because you don't need any of roots permissions (its trival to add a calendar user that runs caldavd). -- Ticket URL: <http://trac.calendarserver.org/ticket/295#comment:4> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -----------------------------+---------------------------------------------- Reporter: filippos@dsi.gr | Owner: wsanchez@apple.com Type: Defect | Status: assigned Priority: 1: Blocker | Milestone: 2.0 Component: Calendar Server | Version: trunk Severity: Crash/data loss | Resolution: Keywords: memcached | -----------------------------+---------------------------------------------- Comment (by wsanchez@apple.com): Aaron, CalendarServer drops privileges to the user configured in its config file after doing some operations that may require root access, such as binding to the listen port (which in many cases would be port 80, a privileged port) or setting up some log files which the running server doesn't need write access to. It is not a bad idea to start the server as root, if properly configured, but it is true than in some deployments, it may not be necessary. -- Ticket URL: <https://trac.calendarserver.org/ticket/295#comment:5> CalendarServer </> HTTP/WebDAV/CalDAV Server
#295: memcached error on CS when I input a new event -------------------------------+-------------------------------------------- Reporter: filippos@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 1: Blocker | Milestone: CalendarServer-2.0 Component: Calendar Server | Severity: Crash/data loss Resolution: Software changed | Keywords: memcached -------------------------------+-------------------------------------------- Changes (by wsanchez@…): * status: assigned => closed * resolution: => Software changed Comment: If you are not starting as root, leave out the `UserName` and `GroupName` config options and the server will not try to drop privs and will also not pass the `-u` flag to memcached. -- Ticket URL: <http://trac.calendarserver.org/ticket/295#comment:6> CalendarServer </> HTTP/WebDAV/CalDAV Server
participants (1)
-
CalendarServer