xelerance / xl2tpd

Official Xelerance fork of L2TPd
GNU General Public License v2.0
520 stars 203 forks source link

pppd hogs cpu after xl2tpd restart #68

Closed ivanilves closed 6 years ago

ivanilves commented 9 years ago

Hi,

I run xl2tpd 1.3.6+dfsg-1 on Ubuntu 14.04 64bit.

My xl2tpd.conf (lns address changed for privacy reasons):

[lac company]
autodial = yes
redial = yes
lns = 1.2.3.4
pppoptfile = /etc/ppp/options.company

and options.company:

lock
persist
maxfail 0
debug
user user@company.com
password s0mePa5s

After issuing command /etc/init.d/xl2tpd restart I end up will all connections disconnected and pppd eating 100% of CPU. Only killall -9 pppd helps. It is very baaad I suppose. Any advice?

Thank you!

shussain commented 9 years ago

Thank you for the issue report.

Is there anything in the logs?

Will attempt to reproduce the issue and get back to you

ivanilves commented 9 years ago

Oh @shussain I dunno how I've missed your reply, sorry man. :innocent: There are of course some logs on /etc/init.d/xl2tpd restart:

Aug 26 10:03:52 server2 xl2tpd[21310]: death_handler: Fatal signal 15 received
Aug 26 10:03:52 server2 pppd[21549]: Modem hangup
Aug 26 10:03:52 server2 pppd[21549]: Connect time 0.6 minutes.
Aug 26 10:03:52 server2 pppd[21549]: Sent 0 bytes, received 0 bytes.
Aug 26 10:03:52 server2 pppd[21549]: Script /etc/ppp/ip-down started (pid 21740)
Aug 26 10:03:52 server2 pppd[21549]: Connection terminated.
Aug 26 10:03:52 server2 pppd[21549]: Failed to open /dev/pts/12: No such file or directory
Aug 26 10:03:53 server2 xl2tpd[21773]: setsockopt recvref[30]: Protocol not available
Aug 26 10:03:53 server2 xl2tpd[21773]: This binary does not support kernel L2TP.
Aug 26 10:03:53 server2 xl2tpd[21774]: xl2tpd version xl2tpd-1.3.6 started on server2.qa PID:21774
Aug 26 10:03:53 server2 xl2tpd[21774]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Aug 26 10:03:53 server2 xl2tpd[21774]: Forked by Scott Balmos and David Stipp, (C) 2001
Aug 26 10:03:53 server2 xl2tpd[21774]: Inherited by Jeff McAdams, (C) 2002
Aug 26 10:03:53 server2 xl2tpd[21774]: Forked again by Xelerance (www.xelerance.com) (C) 2006
Aug 26 10:03:53 server2 xl2tpd[21774]: Listening on IP address 0.0.0.0, port 1701
Aug 26 10:03:54 server2 ntpd[2354]: Deleting interface #495 ppp0, 192.168.200.184#123, interface stats: received=0, sent=0, dropped=0, active_time=36 secs
Aug 26 10:03:54 server2 ntpd[2354]: peers refreshed
Aug 26 10:03:55 server2 xl2tpd[21774]: Can not find tunnel 64791 (refhim=0)
Aug 26 10:03:55 server2 xl2tpd[21774]: network_thread: unable to find call or tunnel to handle packet.  call = 50669, tunnel = 64791 Dumping.
Aug 26 10:04:00 server2 xl2tpd[21774]: Can not find tunnel 64791 (refhim=0)
Aug 26 10:04:00 server2 xl2tpd[21774]: network_thread: unable to find call or tunnel to handle packet.  call = 50669, tunnel = 64791 Dumping.
Aug 26 10:04:05 server2 xl2tpd[21774]: Can not find tunnel 64791 (refhim=0)
Aug 26 10:04:05 server2 xl2tpd[21774]: network_thread: unable to find call or tunnel to handle packet.  call = 50669, tunnel = 64791 Dumping.
shussain commented 9 years ago

Thank you for the logs @ivanilves Very much appreciated

shussain commented 6 years ago

We have updated the code quite a bit and addressed various conditional loops.

Can you please test with 1.3.10?

shussain commented 6 years ago

Closing comment. Please reopen or create a new issue if the issue persists