Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 7070 invoked from network); 7 Aug 2009 18:09:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 18:09:47 -0000 Received: (qmail 54775 invoked by uid 500); 7 Aug 2009 18:09:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54701 invoked by uid 500); 7 Aug 2009 18:09:53 -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 54691 invoked by uid 99); 7 Aug 2009 18:09:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 18:09:53 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [128.143.2.132] (HELO costello.eservices.virginia.edu) (128.143.2.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 18:09:42 +0000 Received: from MCCLANE.eservices.virginia.edu ([10.250.200.78]) by costello.eservices.virginia.edu ([10.250.205.132]) with mapi; Fri, 7 Aug 2009 14:09:21 -0400 From: "Brunjes, Lee (lmb7s)" To: "'user@couchdb.apache.org'" CC: 'Michael McCaffrey' Date: Fri, 7 Aug 2009 14:09:20 -0400 Subject: RE: Can't run views on new install Thread-Topic: Can't run views on new install Thread-Index: AcoWIROaPpjTtKOtRsG0jd5S9UPguQAcSgNAAAU++7AAOGv8MA== Message-ID: <3B68E8531296AE4B8E3A1B73A628366E1213110E8C@MCCLANE.eservices.virginia.edu> References: <3B68E8531296AE4B8E3A1B73A628366E1213110E89@MCCLANE.eservices.virginia.edu> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Michael, Can you check on what you have in /erl5.7.2/usr/couch.ini for the lines a= t the end=20 ( probably in c:\program files) --------------------- [Couch Query Servers] javascript=3Dcouch_js "c:/program files/erl5.7.2/lib/couchdb-0.8.1/share/se= rver/main.js" ------------------------ I found that this seems to have trouble with a full path in some cases. You= can try a relative path like javascript=3Dcouch_js ../lib/couchdb-0.8.1/share/server/main.js Secondly, are using couch_start.bat to start it or running it from the erla= ng command line? If you are using couch_start.bat, I failed to make a fix to that using note= pad, find=20 couch_server:start(\"../couch.ini\") and change it to: couch_server:start() Sorry about that, I will make both fixes in the package on the site asap -Lee -----Original Message----- From: Michael McCaffrey [mailto:mmccaffrey@ittvis.com]=20 Sent: Thursday, August 06, 2009 11:11 AM To: user@couchdb.apache.org Subject: RE: Can't run views on new install Well, don't know what happened but now it is working. I tried to install a new version from the Virginia site, couchdb-091.exe, a= nd it wouldn't start up at all. Then tried to run the couch_js.exe. It didn't fail but didn't produce any o= utput.=20 Went back to my original install and it is now working and I can run a view= . Maybe manually executing the couch_js.exe resolved some issue. An "official" windows version would be nice. Thanks for the support. Mike=20 -----Original Message----- From: Brunjes, Lee (lmb7s) [mailto:lmb7s@virginia.edu]=20 Sent: Thursday, August 06, 2009 6:47 AM To: user@couchdb.apache.org Subject: RE: Can't run views on new install I ran into this Tuesday, thought it was a badly built spider monkey library= , but it ended up being a config issue for me. I would check that you can load the spider monkey library, just run couch_j= s.exe, At some point in playing with it I got a bad copy that simply wouldn= 't load. Then make sure the following lines are *not* included/ uncommented in your = default.ini file, probably in c:\programfiles\erl5.7.2\bin [query_servers] javascript =3D %bindir%/%couchjs_command_name% %localdatadir%/server/main.j= s -Lee -----Original Message----- From: jchris@gmail.com [mailto:jchris@gmail.com] On Behalf Of Chris Anderso= n Sent: Wednesday, August 05, 2009 7:04 PM To: user@couchdb.apache.org Subject: Re: Can't run views on new install On Wed, Aug 5, 2009 at 12:36 PM, Michael McCaffrey w= rote: > New to couchDB. > > > > Got a small java app reading and writing documents to the db using > couchdb4j. > > > > However, I can't get views to work. =A0Get this error when I try to run a > view. Get the error both in java and on futon. > > > > View is simple to return all docs > > > > function(doc) {emit(null,doc);} > > > > > > Error: badmatch > > > > {{einval,[{erlang,open_port, > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[{spawn,"couch_js > ../lib/couchdb/share/server/main.js"}, > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [stream,{line,1024},binary,exit_statu= s,hide]]}, > > =A0 =A0 =A0 =A0 =A0{couch_os_process,init,1}, > > =A0 =A0 =A0 =A0 =A0{gen_server,init_it,6}, > > =A0 =A0 =A0 =A0 =A0{proc_lib,init_p_do_apply,3}]}, > > =A0{gen_server,call,[couch_query_servers,{get_proc,<<"javascript">>}]}} > > > > Running on windows/Firefox. > The Windows process model is a bit different from posix, so that's probably why spawning the JavaScript process is failing. There is a windows installer in the works. Maybe someone who knows more about it can comment. Chris > > > > > Any help? > > > > Thanks > > > > --=20 Chris Anderson http://jchrisa.net http://couch.io