incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <adam.kocolo...@gmail.com>
Subject Re: Solaris
Date Wed, 19 Nov 2008 14:21:09 GMT
Hi Maarten, the 404 on couch_test_runner.js means you're probably on  
r718409.  There was a bug in that revision that jchris fixed in  
r718650.  Your test suite should show up if you grab an updated  
trunk.  Best,

Adam

On Nov 18, 2008, at 11:24 PM, Maarten Thibaut wrote:

> Hi,
>
> I'm trying to get couchdb working on Solaris. Attempts with release  
> 0.9.0a (svn head) and 0.8.1 fail, explanations follow:
>
> * The scripts - such as bin/couchdb and bin/couchjs and etc/init.d/ 
> couchdb seem to be written for the bash dialect, but mention /bin/sh  
> at the top instead of /bin/bash. Could you fix that?
>
> * After compiling & starting couchdb (SVN head 0.9.0a of 18  
> November) as per the troubleshooting guide, I am stuck at this point  
> when trying to run the test suite. When clicking the test suite:
>
> Apache CouchDB 0.9.0a-incubating (LogLevel=info) is starting.
> Apache CouchDB has started. Time to relax.
> [info] [<0.56.0>] 127.0.0.1 - - 'GET' /_utils/couch_tests.html? 
> script/couch_tests.js 304
> [info] [<0.56.0>] 127.0.0.1 - - 'GET' /_utils/style/layout.css?0.8.0  
> 304
> [info] [<0.58.0>] 127.0.0.1 - - 'GET' /_utils/script/json2.js 304
> [info] [<0.56.0>] 127.0.0.1 - - 'GET' /_utils/script/jquery.js?1.2.6  
> 304
> [info] [<0.56.0>] 127.0.0.1 - - 'GET' /_utils/script/pprint.js?0.8.0  
> 304
> [info] [<0.58.0>] 127.0.0.1 - - 'GET' /_utils/script/couch.js?0.8.0  
> 304
> [info] [<0.59.0>] 127.0.0.1 - - 'GET' /_utils/script/ 
> couch_test_runner.js 404
> [info] [<0.56.0>] 127.0.0.1 - - 'GET' /_utils/image/run.gif 304
> [info] [<0.58.0>] 127.0.0.1 - - 'GET' /_utils/image/load.gif 304
> [info] [<0.59.0>] 127.0.0.1 - - 'GET' /_utils/image/thead.gif 304
>
> Note that the left pane only has a header (Name, Status, Elapsed  
> Time, Details), but no table data. The returned HTML source looks  
> like the enclosed PDF.
> <Test Suite.pdf>
>
> I've also attached the output of the truss of couchdb (similar to  
> strace), see out.gz.
>
> <out.gz>
>
> I also tried 0.8.1, the latest downloadable release. It does show  
> all the tests, but all of them fail:
>
> truss -o /tmp/out2 -f /tmp/couchdb-0.8.1/bin/couchdb
> Apache CouchDB 0.8.1-incubating (LogLevel=info)
> Apache CouchDB is starting.
>
> Apache CouchDB has started. Time to relax.
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/couch_tests.html" 304
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/style/layout.css" 304
> [info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/script/json2.js" 304
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/script/jquery.js" 304
> [info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/script/couch.js" 304
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/script/pprint.js" 304
> [info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/script/couch_tests.js"  
> 304
> [info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/image/hgrad.gif" 304
> [info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/image/run.gif" 304
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/image/path.gif" 304
> [info] [<0.55.0>] 127.0.0.1 - - "GET /_utils/image/load.gif" 304
> [info] [<0.56.0>] 127.0.0.1 - - "GET /_utils/image/thead.gif" 304
> [info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/image/run-mini.gif" 304
> [info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/image/running.gif" 304
> [info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/image/test_failure.gif"  
> 304
>
> Basics:
>
> • Exception raised: {"message":"Invalid argument","fileName":"http://localhost:5981/_utils/script/couch_tests.js

> ","lineNumber":1230,"stack":"patchTest((function (debug) {var db =  
> new CouchDB(\"test_suite_db\");db.deleteDb();db.createDb();if  
> (debug) {debugger;}T(db.info().doc_count == 0);var doc = {_id:  
> \"0\", a: 1, b: 1};var result = db.save(doc);T(result.ok ==  
> true);T(result.id);T(result.rev);T(doc._id == result.id && doc._rev  
> == result.rev);var id = result.id;T(db.save({_id: \"1\", a: 2, b:  
> 4}).ok);T(db.save({_id: \"2\", a: 3, b: 9}).ok);T(db.save({_id:  
> \"3\", a: 4, b: 16}).ok);T(db.info().doc_count == 4);var results =  
> db.allDocs();var rows = results.rows;for (var i = 0; i <  
> rows.length; i++) {T(rows[i].id >= \"0\" && rows[i].id <=  
> \"4\");}var mapFunction = function (doc) {if (doc.a == 4)  
> {emit(null, doc.b);}};results =  
> db.query(mapFunction);T(results.total_rows == 1 &&  
> results.rows[0].value == 16);existingDoc =  
> db.open(id);T(existingDoc.a == 1);existingDoc.a =  
> 4;db.save(existingDoc);results =  
> db.query(mapFunction);T(results.total_rows == 2);T(db.save({a: 3, b:  
> 9}).ok);T(db.save({a: 4, b: 16}).ok);results =  
> db.query(mapFunction);T(results.total_rows ==  
> 3);T(db.info().doc_count == 6);var reduceFunction = function (keys,  
> values) {return sum(values);};results = db.query(mapFunction,  
> reduceFunction);T(results.rows[0].value ==  
> 33);T(db.deleteDoc(existingDoc).ok);T(db.open(existingDoc._id) ==  
> null);results = db.query(mapFunction);T(results.total_rows ==  
> 2);T(db.info().doc_count == 5);}))@http://localhost:5981/_utils/script/couch_tests.js:1230

> \u000arun(0)@http://localhost:5981/_utils/script/couch_tests.js: 
> 1274\u000a","name":"Error"}
>
> Conflict:
> • Exception raised: {"message":"Invalid argument","fileName":"http://localhost:5981/_utils/script/couch_tests.js

> ","lineNumber":1230,"stack":"patchTest((function (debug) {var db =  
> new CouchDB(\"test_suite_db\");db.deleteDb();db.createDb();if  
> (debug) {debugger;}var doc = {_id: \"foo\", a: 1, b:  
> 1};T(db.save(doc).ok);var doc2 = db.open(doc._id);T(doc._id ==  
> doc2._id && doc._rev == doc2._rev);doc.a = 2;doc2.a =  
> 3;T(db.save(doc).ok);try {db.save(doc2);T(\"no save conflict 1\" &&  
> false);} catch (e) {T(e.error == \"conflict\");}doc2._rev =  
> undefined;try {db.save(doc2);T(\"no save conflict 2\" && false);}  
> catch (e) {T(e.error == \"conflict 
> \");}T(db.deleteDoc(doc).ok);T(db.save(doc2).ok);}))@http://localhost:5981/_utils/script/couch_tests.js:1230

> \u000arun(0)@http://localhost:5981/_utils/script/couch_tests.js: 
> 1274\u000a","name":"Error"}
>
> Truss output is out2.gz.
>
> <out2.gz>
>
> Any ideas?
>
> Thanks!
> maarten


Mime
View raw message