Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-536

CouchDB HTTP server stops accepting connections


    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10, 1.1
    • Fix Version/s: None
    • Component/s: HTTP Interface
    • Labels:
    • Environment:

      Ubuntu Linux 8.04 32bit and 64bit with Erlang R13B01
      or Ubuntu Linux 8.04 64bit with Erlang R14B02

    • Skill Level:
      Committers Level (Medium to Hard)


      Having 3 Couches all replicating a couple of databases to each other (pull replication with a update notification process) the HTTP service on any of the Couches stops working at some point (when running for a couple of ours with constant changes on all databases and servers).

      This is the error when a new HTTP request comes in:

      =ERROR REPORT==== 19-Oct-2009::10:18:55 ===
      application: mochiweb
      "Accept failed error"


      [error] [<0.21619.12>] {error_report,<0.24.0>,





      {ancestors, [couch_httpd,couch_secondary_services,couch_server_sup,<0.1.0>]},
      [error] [<0.66.0>] {error_report,<0.24.0>,


      To me this seems like it runs out of threads or sockets to handle the new connection or somewhat like this.

      Also i see in this setup that if i put lots of changes in a short time at some point the replication process hangs (never finishes) and when trying to restart the same replication once again is not possible and resulting in a timeout.


        1. couchdb_httpd_request_methods-week.png
          27 kB
          Simon Eisenmann
        2. couchdb_database_open-week.png
          19 kB
          Simon Eisenmann
        3. couchdb_httpd_response_codes-week.png
          19 kB
          Simon Eisenmann



            • Assignee:
              longsleep Simon Eisenmann
            • Votes:
              0 Vote for this issue
              5 Start watching this issue


              • Created: