FWIW I poked at this a bit and the problem is reported elsewhere, but on FreeBSD

http://groups.google.com/group/mochiweb/msg/d3ae98bec483392e


On Nov 24, 2008, at 4:27 PM, Kridsada Thanabulpong wrote:

Hello,

I've tried building Erlang by hand, and rebuilding Couch from trunk
but the problem still persist. This is the trace with loglevel =
debug.

Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [kernel-poll:false]

Apache CouchDB 0.9.0a720294-incubating (LogLevel=debug) is starting.
Configuration Settings ["/usr/local/etc/couchdb/default.ini",
                        "/usr/local/etc/couchdb/local.ini"]:
  [couchdb] database_dir="/usr/local/var/lib/couchdb"
  [couchdb] max_document_size="4294967296"
[couchdb] util_driver_dir="/usr/local/lib/couchdb/erlang/lib/ couch-0.9.0a720294-incubating/priv/lib"
  [couchdb] view_timeout="5000"
[daemons] db_update_notifier="{couch_db_update_notifier_sup, start_link, []}"
  [daemons] full_text_query="{couch_ft_query, start_link, []}"
  [daemons] httpd="{couch_httpd, start_link, []}"
  [daemons] query_servers="{couch_query_servers, start_link, []}"
  [daemons] view_manager="{couch_view, start_link, []}"
  [httpd] WWW-Authenticate="Basic realm=\"administrator\""
[httpd] authentication_handler="{couch_httpd, default_authentication_handler}"
  [httpd] bind_address="127.0.0.1"
  [httpd] port="5984"
[httpd_db_handlers] _temp_view="{couch_httpd_view, handle_temp_view_req}"
  [httpd_db_handlers] _view="{couch_httpd_view, handle_view_req}"
[httpd_global_handlers] /="{couch_httpd_misc_handlers, handle_welcome_req, <<\"Welcome\">>}" [httpd_global_handlers] _all_dbs="{couch_httpd_misc_handlers, handle_all_dbs_req}" [httpd_global_handlers] _config="{couch_httpd_misc_handlers, handle_config_req}" [httpd_global_handlers] _replicate="{couch_httpd_misc_handlers, handle_replicate_req}" [httpd_global_handlers] _restart="{couch_httpd_misc_handlers, handle_restart_req}" [httpd_global_handlers] _utils="{couch_httpd_misc_handlers, handle_utils_dir_req, \"/usr/local/share/couchdb/www\"}" [httpd_global_handlers] _uuids="{couch_httpd_misc_handlers, handle_uuids_req}" [httpd_global_handlers] favicon.ico="{couch_httpd_misc_handlers, handle_favicon_req, \"/usr/local/share/couchdb/www\"}"
  [log] file="/usr/local/var/log/couchdb/couch.log"
  [log] level="debug"
