Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  SSL terminating?

anders_n
Posted: Tue Feb 09, 2010 5:04 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
Hi
We have a system running yaws 1.76 on Erlang R12B-2,
RedHat Enteprise Linux, Yaws is running in embedded mode.

Where we recently had a strange error.

I do not know enough about the internal working of the SSL
application. But to me it looks
like, that for some unknown reason the ssl_server process suddenly
terminates with the
reason normal.
This causes the ssl application to be restarted, but it seems like
yaws does not notice this,
so it is still trying to use the old ssl socket <0.247.0>.

There are no other related events in the log than the ones included below.

- Does anyone have any ideas what could have happened?
- Has there been any changes in yaws since 1.76 that could help in this case,
(detecting that the ssl socket has been closed)?
(I looked in the change log but didn't see anything that seemed related)

/Anders


=================================================================
=================================================================

Startup

== 2009-08-13 18:28:06 === INFO =========================== <0.211.0> ==
SASL PROGRESS REPORT
supervisor: {local,yaws_sup}
started: [{pid,<0.244.0>},
{name,yaws_soap_srv},
{mfa,{yaws_soap_srv,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]

== 2009-08-13 18:28:06 === INFO =========================== <0.200.0> ==
SASL PROGRESS REPORT
supervisor: {local,ssl_sup}
started: [{pid,<0.246.0>},
{name,ssl_server},
{mfa,{ssl_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

== 2009-08-13 18:28:06 === INFO =========================== <0.245.0> ==
Yaws: Listening to 0.0.0.0:8080 for servers
- https://npas:8080 under /opt/npas/lib/webgui-0.18/priv/www

======================================================================

Then we get

======================================================================

== 2010-02-03 10:54:57 === ERROR ========================== <0.200.0> ==
SASL SUPERVISOR REPORT
supervisor: {local,ssl_sup}
errorContext: child_terminated
reason: normal
offender: [{pid,<0.246.0>},
{name,ssl_server},
{mfa,{ssl_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

== 2010-02-03 10:54:57 === INFO =========================== <0.200.0> ==
SASL PROGRESS REPORT
supervisor: {local,ssl_sup}
started: [{pid,<0.19831.149>},
{name,ssl_broker_sup},
{mfa,{ssl_broker_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,supervisor}]

== 2010-02-03 10:54:57 === INFO =========================== <0.200.0> ==
SASL PROGRESS REPORT
supervisor: {local,ssl_sup}
started: [{pid,<0.19832.149>},
{name,ssl_manager},
{mfa,{ssl_manager,start_link,[]}},
{restart_type,permanent},
{shutdown,4000},
{child_type,worker}]

== 2010-02-03 10:54:57 === INFO =========================== <0.200.0> ==
SASL PROGRESS REPORT
supervisor: {local,ssl_sup}
started: [{pid,<0.19833.149>},
{name,ssl_connection},
{mfa,{ssl_connection_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,4000},
{child_type,supervisor}]

== 2010-02-03 10:54:57 === INFO =========================== <0.200.0> ==
SASL PROGRESS REPORT
supervisor: {local,ssl_sup}
started: [{pid,<0.19834.149>},
{name,ssl_server},
{mfa,{ssl_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]

== 2010-02-03 10:54:57 === ERROR ========================== <0.19835.149> ==
** Generic server <0.19835.149> terminating
** Last message in was {transport_accept,<0.19830.149>,
{sslsocket,5,<0.247.0>},
10000}
** When Server state == {st,acceptor,<0.19834.149>,<0.19830.149>,
<0.19830.149>,nil,true,[],nil,nil,nil,nil,false,
false}
** Reason for termination ==
** {noproc,{gen_server,call,
[<0.247.0>,
{getopts,<0.19835.149>,
[nodelay,active,packet,mode,header,ip,
backlog]},
10000]}}

== 2010-02-03 10:54:57 === ERROR ========================== <0.19835.149> ==
SASL CRASH REPORT
crasher:
pid: <0.19835.149>
registered_name: []
error_info: {exit,
{noproc,
{gen_server,call,
[<0.247.0>,
{getopts,<0.19835.149>,
[nodelay,active,packet,mode,header,ip,
backlog]},
10000]}},
[{gen_server,terminate,6},{proc_lib,init_p,5}]}
initial_call: {gen,init_it,
[gen_server,<0.19831.149>,<0.19831.149>,ssl_broker,
[<0.19830.149>,acceptor],
[]]}
ancestors: [ssl_broker_sup,ssl_sup,<0.199.0>]
messages: []
links: [<0.19831.149>,<0.19834.149>,<0.19830.149>]
dictionary: []
trap_exit: true
status: running
heap_size: 233
stack_size: 23
reductions: 139
neighbours:
neighbour: [{pid,<0.19830.149>},
{registered_name,[]},
{initial_call,
{yaws_server,acceptor0,
[{gs,
{gconf,"/opt/npas/lib/yaws-1.76.7",false,200,
"/var/npas/yaws",
["/opt/npas/lib/yaws-1.76.7/examples/ebin"],
[],15000,400,1000000,8000,10240,10000000,30,
["/opt/npas/lib/yaws-1.76.7/examples/include"],
"/usr/bin/php-cgi","Yaws 1.76.7","default",true},
[{sconf,8080,2,[],undefined,undefined,
"/opt/npas/lib/webgui-0.18/priv/www",
["/var/npas/attach","/var/npas/attach_tmp/gui",
"/opt/npas/lib/platform-0.14/priv/www",
"/opt/npas/lib/npas-0.38/priv/www",
"/opt/npas/lib/npc-0.25/priv/www"],
{0,0,0,0},
"npas",85,
{ssl,
"/opt/npas/ssh/www.portabilidad.marcatel.com.mx.key",
"/opt/npas/ssh/www.portabilidad.marcatel.com.mx.crt",
0,1,"marcatel",undefined,undefined,undefined},
[],nolimit,
[{"/NPCWebApp/services/NPCWebService",npc_web_service},
{"/NPASWebApp/services/NPASWebService",
npas_be_web_service}],
yaws_404,yaws_404,webgui_arg_rewrite,[],undefined,
[yaws,php,cgi],
[]}],
ssl,
{sslsocket,5,<0.247.0>},
0,13752,54385},
<0.245.0>]}},
{current_function,{gen,wait_resp_mon,3}},
{ancestors,[<0.245.0>,yaws_server,yaws_sup,<0.210.0>]},
{messages,[]},
{links,[<0.245.0>,<0.19835.149>]},
{dictionary,
[{gc,
{gconf,"/opt/npas/lib/yaws-1.76.7",false,200,
"/var/npas/yaws",
["/opt/npas/lib/yaws-1.76.7/examples/ebin"],
[],15000,400,1000000,8000,10240,10000000,30,
["/opt/npas/lib/yaws-1.76.7/examples/include"],
"/usr/bin/php-cgi","Yaws 1.76.7","default",true}}]},
{trap_exit,false},
{status,waiting},
{heap_size,1597},
{stack_size,20},
{reductions,60}]

== 2010-02-03 10:54:57 === ERROR ========================== <0.19831.149> ==
SASL SUPERVISOR REPORT
supervisor: {local,ssl_broker_sup}
errorContext: child_terminated
reason: {noproc,
{gen_server,call,
[<0.247.0>,
{getopts,<0.19835.149>,
[nodelay,active,packet,mode,header,ip,backlog]},
10000]}}
offender: [{pid,<0.19835.149>},
{name,ssl_broker},
{mfa,{ssl_broker,start_link,[<0.19830.149>,acceptor,[]]}},
{restart_type,temporary},
{shutdown,100},
{child_type,worker}]

=

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
View user's profile Send private message Yahoo Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum