Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 73322 invoked from network); 13 Feb 2011 16:37:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2011 16:37:44 -0000 Received: (qmail 89497 invoked by uid 500); 13 Feb 2011 16:37:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89163 invoked by uid 500); 13 Feb 2011 16:37:39 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 89154 invoked by uid 99); 13 Feb 2011 16:37:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Feb 2011 16:37:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Feb 2011 16:37:31 +0000 Received: by bwz4 with SMTP id 4so4527114bwz.11 for ; Sun, 13 Feb 2011 08:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=8+TCpI+yaLq9lGbeEuTr0vXW8FHPBlnARpwxeF6PC9A=; b=RosXvJQ67Ja3Pdi0o5d0+0yoGZpVSHMHK+1850cs8fvBIfPak0IejarpSqNA6BHdNO yLkAnSR3NlqKmQZplBdwB7ekopcn5Ct9Kq29tb2eUJK5qgA5iPoTmiAlLx842R55b3el Z0zgZl2EGcBmghNZUdxRoWPFXIdTwWdoEUx1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gb8tt0zN0bXlP3FMwJTZU7xl+W2an6Tfc4et7K5gusF70LbzzANlrFK0//OkkpzSyK BuisUm86RrL40NK2nD2c+FAa3hMAvjtUlO7+OSl/mnRwEdoM191By60mDD0GZlWs2MKi DjPEPbsloJM1ywSEXr0aLrFSA+f8brIpDTs8o= MIME-Version: 1.0 Received: by 10.204.113.75 with SMTP id z11mr2524039bkp.90.1297615029846; Sun, 13 Feb 2011 08:37:09 -0800 (PST) Received: by 10.204.113.146 with HTTP; Sun, 13 Feb 2011 08:37:09 -0800 (PST) In-Reply-To: References: Date: Sun, 13 Feb 2011 16:37:09 +0000 Message-ID: Subject: Re: External process - Having trouble Half the time From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org can you paste the full script? the most common mistake is to forget to loop. an external handler is expected to stay running for lots of requests, not exit on every request like CGI. B. On 13 February 2011 15:55, Amine BENHAMZA wrote: > Hello Guys, > > I'm working to launch an external process (ruby script) from couchdb. Hal= f > the time, I have this error : "error":"{noproc,{gen_server,call, (i omit = the > rest). The full log is here : https://gist.github.com/824762 > > I'm launching the external process this way : > http://127.0.0.1:5984/trends_monitoring3/_rts > > The code I'm running aims to add a Job to Resque queue ( > https://github.com/defunkt/resque) as done below : > > STDOUT.puts "{" + '"code":200' + "," + > '"headers":{"Content-Type":"Content-Type"}' + "," + '"json":{}' + "}" > > module Demo > =A0Resque.enqueue(Job, params) > end > > STDOUT.flush > > Did someone face this issue ? Have you any idea about what could cause th= is > ? > > Thanks > > Amine. >