benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 113 forks source link

Couchbeam_server termination #32

Closed livestalker closed 13 years ago

livestalker commented 14 years ago

Hello. I have couchdb v 1.0.0 I: couchbeam:start(), Connection_pid = couchbeam_server:start_connection_link(), couchbeam_db:create(Connection_pid, "testdb"). And get:

=ERROR REPORT==== 30-Jul-2010::21:16:40 === * Generic server <0.63.0> terminating * Last message in was {'EXIT',<0.66.0>,normal} * When Server state == {server_state, {couchdb_params,"127.0.0.1",5984,false,"/",nil, nil,default,infinity}, "/",default,24596,28693,<0.64.0>} * Reason for termination == * {{badmatch,[]}, [{couchbeam_server,handle_info,2}, {gen_server,handle_msg,5}, {proc_lib,init_p_do_apply,3}]} * exception exit: {badmatch,[]} in function couchbeam_server:handle_info/2 in call from gen_server:handle_msg/5 in call from proc_lib:init_p_do_apply/3

=ERROR REPORT==== 30-Jul-2010::21:16:40 === * Generic server <0.70.0> terminating * Last message in was {'EXIT',<0.72.0>,normal} * When Server state == {server_state, {couchdb_params,"127.0.0.1",5984,false,"/",nil, nil,default,infinity}, "/",default,45078,49172,<0.71.0>} * Reason for termination == \ {{badmatch,[]}, [{couchbeam_server,handle_info,2}, {gen_server,handle_msg,5}, {proc_lib,init_p_do_apply,3}]}

couchbeam_server terminated but db is created.

benoitc commented 14 years ago

any error on couchdb side ?

livestalker commented 14 years ago

No error on server side. Do you test couchbeam with CouchDB version 1.0.0 on windows?

benoitc commented 14 years ago

I just tested on osx and got :

1> couchbeam:start(),
1> Connection_pid = couchbeam_server:start_connection_link(),
1> couchbeam_db:create(Connection_pid, "testdb").
** Found 0 name clashes in code paths 
<0.63.0>
2> couchbeam_server:info(Connection_pid).
[{<<"couchdb">>,<<"Welcome">>},
 {<<"version">>,<<"1.1.0ad9af890-git">>}]
3> 

I need to find a windows, I will let you know.

livestalker commented 14 years ago

Maybe I need to change something in the settings of CouchDB. With impatience shall wait for your answer when you find windows.

nougad commented 13 years ago

Same issue here on Gentoo Linux with couchdb 1.0.1 and HEAD of master branch (erlang 13.2.4 - lhttpc 1.2.5):

1> couchbeam:start().
** Found 0 name clashes in code paths 
ok
2> Conn = couchbeam_server:start_connection().
<0.60.0>
3> couchbeam_server:all_dbs(Conn).
[<<"soid">>,<<"_users">>]  <<<<<< correct answer!!
Unexpected message, restarting couchbeam_server: {'EXIT',<0.63.0>,normal}4> 
=ERROR REPORT==== 9-Oct-2010::00:42:25 ===
** Generic server <0.60.0> terminating 
** Last message in was {'EXIT',<0.63.0>,normal}
** When Server state == {server,
                        {couchdb_params,"127.0.0.1",5984,false,"/",nil,
                            nil,default,infinity,100},
                        default,"/",100,0,
                        {re_pattern,0,0,
                            <<69,82,67,80,116,0,0,0,16,0,0,0,1,0,0,0,0,0,
                              0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                              0,93,0,72,25,77,0,0,0,0,0,0,0,0,0,0,0,0,254,
                              255,255,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                              77,0,0,0,0,16,171,255,3,0,0,0,128,254,255,
                              255,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,26,
                              84,0,72,0>>},
                        <0.61.0>}
** Reason for termination == 
** kill

Any Ideas?

benoitc commented 13 years ago

Fixed in last head. thanks for the feedback :)

nougad commented 13 years ago

Works for me, thx!