couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Klo <>
Subject Re: browserid_couchdb helper files cannot be found aka build_couchdb + plugins issue.
Date Wed, 13 Jun 2012 22:29:22 GMT
Walt - and anyone else who has this issue..

This seems to be a by-product of build-couchdb and the plugins parameter.

build-couchdb's plugins is supposed to be just a csv list of git://your/repo/location branch/tag

It turns out, at least if you're git hosting is on github, the official git url that GitHub
 gives to you is like this:
	git:// origin/master

That last ".git" is getting propagated into the build as lib/couchdb/plugins/browserid_couchdb.git
which is the wrong directory for code:priv_dir(..) to locate what it needs for the plugin.
 I tried simply renaming the directory without any luck, so it seems there's some kind of
erlang path foo compiled into files?

The solution until it's somehow fixed (i'd do it but don't know Ruby) is to be sure NOT to
include the .git portion in the path:

	git:// origin/master

I found this condition to be true for any of the plugins built using build-couchdb tool, however
I think it may only manifest itself for plugins that have private directories.

- Jim

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International

On Jun 12, 2012, at 12:52 PM, Grata, Walt wrote:

> I'm trying to do a clean install of couchdb with browserid_couchdb and I'm
> running into the following issues.
> When I started the install for the first time, not matter what path I
> accessed I got a 401, uncommenting the admin = password from local.ini
> fixed this issue.
> Now I keep getting the error "Cannot find browserid helper files" whenever
> i try to access /_browserid.  I set the ERL_ARGS value, and
> [browserid][enabled] to true?
> [debug] [<0.140.0>] 'GET' /_browserid {1,1} from ""
> Headers: [{'Accept',"*/*"},
>          {'Host',"localhost:5984"},
>          {'User-Agent',"curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
> OpenSSL/1.0.1 zlib/ libidn/1.23 librtmp/2.3"}]
> [debug] [<0.140.0>] OAuth Params: []
> [error] [<0.140.0>] Cannot find browserid helper files
> [info] [<0.140.0>] - - GET /_browserid 500
> [debug] [<0.140.0>] httpd 500 error response:
> {"error":"Cannot find browserid helper files"}
> This is all that shows up in my couchdb log.  I'm not sure where to go from
> here to debug this further.

View raw message