Subject: | Error in CouchDB:View:Server |
Date: | Sat, 27 Mar 2010 09:52:39 -0700 |
To: | bug-CouchDB-View [...] rt.cpan.org |
From: | Cesar Delgado <beettlle [...] gmail.com> |
I've been trying to get the perl couchdb view engine to work for the last couple of days and I'm stuck. I am running couchdb 0.10.1 on a CentOS 5 system. I had some problems finding the right rpm site to download all the pre-reqs. Once I got that sorted out your module installed with no problems.
This is the version of things I'm running:
Couch-View: CouchDB-View-0.003
perl: "This is perl, v5.8.8 built for i386-linux-thread-multi"
OS: CentOS 5 "Linux Bluegene 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux"
When I started I added the following lines to my etc/couchdb/local.ini:
[query_servers]
text/perl = /usr/bin/couchdb-view-server.pl
I restarted and tried to run a small test on the Relax Web UI map function:
sub {
my ($doc) = @_;
dmap($doc, 1);
}
That gave me an : "Error: unknown_query_language". So I removed the "text/" part in the ini file and I got an "Errr: os_process_error {exit_status, 255}". Doing a little snooping around I found it was coming from the couchdb-view-server.pl script.
~]$ /usr/bin/couchdb-view-server.pl
Can't bless non-reference value at /usr/lib/perl5/site_perl/5.8.8/CouchDB/View/Server.pm line 16.
~]$ echo $?
255
~]# echo "[\"reset\"]" | /usr/bin/couchdb-view-server.pl
Can't bless non-reference value at /usr/lib/perl5/site_perl/5.8.8/CouchDB/View/Server.pm line 16.
~]# echo $?
255
I guess, more exactly it's coming from the Server.pm module. I've looked at the code and can't figure for the life of me what's going on in like 16. I'm stuck.
Any and all help would be greatly appreciated.
-Cesar Delgado