[query_servers] javascript="/usr/local/bin/couchjs /usr/local/ share/couchdb/server/main.js"
Apache CouchDB has started. Time to relax.
[debug] [<0.56.0>] 'GET' /_utils/ {1,1}
Headers: [{'Accept',"*/*"},
          {'Host',"127.0.0.1:5984"},
{'User-Agent',"curl/7.19.2 (powerpc-apple-darwin9.5.0) libcurl/7.19.2 zlib/1.2.3"}]
[error] [<0.56.0>] {error_report,<0.21.0>,
    {<0.56.0>,crash_report,
     [[{pid,<0.56.0>},
       {registered_name,[]},
       {error_info,
           {error,badarg,
               [{erlang,universaltime_to_localtime,
                    [{{1969,12,31},{23,59,59}}]},
                {calendar,local_time_to_universal_time_dst,1},
                {httpd_util,rfc1123_date,1},
                {mochiweb_request,serve_file,4},
                {couch_httpd,serve_file,3},
                {couch_httpd,handle_request,3},
                {mochiweb_http,headers,4},
                {proc_lib,init_p_do_apply,3}]}},
{initial_call,{mochiweb_socket_server,acceptor_loop, ['Argument__1']}},
       {ancestors,
[couch_httpd,couch_secondary_services,couch_server_sup,<0.1.0>]},
       {messages,[]},
       {links,[<0.55.0>,#Port<0.1234>]},
       {dictionary,[{mochiweb_request_path,"/_utils/"}]},
       {trap_exit,false},
       {status,running},
       {heap_size,2584},
       {stack_size,23},
       {reductions,1719}],
      []]}}
[error] [<0.55.0>] {error_report,<0.21.0>,
              {<0.55.0>,std_error,
               {mochiweb_socket_server,235,{child_error,badarg}}}}

=ERROR REPORT==== 25-Nov-2008::04:22:35 ===
{mochiweb_socket_server,235,{child_error,badarg}}

I run Mac OS X 10.5.5 on a PowerBook G4 machine.

Thanks.

On Mon, Nov 24, 2008 at 11:25 PM, Jan Lehnardt <[EMAIL PROTECTED]> wrote:
Can you paste the trace that happens with trunk? And can you try building
Erlang by hand?

I've never seen this error.

Cheers
Jan
--

On 22.11.2008, at 07:50, "Kridsada Thanabulpong" <[EMAIL PROTECTED]> wrote:

Hello,

I'm trying to play around with CouchDB, but I can't access the web
management interface for some reason, although I can access the HTTP
API, creating new database, adding new documents, visit _replicate,
just not being able to access the web management interface. I've
installed everything from MacPorts and is using Erlang R12B-5. I've
also tried building from trunk, but the problem still remains.

Here's the errors:

% erl
Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0]
[kernel-poll:false]

% sudo -u couchdb couchdb
Apache CouchDB 0.8.1-incubating (LogLevel=debug)
Apache CouchDB is starting.

Apache CouchDB has started. Time to relax.
[debug] [<0.1.0>] Config Info /opt/local/etc/couchdb/couch.ini:
      CurrentWorkingDir=/Users/sirn
      DbRootDir=/opt/local/var/lib/couchdb
      BindAddress="127.0.0.1"
      Port="5984"
      DocumentRoot=/opt/local/share/couchdb/www
      LogFile=/opt/local/var/log/couchdb/couch.log

UtilDriverDir=/opt/local/lib/couchdb/erlang/lib/couch-0.8.1- incubating/priv/lib
      DbUpdateNotificationProcesses=
      FullTextSearchQueryServer=
      javascript=/opt/local/bin/couchjs
/opt/local/share/couchdb/server/main.js

[debug] [<0.52.0>] GET /_utils/ {1,1}
Headers: [{'Accept',"text/html, application/xml;q=0.9,
application/xhtml+xml, image/png, image/jpeg, image/gif, image/x- xbitmap,
*/*;q=0.1"},
        {'Accept-Charset',"iso-8859-1, utf-8, utf-16, *;q=0.1"},
{'Accept-Encoding',"deflate, gzip, x-gzip, identity, *;q=0"},
        {'Accept-Language',"en,ja;q=0.9,th;q=0.8,ko;q=0.7"},
        {'Cache-Control',"no-cache"},
        {'Connection',"Keep-Alive, TE"},
        {'Host',"127.0.0.1:5984"},
        {"Te","deflate, gzip, chunked, identity, trailers"},
        {'User-Agent',"Opera/9.62 (Macintosh; PPC Mac OS X; U; en)
Presto/2.1.1"}]
[info] [<0.52.0>] HTTP Error (code 500): {'EXIT',
                         {badarg,
                             [{erlang,universaltime_to_localtime,
                                  [{{1969,12,31},{23,59,59}}]},

{calendar,local_time_to_universal_time_dst,1},
                              {httpd_util,rfc1123_date,1},
                              {mochiweb_request,serve_file,4},
                              {couch_httpd,handle_request0,4},
                              {couch_httpd,handle_request,2},
                              {mochiweb_http,headers,4},
                              {proc_lib,init_p_do_apply,3}]}}
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/" 500

I've also tried visiting /_utils using Safari, Firefox and curl but
the problem still remains. The error report from development build is
similar. Is there any way to fix this?

Thanks



Reply via email to