couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tito Ciuro <tci...@mac.com>
Subject CouchDB crashing when SSL is turned on
Date Thu, 10 Dec 2015 03:05:58 GMT
Hello,

I'm running CouchDB 1.6.1. Using HTTP, it works fine, but when I activate SSL, the following
crash trace appears in the couchdb log I have attached at the bottom of this email.

Any idea why this is happening? Thanks for the help,

-- Tito

[Thu, 10 Dec 2015 02:59:23 GMT] [error] [<0.370.0>] {error_report,<0.30.0>,
{<0.370.0>,crash_report,
[[{initial_call,
{mochiweb_acceptor,init,
['Argument__1','Argument__2','Argument__3']}},
{pid,<0.370.0>},
{registered_name,[]},
{error_info,
{exit,
{{function_clause,
[{tls_v1,enum_to_oid,
[28],
[{file,"tls_v1.erl"},{line,404}]},
{ssl_handshake,
'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,
'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,dec_hello_extensions,2,
[{file,"ssl_handshake.erl"},{line,1657}]},
{tls_handshake,decode_handshake,3,
[{file,"tls_handshake.erl"},{line,182}]},
{tls_handshake,get_tls_handshake_aux,3,
[{file,"tls_handshake.erl"},{line,153}]},
{tls_connection,next_state,4,
[{file,"tls_connection.erl"},{line,454}]},
{gen_fsm,handle_msg,7,
[{file,"gen_fsm.erl"},{line,505}]}]},
{gen_fsm,sync_send_all_state_event,
[<0.544.0>,{start,30000},infinity]}},
[{gen_fsm,sync_send_all_state_event,3,
[{file,"gen_fsm.erl"},{line,240}]},
{ssl_connection,sync_send_all_state_event,2,
[{file,"ssl_connection.erl"},{line,1630}]},
{ssl_connection,handshake,2,
[{file,"ssl_connection.erl"},{line,96}]},
{mochiweb_acceptor,init,3,
[{file,
"/SourceCache/XCSCouchDB/XCSCouchDB-2/dependencies/couchdb/src/mochiweb/mochiweb_acceptor.erl"},
{line,21}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}},
{ancestors,
[https,couch_secondary_services,couch_server_sup,
<0.31.0>]},
{messages,[]},
{links,[<0.122.0>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,2586},
{stack_size,27},
{reductions,16571}],
[]]}}

=CRASH REPORT==== 9-Dec-2015::18:59:23 ===
crasher:
initial call: mochiweb_acceptor:init/3
pid: <0.370.0>
registered_name: []
exception exit: {{function_clause,
[{tls_v1,enum_to_oid,
[28],
[{file,"tls_v1.erl"},{line,404}]},
{ssl_handshake,
'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,
'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,dec_hello_extensions,2,
[{file,"ssl_handshake.erl"},{line,1657}]},
{tls_handshake,decode_handshake,3,
[{file,"tls_handshake.erl"},{line,182}]},
{tls_handshake,get_tls_handshake_aux,3,
[{file,"tls_handshake.erl"},{line,153}]},
{tls_connection,next_state,4,
[{file,"tls_connection.erl"},{line,454}]},
{gen_fsm,handle_msg,7,
[{file,"gen_fsm.erl"},{line,505}]}]},
{gen_fsm,sync_send_all_state_event,
[<0.544.0>,{start,30000},infinity]}}
in function gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl, line 240)
in call from ssl_connection:sync_send_all_state_event/2 (ssl_connection.erl, line 1630)
in call from ssl_connection:handshake/2 (ssl_connection.erl, line 96)
in call from mochiweb_acceptor:init/3 (/SourceCache/XCSCouchDB/XCSCouchDB-2/dependencies/couchdb/src/mochiweb/mochiweb_acceptor.erl,
line 21)
ancestors: [https,couch_secondary_services,couch_server_sup,<0.31.0>]
messages: []
links: [<0.122.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 2586
stack_size: 27
reductions: 16571
neighbours:
[error] [<0.556.0>] ** State machine <0.556.0> terminating 
** Last message in was {tcp,#Port<0.4113>,
<<22,3,1,1,19,1,0,1,15,3,3,160,23,155,28,251,105,
77,96,160,172,30,23,128,142,133,85,214,198,191,
52,211,112,138,150,132,10,79,102,217,242,159,22,
0,0,128,192,47,192,43,192,48,192,44,0,158,192,
39,0,103,192,40,0,107,192,36,192,20,192,10,0,
165,0,163,0,161,0,159,0,106,0,105,0,104,0,57,0,
56,0,55,0,54,192,50,192,46,192,42,192,38,192,15,
192,5,0,157,0,61,0,53,192,35,192,19,192,9,0,164,
0,162,0,160,0,64,0,63,0,62,0,51,0,50,0,49,0,48,
192,49,192,45,192,41,192,37,192,14,192,4,0,156,
0,60,0,47,192,18,192,8,0,22,0,19,0,16,0,13,192,
13,192,3,0,10,0,255,1,0,0,102,0,0,0,14,0,12,0,0,
9,49,50,55,46,48,46,48,46,49,0,11,0,4,3,0,1,2,0,
10,0,28,0,26,0,23,0,25,0,28,0,27,0,24,0,26,0,22,
0,14,0,13,0,11,0,12,0,9,0,10,0,35,0,0,0,13,0,32,
0,30,6,1,6,2,6,3,5,1,5,2,5,3,4,1,4,2,4,3,3,1,3,
2,3,3,2,1,2,2,2,3,51,116,0,0>>}
** When State == hello
** Data == {state,server,
{#Ref<0.0.0.10390>,<0.520.0>},
gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,
"localhost",10355,#Port<0.4113>,
{ssl_options,undefined,
[{3,3},{3,2},{3,1},{3,0}],
verify_none,
{#Fun<ssl.1.97315703>,[]},
false,false,undefined,1,
<<"/home/Certificates/cert.crt">>,
undefined,
<<"/home/Certificates/key.key">>,
undefined,undefined,undefined,<<>>,undefined,
undefined,undefined,undefined,undefined,
[<<"À$">>,<<"À(">>,<<"À&">>,<<"À*">>,
<<0,107>>,
<<0,106>>,
<<0,61>>,
<<"À#">>,<<"À'">>,<<"À%">>,<<"À)">>,
<<0,103>>,
<<0,64>>,
<<0,60>>,
<<"À\n">>,
<<192,20>>,
<<0,57>>,
<<0,56>>,
<<192,5>>,
<<192,15>>,
<<0,53>>,
<<"À\b">>,
<<192,18>>,
<<0,22>>,
<<0,19>>,
<<192,3>>,
<<"À\r">>,
<<0,10>>,
<<"À\t">>,
<<192,19>>,
<<0,51>>,
<<0,50>>,
<<192,4>>,
<<192,14>>,
<<0,47>>,
<<192,7>>,
<<192,17>>,
<<0,5>>,
<<0,4>>,
<<0,21>>,
<<192,2>>,
<<"À\f">>,
<<0,9>>],
#Fun<ssl.0.97315703>,true,268435456,false,undefined,
undefined,false,undefined,undefined,true,undefined},
{socket_options,binary,0,0,0,false},
{connection_states,
{connection_state,
{security_parameters,
<<0,0>>,
0,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
undefined,undefined},
undefined,undefined,undefined,undefined,0,
undefined,undefined,undefined},
{connection_state,
{security_parameters,undefined,0,undefined,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,
<<86,104,234,150,120,140,252,163,118,0,10,221,
115,162,33,125,248,152,216,183,88,132,118,
154,151,112,232,72,48,16,240,141>>,
undefined},
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined},
{connection_state,
{security_parameters,
<<0,0>>,
0,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
undefined,undefined},
undefined,undefined,undefined,undefined,0,
undefined,undefined,undefined},
{connection_state,
{security_parameters,undefined,0,undefined,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,
<<86,104,234,150,120,140,252,163,118,0,10,221,
115,162,33,125,248,152,216,183,88,132,118,
154,151,112,232,72,48,16,240,141>>,
undefined},
undefined,undefined,undefined,undefined,
undefined,undefined,undefined,undefined}},
{protocol_buffers,[],<<>>,<<>>,[]},
{[],[]},
12306,
{session,undefined,undefined,
<<48,130,3,39,48,130,2,15,160,3,2,1,2,2,1,2,48,13,6,9,
42,134,72,134,247,13,1,1,11,5,0,48,63,49,48,48,46,6,
3,85,4,3,12,39,88,99,111,100,101,32,83,101,114,118,
101,114,32,82,111,111,116,32,67,101,114,116,105,102,
105,99,97,116,101,32,65,117,116,104,111,114,105,116,
121,49,11,48,9,6,3,85,4,6,19,2,85,83,48,30,23,13,49,
53,49,50,49,48,48,50,53,53,50,55,90,23,13,50,48,49,
50,48,56,48,50,53,53,50,55,90,48,67,49,26,48,24,6,3,
85,4,3,12,17,105,112,97,110,101,109,97,46,97,112,
112,108,101,46,99,111,109,49,37,48,35,6,9,42,134,72,
134,247,13,1,9,1,22,22,120,99,115,100,64,105,112,97,
110,101,109,97,46,97,112,112,108,101,46,99,111,109,
48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,
0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,220,187,160,
56,124,194,41,184,73,98,166,184,70,187,5,21,49,183,
230,228,26,81,204,134,3,29,176,40,130,57,132,6,130,
12,164,125,22,194,124,171,4,175,41,73,193,208,98,
174,8,135,101,33,236,3,82,252,15,191,15,7,58,126,
232,57,37,227,143,67,86,154,121,159,7,47,29,169,153,
49,162,223,57,246,228,115,13,135,222,13,58,88,154,
191,5,74,83,34,154,232,167,154,143,77,21,123,120,
226,60,76,47,27,17,123,207,178,68,108,246,240,52,
203,131,123,158,180,64,72,140,167,164,64,77,118,120,
202,70,232,149,83,85,217,41,184,149,114,225,5,168,
138,14,240,252,229,212,85,71,159,191,182,117,186,
190,125,248,55,59,29,77,29,175,217,203,203,160,126,
217,164,2,159,33,192,57,11,218,217,121,132,247,248,
235,150,48,242,192,244,203,11,21,28,254,203,140,33,
221,152,30,117,141,241,246,234,33,77,129,46,16,169,
142,223,7,63,147,67,85,229,137,14,182,59,120,184,
127,236,111,207,179,202,143,224,91,78,152,72,82,66,
246,233,46,126,108,201,119,118,112,215,134,83,2,3,1,
0,1,163,42,48,40,48,14,6,3,85,29,15,1,1,255,4,4,3,2,
4,176,48,22,6,3,85,29,37,1,1,255,4,12,48,10,6,8,43,
6,1,5,5,7,3,1,48,13,6,9,42,134,72,134,247,13,1,1,11,
5,0,3,130,1,1,0,71,174,208,238,223,161,129,78,246,
48,239,7,155,37,110,37,247,156,127,9,125,224,188,
147,75,82,54,67,17,193,129,50,161,115,125,141,49,
168,64,169,2,213,178,88,164,56,167,203,119,75,43,
151,196,161,22,13,90,0,6,160,236,83,202,157,59,33,
238,173,253,29,83,74,218,218,165,62,37,142,22,82,
220,167,196,37,65,148,55,81,17,81,246,196,205,15,
250,79,237,7,118,244,125,227,106,57,84,35,188,218,
108,81,30,67,234,223,205,98,36,142,102,79,114,20,84,
31,109,254,61,224,85,164,72,214,21,54,134,248,152,
135,161,251,39,73,241,248,171,32,252,174,210,196,87,
189,249,11,125,159,213,124,82,238,184,102,250,253,
182,107,84,207,30,120,161,115,93,96,211,163,215,197,
41,132,109,120,112,220,147,26,58,141,196,55,75,98,
210,169,126,76,202,0,213,200,100,1,130,0,46,86,46,
237,105,45,18,21,82,74,193,84,127,4,115,68,113,51,
228,152,241,0,249,252,40,243,151,159,28,205,67,102,
164,218,41,194,210,25,6,142,22,105,249,31,189,29,
204,188,52,3,0,39>>,
undefined,undefined,undefined,undefined,new,
63616906774,undefined},
24597,ssl_session_cache,undefined,false,undefined,
{undefined,undefined},
undefined,undefined,
{'RSAPrivateKey','two-prime',
27864948853383026775060034678649919275988464767225561201588886222361566510383375475204599529257600862651658718806598136259754673566053721358411473722621242612050717401903155010590554750471630882300163608271076797168217263463164681147129402599578278161151258834727824129265639018504066664071549471919774117779584632977319669394180040579738769248955427741797929117425115006294238864732967247495518631289536983637717630015502759405433833092498553310643481224104437387620618231346778222641870673439160646684017132731240497274183714535230203977561620576649708510134033972163739671677397447204859676148199228863474197562963,
65537,
17361754756535125430410324794665468418080061191462663321569198773271773301875196517303273222419471041175486093714216828601108112064883007430144408776561573169667195544338517657238730986782406510030133829442012144827608583491079338235834445057771631451431260253860810999808247305821063798475634391814884055196269255868944302693309493013415823083971220191338368766190508496037401872138760867591185227722623473846081008841638879745604782606794431798778729489527803577028681341733495039167581668734054204159115242399319202686508802892303352890044985338393046780660830587637084140013959885377516796484371893508023512520449,
177976533511005899903233696002300561903436743983782504027480841632589919786626535071561961634057542480186325915290090304281391846734115949875824133120804662808652895853895547516012448428067211164895288124471711363036669973812673757009317611611578463498912313851500940324668835713898354482388796784159137597377,
156565297141602574175316860220947370153772413307542464163482347430831329861901985399332428355151905147083856471900790228455653331245000695328033381447861969369718945396686750603994096495059973747658465042577607323065362258608967788390912845964193942795947092460948549541128253750198273931170651875677480006419,
156205047645651454330134156187380080270468308191512727644852495700239134933346938329741123841356635846320665679654027408979136350826958045636165893115471935010051033302044217665151533234393182266578832917582630233331847000834719234984450753313364865960563289328750691784411117845849418646367755482015252370433,
84710146502648666824580932092933347548447686092926869352776607985563088416820765373375781269288057198383302052842365697404657086418610550614717421803862513875839054043076666458138557877509370418515060377264131377215537487648433538437117637442122053459900330371740766562077402836997125216677299004526416582199,
119695796663103474056019921246790501315136391305168501881660674357762633160599426506803514810199562068866825767824974893165139071188781885650153527487132172740423930561972076658233819474563841683290645306562577290150901780545326017621746254716208491290923069454273033235789568114756578403860563776535521629705,
asn1_NOVALUE},
{'DHParameter',
179769313486231590770839156793787453197860296048756011706444423684197180216158519368947833795864925541502180565485980503646440548199239100050792877003355816639229553136239076508735759914822574862575007425302077447712589550957937778424442426617334727629299387668709205606050270810842907692932019128194467627007,
2,asn1_NOVALUE},
undefined,undefined,undefined,undefined,undefined,16403,
#Ref<0.0.0.10392>,undefined,<<>>,
{false,first},
{<0.520.0>,#Ref<0.0.0.10393>},
#Ref<0.0.0.10394>,
{[],[]},
false,true,false,undefined,undefined}
** Reason for termination = 
** {function_clause,[{tls_v1,enum_to_oid,
[28],
[{file,"tls_v1.erl"},{line,404}]},
{ssl_handshake,'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,'-dec_hello_extensions/2-blc$^1/1-0-',1,
[{file,"ssl_handshake.erl"},{line,1657}]},
{ssl_handshake,dec_hello_extensions,2,
[{file,"ssl_handshake.erl"},{line,1657}]},
{tls_handshake,decode_handshake,3,
[{file,"tls_handshake.erl"},{line,182}]},
{tls_handshake,get_tls_handshake_aux,3,
[{file,"tls_handshake.erl"},{line,153}]},
{tls_connection,next_state,4,
[{file,"tls_connection.erl"},{line,454}]},
{gen_fsm,handle_msg,7,
[{file,"gen_fsm.erl"},{line,505}]}]}

[Thu, 10 Dec 2015 02:59:34 GMT] [error] [<0.556.0>] ** State machine <0.556.0>
terminating 
** Last message in was {tcp,#Port<0.4113>,
<<22,3,1,1,19,1,0,1,15,3,3,160,23,155,28,251,105,
77,96,160,172,30,23,128,142,133,85,214,198,191,
52,211,112,138,150,132,10,79,102,217,242,159,22,
0,0,128,192,47,192,43,192,48,192,44,0,158,192,
39,0,103,192,40,0,107,192,36,192,20,192,10,0,
165,0,163,0,161,0,159,0,106,0,105,0,104,0,57,0,
56,0,55,0,54,192,50,192,46,192,42,192,38,192,15,
192,5,0,157,0,61,0,53,192,35,192,19,192,9,0,164,
0,162,0,160,0,64,0,63,0,62,0,51,0,50,0,49,0,48,
192,49,192,45,192,41,192,37,192,14,192,4,0,156,
0,60,0,47,192,18,192,8,0,22,0,19,0,16,0,13,192,
13,192,3,0,10,0,255,1,0,0,102,0,0,0,14,0,12,0,0,
9,49,50,55,46,48,46,48,46,49,0,11,0,4,3,0,1,2,0,
10,0,28,0,26,0,23,0,25,0,28,0,27,0,24,0,26,0,22,
0,14,0,13,0,11,0,12,0,9,0,10,0,35,0,0,0,13,0,32,
0,30,6,1,6,2,6,3,5,1,5,2,5,3,4,1,4,2,4,3,3,1,3,
2,3,3,2,1,2,2,2,3,51,116,0,0>>}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message