You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Damien Katz (JIRA)" <ji...@apache.org> on 2008/12/15 23:45:44 UTC

[jira] Resolved: (COUCHDB-123) Error (54 'Connection reset by peer') when try to fetch item from db

     [ https://issues.apache.org/jira/browse/COUCHDB-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damien Katz resolved COUCHDB-123.
---------------------------------

    Resolution: Incomplete
      Assignee: Damien Katz

We need reproducible test case.

> Error (54 'Connection reset by peer') when try to fetch item from db
> --------------------------------------------------------------------
>
>                 Key: COUCHDB-123
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-123
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 0.8.1
>         Environment: Mac OS 10.5
> Python 2.5.2
> couchdb-python 0.4
> Django 1.0
>            Reporter: Senmiao Liu
>            Assignee: Damien Katz
>         Attachments: error at _blog_detail_76157aebf566c3ab5dfa126f7c68f5d6_.html, error at _blog_new_.html
>
>
> I recently play with django+couchdb using couchdb-python.
> Sometimes I met a error like this:
> =============================================
> Environment:
> Request
> Method: GET
> Request URL:
> http://127.0.0.1:8000/blog/detail/76157aebf566c3ab5dfa126f7c68f5d6/
> Django Version: 1.0-final-SVN-unknown
> Python Version: 2.5.2
> Installed Applications:
> ['django.contrib.auth', 'django.contrib.contenttypes',
> 'django.contrib.sessions', 'django.contrib.sites', 'djcouch.blog']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware')
> Traceback:
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/handlers/base.py"
> in get_response 86. response = callback(request, *callback_args,
> **callback_kwargs)
> File
> "/Users/zai/workspace/python/djcode/djcouch/../djcouch/blog/views.py"
> in detail 18. post = db.get(id)
> File
> "/opt/local/lib/python2.5/site-packages/CouchDB-0.4-py2.5.egg/couchdb/client.py"
> in get 295. return Document(self.resource.get(id, **options))
> File
> "/opt/local/lib/python2.5/site-packages/CouchDB-0.4-py2.5.egg/couchdb/client.py"
> in get 646. return self._request('GET', path, headers=headers,
> **params)
> File
> "/opt/local/lib/python2.5/site-packages/CouchDB-0.4-py2.5.egg/couchdb/client.py"
> in _request 674. body=body, headers=headers)
> File
> "/opt/local/lib/python2.5/site-packages/httplib2-0.4.0-py2.5.egg/httplib2/__init__.py"
> in request 1050. (response, content) = self._request(conn, authority,
> uri, request_uri, method, body, headers, redirections, cachekey)
> File
> "/opt/local/lib/python2.5/site-packages/httplib2-0.4.0-py2.5.egg/httplib2/__init__.py"
> in _request 854. (response, content) = self._conn_request(conn,
> request_uri, method, body, headers)
> File
> "/opt/local/lib/python2.5/site-packages/httplib2-0.4.0-py2.5.egg/httplib2/__init__.py"
> in _conn_request 824. response = conn.getresponse()
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py"
> in getresponse 928. response.begin()
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py"
> in begin 385. version, status, reason = self._read_status()
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py"
> in _read_status 343. line = self.fp.readline()
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py"
> in readline 331. data = recv(1)
> Exception Type: error at /blog/detail/76157aebf566c3ab5dfa126f7c68f5d6/
> Exception Value: (54, 'Connection reset by peer')
> =============================================
> I'm new to python and couchdb, so I'm not sure it's a bug of django, couchdb or the python client.
> Any ideas?
> Thank you,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.