From user-return-21223-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Jun 13 22:30:51 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2BECC9750 for ; Wed, 13 Jun 2012 22:30:51 +0000 (UTC) Received: (qmail 25845 invoked by uid 500); 13 Jun 2012 22:30:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25685 invoked by uid 500); 13 Jun 2012 22:30:49 -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 25669 invoked by uid 99); 13 Jun 2012 22:30:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 22:30:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.18.84.133] (HELO brightmail-internal4.sri.com) (128.18.84.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 22:30:42 +0000 X-AuditID: 80125485-b7efc6d000006bab-db-4fd9147d1d47 Received: from exchange-hub02.SRI.COM (exchange-hub02.SRI.COM [128.18.23.154]) (using TLS with cipher AES128-SHA (AES128-SHA/128 bits)) (Client did not present a certificate) by brightmail-internal4.sri.com (SRI Internal SMTP Gateway) with SMTP id A5.67.27563.D7419DF4; Wed, 13 Jun 2012 15:30:21 -0700 (PDT) Received: from EXCHANGE-DB08.SRI.COM ([fe80::a11e:7c21:6886:9a20]) by exchange-hub02.SRI.COM ([fe80::f097:c52f:a570:8336%12]) with mapi id 14.02.0298.004; Wed, 13 Jun 2012 15:29:23 -0700 From: Jim Klo To: "" Subject: Re: browserid_couchdb helper files cannot be found aka build_couchdb + plugins issue. Thread-Topic: browserid_couchdb helper files cannot be found aka build_couchdb + plugins issue. Thread-Index: AQHNSbP7XvBQA13ckUK/XH2+l47pbQ== Date: Wed, 13 Jun 2012 22:29:22 +0000 Message-ID: <6111B903-B143-4E21-AC68-9750104AEF70@sri.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [192.12.16.205] Content-Type: multipart/signed; boundary="Apple-Mail-45-542167915"; protocol="application/pkcs7-signature"; micalg=sha1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsXSICQ+S7dW5Ka/wbzjJhade/ayOTB6bPxw nDGAMYrLJiU1J7MstUjfLoEr4/tyh4L5GRUzv/YyNjC2xnUxcnJICJhINHx+zwRhi0lcuLee rYuRi0NIYCeTxJXuSYwQzj5GifYbzawgVWwC8hKHtz9gBrFFBCwlbi34yAJiCwskSLT/fMEC EU+U2H2qhxHC1pO4s+QaUC8HB4uAqsTG59UgJq+AlcTii8YgFUICARJP7vSxgdicAoESfZdX g3UyAt3z/dQasNuYBcQlbj2ZD3WniMTDi6fZIGxRiZeP/7FC2IoSG6dMZIGor5RY/HI92Bxe AUGJkzOfsExgFJmFZNQsJGWzkJRBxN0lli+aAWVrSyxb+Jp5FtDVzAI6EpMXMqIKQ9gfzx+B Gmkq8froR6gaa4kZvw6yQdiKElO6H7IvYORexSiTVJSZnlGSm5iZowuLSxO94qJMveT83E2M 4FgNad3BuGKP4SFGAQ5GJR5egeM3/IVYE8uKK3MPMUpwMCuJ8Oqx3vQX4k1JrKxKLcqPLyrN SS0+xCjNwaIkzvvNnN9fSCA9sSQ1OzW1ILUIJsvEwSnVwJgo0ree4U1U9eJi/jfq0tnvY97X iisbyTx803+/WtNhgmXV3yRTaem7gaVuy58Wx343knfzZ9z8mGPx1vKTMw55sk1wsIn6ceHR XrmmP3cS53/gK9t1p1mDbXPv/fLfHhLbdytaedffVPZZZPvx6eMVC5MP/dx6okn7W4fvEX2J qW+rDWqPBimxFGckGmoxFxUnAgA9Ee4Z0QIAAA== X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-45-542167915 Content-Type: multipart/alternative; boundary=Apple-Mail-44-542167879 --Apple-Mail-44-542167879 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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: =20 git://github.com/iriscouch/browserid_couchdb.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://github.com/iriscouch/browserid_couchdb 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 =09 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. >=20 > When I started the install for the first time, not matter what path I > accessed I got a 401, uncommenting the admin =3D password from = local.ini > fixed this issue. >=20 > 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? >=20 >=20 > [debug] [<0.140.0>] 'GET' /_browserid {1,1} from "127.0.0.1" > 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/1.2.3.4 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>] 127.0.0.1 - - GET /_browserid 500 > [debug] [<0.140.0>] httpd 500 error response: > {"error":"Cannot find browserid helper files"} >=20 > This is all that shows up in my couchdb log. I'm not sure where to go = from > here to debug this further. --Apple-Mail-44-542167879 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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:
 

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:


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
=

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 =3D 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 "127.0.0.1"
Headers: = [{'Accept',"*/*"},
=          {'Host',"localhost:5= 984"},
=          {'User-Agent',"curl/= 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.1 = zlib/1.2.3.4 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>] 127.0.0.1 - - 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.

= --Apple-Mail-44-542167879-- --Apple-Mail-45-542167915 Content-Disposition: attachment; filename="smime.p7s" Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJ/zCCBO0w ggRWoAMCAQICEBX3i1OyIZLyYjv7fwx/UYkwDQYJKoZIhvcNAQEFBQAwgdgxCzAJBgNVBAYTAlVT MRowGAYDVQQKExFTUkkgSW50ZXJuYXRpb25hbDEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0 d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9y cGEgKGMpMDIxMDAuBgNVBAsTJ0NsYXNzIDIgT25TaXRlIEluZGl2aWR1YWwgU3Vic2NyaWJlciBD QTEdMBsGA1UEAxMUU1JJIEludGVybmF0aW9uYWwgQ0EwHhcNMTIwMTAzMDAwMDAwWhcNMTMwMTAy MjM1OTU5WjCBwjEaMBgGA1UEChQRU1JJIEludGVybmF0aW9uYWwxKDAmBgNVBAsUH0luZm9ybWF0 aW9uIFRlY2hub2xvZ3kgU2VydmljZXMxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3Np dG9yeS9DUFMgSW5jb3JwLiBieSBSZWYuLExJQUIuTFREKGMpOTkxEjAQBgNVBAMTCUphbWVzIEts bzEeMBwGCSqGSIb3DQEJARYPamltLmtsb0BzcmkuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A MIIBCgKCAQEA2utx7vCP7eb6FitPXlP4Oo4fm2Bsx/lz7X7rHvqZRFdNkLtZjmppsofuWMRdrIMj xCW0lCQb2mvKwA/VSK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