Re: What's your Erlang VM version?
On Wed, Aug 05, 2009 at 07:16:42PM -0400, Paul Davis wrote: Anyone care to svn up and try building CouchDB on an Erlang VM that before R12B5? - Ubuntu Hardy with erlang 12b3 from Intrepid (1:12.b.3-dfsg-1ubuntu1) (*) - git HEAD aebdb31001126dab6b579b8cc2e605ef7ec499c6 (**) - Builds and installs without errors - But drops HTTP connections on the floor :-( $ telnet localhost 5984 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.0 Connection closed by foreign host. $ - To me the backtrace suggests a problem with re:split, but it mentions oauth in the same breath [Thu, 06 Aug 2009 07:40:27 GMT] [error] [0.104.0] {error_report,0.22.0, {0.104.0,crash_report, [[{pid,0.104.0}, {registered_name,[]}, {error_info, {error,undef, [{re,split, [{couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, default_authentication_handler}, (?=})\\s*,\\s*(?={), [{return,list}]]}, {couch_httpd,make_arity_1_fun_list,1}, {couch_httpd,handle_request,5}, {mochiweb_http,headers,5}, {proc_lib,init_p,5}]}}, {initial_call, {mochiweb_socket_server,acceptor_loop, [{0.56.0,#Port0.155,#Funmochiweb_http.1.81679042}]}}, {ancestors, [couch_httpd,couch_secondary_services,couch_server_sup, 0.1.0]}, {messages,[]}, {links,[0.56.0,#Port0.170]}, {dictionary,[]}, {trap_exit,false}, {status,running}, {heap_size,2584}, {stack_size,23}, {reductions,572}], []]}} [Thu, 06 Aug 2009 07:40:27 GMT] [error] [0.56.0] {error_report,0.22.0, {0.56.0,std_error, {mochiweb_socket_server,235,{child_error,undef Regards, Brian. (*) $ dpkg --status erlang Package: erlang Status: install ok installed Priority: optional Section: interpreters Installed-Size: 80 Maintainer: Ubuntu MOTU Developers ubuntu-m...@lists.ubuntu.com Architecture: all Version: 1:12.b.3-dfsg-1ubuntu1 Depends: erlang-base | erlang-base-hipe, erlang-nox, erlang-x11, erlang-dev Recommends: erlang-src, erlang-examples, erlang-mode Suggests: erlang-manpages, erlang-doc-html Description: Concurrent, real-time, distributed functional language Open Source Erlang is a functional programming language designed at the Ericsson Computer Science Laboratory. . Some of Erlang main features are: Clear declarative syntax and is largely free from side-effects; Builtin support for real-time, concurrent and distributed programming; Designed for development of robust and continously operated programs; Dynamic code replacement at runtime. . This package will install erlang runtime, librarires, sources, code examples and the Erlang editing mode for Emacs. Homepage: http://www.erlang.org/ Original-Maintainer: Erlang Packagers erlang-pkg-de...@lists.berlios.de (**) commit aebdb31001126dab6b579b8cc2e605ef7ec499c6 Author: davisp dav...@13f79535-47bb-0310-9956-ffa450edef68 Date: Wed Aug 5 23:08:25 2009 + The RSA SHA1 Oauth module was breaking trunk for older versions of the Erlang VM. Since we don't actually use it, I'm removing it from the build until we add a ./conifgure option or we update our Erlang version requirement. git-svn-id: http://svn.apache.org/repos/asf/couchdb/tr...@801456 13f79535-47bb-0310-9956-ffa450edef68
Re: What's your Erlang VM version?
FYI, winding back to c0777a52d73ff0c604937a3608dcef3b9862ecd5 and eveything works again, test suite included. My other boxes run Jaunty which has 12b5, so I wouldn't actually object if that were made the minimum. Regards, Brian.
Re: What's your Erlang VM version?
On Thu, Aug 6, 2009 at 09:56, Brian Candlerb.cand...@pobox.com wrote: My other boxes run Jaunty which has 12b5, so I wouldn't actually object if that were made the minimum. My (stable) Gentoo boxen also have 12b5. Cheers, Dirkjan
Re: What's your Erlang VM version?
On Aug 6, 2009, at 3:45 AM, Brian Candler wrote: - To me the backtrace suggests a problem with re:split, but it mentions oauth in the same breath [Thu, 06 Aug 2009 07:40:27 GMT] [error] [0.104.0] {error_report,0.22.0, {0.104.0,crash_report, [[{pid,0.104.0}, {registered_name,[]}, {error_info, {error,undef, [{re,split, [{couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, default_authentication_handler}, I believe re.erl wasn't stable until at least R12B-5, so that error makes sense. I don't know about the availability of 12B-5 in various package management systems, but I'm leaning towards just making that the minimum required Erlang version. Best, Adam
Re: What's your Erlang VM version?
On Wed, Aug 5, 2009 at 3:31 PM, Paul Davis paul.joseph.da...@gmail.comwrote: I just noticed that there aren't any docs for the public_key module required by the oauth code before R12B5. Can anyone with R12B through R12B-4 confirm or deny that trunk builds? I tried building trunk r800950 w/ 12B3 (on Debian Lenny), and it failed. (The missing module sounds familiar, but I didn't write down exactly what the error was.) I ended up installing 13B1 from source and building couchdb went fine. Joseph
Re: What's your Erlang VM version?
On Wed, Aug 5, 2009 at 4:56 PM, Joseph Kocherhansjkocherh...@gmail.com wrote: On Wed, Aug 5, 2009 at 3:31 PM, Paul Davis paul.joseph.da...@gmail.comwrote: I just noticed that there aren't any docs for the public_key module required by the oauth code before R12B5. Can anyone with R12B through R12B-4 confirm or deny that trunk builds? I tried building trunk r800950 w/ 12B3 (on Debian Lenny), and it failed. (The missing module sounds familiar, but I didn't write down exactly what the error was.) I ended up installing 13B1 from source and building couchdb went fine. Joseph The error should refer to being unable to find public_key/include/public_key.hrl in one or more of the erlang-oauth modules. If its not working on 12B3 I'm thinking that we may have just bumped the minimum Erlang version required. Paul Davis
Re: What's your Erlang VM version?
On Wed, Aug 5, 2009 at 5:03 PM, Paul Davispaul.joseph.da...@gmail.com wrote: On Wed, Aug 5, 2009 at 4:56 PM, Joseph Kocherhansjkocherh...@gmail.com wrote: On Wed, Aug 5, 2009 at 3:31 PM, Paul Davis paul.joseph.da...@gmail.comwrote: I just noticed that there aren't any docs for the public_key module required by the oauth code before R12B5. Can anyone with R12B through R12B-4 confirm or deny that trunk builds? I tried building trunk r800950 w/ 12B3 (on Debian Lenny), and it failed. (The missing module sounds familiar, but I didn't write down exactly what the error was.) I ended up installing 13B1 from source and building couchdb went fine. Joseph The error should refer to being unable to find public_key/include/public_key.hrl in one or more of the erlang-oauth modules. If its not working on 12B3 I'm thinking that we may have just bumped the minimum Erlang version required. Paul Davis It turns out that the module causing the error isn't even used so I've just commented it out of the build for now. Anyone care to svn up and try building CouchDB on an Erlang VM that before R12B5? Paul.