You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by "Coffman, Timothy A" <ti...@Vanderbilt.Edu> on 2009/11/24 22:43:14 UTC

Lounge smartproxy exception causing cluster views to fail

I have configured a Lounge cluster with 3 shards.  I can view all the documents in the cluster with no problem through Futon.  However, all my view requests are failing.  I put twistd in a debugger to see what might be causing the error, which looks like "'can only concatenate tuple (not "str") to tuple'".  What I got is below.  Any ideas?

[tcoffman]$ curl -v http://localhost:6984/clinical/_design/clinical/_view/all
* About to connect() to localhost port 6984
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 6984
> GET /clinical/_design/clinical/_view/all HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: localhost:6984
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Server: nginx/0.7.22
< Date: Tue, 24 Nov 2009 21:39:21 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
{}
* Connection #0 to host localhost left intact
* Closing connection #0
[tcoffman]$



[tcoffman]$ sudo /usr/bin/twistd -r epoll -y /etc/lounge/smartproxy.tac --pidfile=/var/run/pid/smartproxyd.pid --logfile=/var/log/lounge/smartproxyd.log -u 0 -g 0 --debug
> /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/base.py(1127)run()
-> self.startRunning(installSignalHandlers=installSignalHandlers)
(Pdb) c
Jumping into debugger for post-mortem of exception 'can only concatenate tuple (not "str") to tuple':
> /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/proxy.py(325)send_output()
(Pdb)where
...<snip>...
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/web/client.py(304)page()
-> self.deferred.callback(page)
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(243)callback()
-> self._startRunCallbacks(result)
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(312)_startRunCallbacks()
-> self._runCallbacks()
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(328)_runCallbacks()
-> self.result = callback(self.result, *args, **kw)
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/fetcher.py(140)_onsuccess()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(292)process_map()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(309)queue_data()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(357)__reduce()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(327)_do_reduce()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(309)queue_data()
  /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/reducer.py(349)__reduce()
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(243)callback()
-> self._startRunCallbacks(result)
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(312)_startRunCallbacks()
-> self._runCallbacks()
  /usr/lib64/python2.4/site-packages/Twisted-8.2.0-py2.4-linux-x86_64.egg/twisted/internet/defer.py(344)_runCallbacks()
-> self.result = failure.Failure()
> /home/tcoffman/build/bdist.linux-x86_64/egg/smartproxy/proxy.py(325)send_output()
(Pdb)


Tim Coffman
Vanderbilt University Medical Center
(615) 936-6496