couchapp/couchapp — Issue #111: CouchApp 'push' don't work on Couchbase Server 2.0
Author: savdalion
Created: 2011-10-17 11:52:24+00:00
State: open

This problem, imho, alike http://groups.google.com/group/couchbase/browse_thread/thread/1c12708323b68616

Error after run command in Ubuntu terminal
**couchapp -v push db http://127.0.0.1:5984/db**

2011-10-17 14:39:38 [DEBUG] Resource uri: http://127.0.0.1:5984/db
2011-10-17 14:39:38 [DEBUG] Request: HEAD None
2011-10-17 14:39:38 [DEBUG] Headers: {'Accept': 'application/json', 'User-Agent': 'couchapp/0.6.0'}
2011-10-17 14:39:38 [DEBUG] Params: {}
2011-10-17 14:39:38 [DEBUG] Start to perform request: 127.0.0.1:5984 HEAD /db
2011-10-17 14:39:38 [DEBUG] create new connection
2011-10-17 14:39:38 [DEBUG] Send headers: ['HEAD /db HTTP/1.1\r\n', 'Host: 127.0.0.1:5984\r\n', 'User-Agent: restkit/3.2.3\r\n', 'Accept-Encoding: identity\r\n', 'Accept: application/json\r\n', 'Authorization: Basic ZGFsaW9uOnZpc29yODg4\r\n']
2011-10-17 14:39:38 [DEBUG] Start to parse response
2011-10-17 14:39:38 [DEBUG] Got response: 500 Internal Server Error
2011-10-17 14:39:38 [DEBUG] headers: [MultiDict([('Server', 'CouchDB/1.2.0a-00596f2-git (Erlang OTP/R14B03)'), ('Date', 'Mon, 17 Oct 2011 11:39:38 GMT'), ('Content-Type', 'application/json'), ('Content-Length', '579'), ('Cache-Control', 'must-revalidate')])]
2011-10-17 14:39:38 [DEBUG] release connection
2011-10-17 14:39:38 [DEBUG] return response class
2011-10-17 14:39:38 [DEBUG] release connection
2011-10-17 14:39:38 [CRITICAL] {'msg': '', 'status_int': 500, 'response': couchapp.client.CouchdbResponse object at 0x1bd9a50}
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/couchapp/dispatch.py", line 48, in dispatch
return _dispatch(args)
File "/usr/lib/pymodules/python2.7/couchapp/dispatch.py", line 92, in _dispatch
return fun(conf, conf.app_dir, *args, **opts)
File "/usr/lib/pymodules/python2.7/couchapp/commands.py", line 75, in push
dbs = conf.get_dbs(dest)
File "/usr/lib/pymodules/python2.7/couchapp/config.py", line 152, in get_dbs
return [Database(dburl) for dburl in dburls]
File "/usr/lib/pymodules/python2.7/couchapp/client.py", line 220, in __init__
self.res.head()
File "/usr/lib/pymodules/python2.7/couchapp/restkit/resource.py", line 121, in head
params_dict=params_dict, **params)
File "/usr/lib/pymodules/python2.7/couchapp/client.py", line 138, in request
raise RequestFailed(str(e))
RequestFailed: {'msg': '', 'status_int': 500, 'response': couchapp.client.CouchdbResponse object at 0x1bd9a50}

Couchbase Server 2.0 > http://couchbase.com/downloads