[CalendarServer] #329: memcached cannot find libevent.so
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ On ubuntu linux, I get the following error: {{{ 2009-03-24 00:00:16+0100 [-] [memcached] ../memcached-1.2.6/_root/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory }}} ldd does show the correct link: {{{ arnouten@bird:~/dev/calendaring/CalendarServer$ ldd ../memcached-1.2.6/_root/bin/memcached linux-gate.so.1 => (0xb7f28000) libevent-1.4.so.2 => /home/arnouten/dev/calendaring/libevent-1.4.8-stable/_root/lib/libevent-1.4.so.2 (0xb7ef4000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d7b000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7d61000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7d48000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7d3f000) libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7d2b000) /lib/ld-linux.so.2 (0xb7f0e000) }}} /home/arnouten/dev/calendaring/libevent-1.4.8-stable/_root/lib/libevent-1.4.so.2 indeed exists (though it is a symlink). Starting memcached from the commandline appears to work. For now worked around this by setting both ClientEnabled and ServerEnabled to 'false' in conf/caldavd-dev.plist -- Ticket URL: <http://trac.calendarserver.org/ticket/329> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by macosforge@…): Okay, disabling memcached breaks things ;). (it somehow caused the server to keep throwing "Authentication failed: Invalid nonce value" errors at me) As a last resort I copied libevent-1.4.so.2 to /usr/lib and ran ldconfig as root. This makes the issue go away, but is undesirable for obvious reasons. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:1> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Changes (by wsanchez@…): * priority: 5: Not set => 2: Expected * milestone: => Linux Port Comment: Did you try installing memcached separately (eg via package management)? That should work, since we'll use the installed one instead of trying to build it. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by will@…): I can confirm that this works on Ubuntu 7.10 (Gutsy). {{{ apt-get install memcached libmemcache-dev }}} seems to do it. Libevent was brought in as a dependency. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:3> CalendarServer </> HTTP/WebDAV/CalDAV Server
If memcached is part of the build, it's enough to specify LD_LIBRARY_PATH=<path_to_libevent.so> in the same line, before the call to memcached. Erny El mar, 31-03-2009 a las 09:02 +0000, CalendarServer escribió:
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 2: Expected | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------
Comment(by will@…):
I can confirm that this works on Ubuntu 7.10 (Gutsy).
{{{ apt-get install memcached libmemcache-dev }}}
seems to do it. Libevent was brought in as a dependency.
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Changes (by wsanchez@…): * priority: 2: Expected => 3: Important Comment: OK thanks for that. I'm going to lower priority here, since that's probably preferable anyway. The original build issue is probably a matter of setting an LD_LIBRARY_PATH environment variable or something, if someone wants to look into that. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:4> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by macosforge@…): I tried installing the memcached package before, but for some reason run seemed to insist on using its own version. Attached a patch that makes that actually work. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:5> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by wsanchez@…): I'm wondering if we should stop trying to limit the server's environment and just let it inherit the environment. Lemme think a bit about why we started doing that in the first place. -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:6> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ---------------------------------+------------------------------------------ Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ---------------------------------+------------------------------------------ Comment(by macosforge@…): Perhaps apply the conservative patch for now and leave the issue open to consider inheriting the entire environment later? -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:7> CalendarServer </> HTTP/WebDAV/CalDAV Server
#329: memcached cannot find libevent.so ----------------------------------+----------------------------------------- Reporter: macosforge@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Other Resolution: Software changed | Keywords: ----------------------------------+----------------------------------------- Changes (by wsanchez@…): * status: new => closed * resolution: => Software changed Comment: r4101 and r4102 -- Ticket URL: <http://trac.calendarserver.org/ticket/329#comment:8> CalendarServer </> HTTP/WebDAV/CalDAV Server
participants (2)
-
CalendarServer
-
Ernersto Revilla