Hi all,
I am running Couchdb 1.5.0 in Ubuntu 14.04, installed from the Ubuntu repository
root@system:~# dpkg --get-selections | grep couchdb
couchdb install
couchdb-bin install
couchdb-common install
{"couchdb":"backend-instance","uuid":"05372efd57621e6e6ab533de3f000910","version":"1.5.0","vendor":{"name":"Ubuntu","version":"14.04"}}
Accessing documents and databaes in couchdb is ok (GET, PUT, ...), but
accessing any view fails, with error 137:
curl -X GET http://localhost:20200/cdr/_design/tools/_view/callsbyorgmonth
{"error":"exit_status","reason":"137"}
I have read
(http://grokbase.com/t/couchdb/user/105k2pjdge/process-error-exist-status-137)
that this can be caused by a badly linked libcurl.
root@system:~# dpkg --get-selections | grep curl
curl install
libcurl3:amd64 install
libcurl3-gnutls:amd64 install
libcurl4-openssl-dev:amd64 install
python3-pycurl install
Has anybody encountered this problem? What is the solution?
Thanks!
More info: I have traced the view access and these are the system calls:
root@system:~# strace -c -p 26372
Process 26372 attached
^CProcess 26372 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
34.28 0.065474 22 3039 futex
24.63 0.047049 3 14170 epoll_wait
22.88 0.043712 2 17896 clock_gettime
7.05 0.013459 7 1884 writev
6.06 0.011576 5 2514 318 read
3.32 0.006344 334 19 munmap
0.55 0.001044 8 136 write
0.40 0.000767 256 3 vfork
0.26 0.000505 168 3 madvise
0.16 0.000309 28 11 4 mmap
0.10 0.000199 50 4 wait4
0.09 0.000171 16 11 close
0.04 0.000074 8 9 3 epoll_ctl
0.04 0.000069 3 22 fcntl
0.03 0.000066 11 6 pipe
0.03 0.000052 2 22 rt_sigprocmask
0.02 0.000037 3 14 gettimeofday
0.02 0.000031 3 12 getsockopt
0.01 0.000027 3 8 setsockopt
0.01 0.000021 5 4 2 recvfrom
0.01 0.000013 7 2 rt_sigreturn
0.01 0.000012 6 2 1 accept
0.00 0.000004 4 1 getpeername
------ ----------- ----------- --------- --------- ----------------
100.00 0.191015 39792 328 total
The trace has been done with replications stopped, and with a single
view access.