xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
299 stars 107 forks source link

SSTP module "BUG:ctx:triton_unregister_ctx: timers is not empty" #167

Open arozhentsev opened 2 years ago

arozhentsev commented 2 years ago

Hello!

accel-ppp 1.12

After enable sstp module i start often receive errors.

/var/log/accel-ppp/core.log

[2022-01-17 17:31:44.933]BUG:ctx:triton_unregister_ctx: timers is not empty
[2022-01-17 19:16:11.168]BUG:ctx:triton_unregister_ctx: timers is not empty

journalctl -u accel-ppp

-- Logs begin at Mon 2022-01-17 17:31:45 +06, end at Mon 2022-01-17 19:52:41 +06. --
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Main process exited, code=killed, status=6/ABRT
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Failed with result 'signal'.
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Service RestartSec=100ms expired, scheduling restart.
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Scheduled restart job, restart counter is at 95.
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: Stopped Accel-PPP.
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: Starting Accel-PPP...
Jan 17 17:31:45 kz-alm-mong44-vpn01 systemd[1]: Started Accel-PPP.
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Main process exited, code=killed, status=6/ABRT
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Failed with result 'signal'.
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Service RestartSec=100ms expired, scheduling restart.
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Scheduled restart job, restart counter is at 96.
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: Stopped Accel-PPP.
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: Starting Accel-PPP...
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: accel-ppp.service: Failed to parse PID from file /run/accel-pppd.pid: Invalid argument
Jan 17 19:16:11 kz-alm-mong44-vpn01 systemd[1]: Started Accel-PPP.

Config

[modules]
log_file
l2tp
auth_mschap_v2
sstp
#auth_mschap_v1
#auth_chap_md5
#auth_chap
radius
#chap-secrets
ippool
pppd_compat

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=4

[common]
#single-session=replace
#single-session-ignore-case=0
#sid-case=upper
#sid-source=seq
#max-sessions=1000
#max-starting=0
#check-ip=0
verbose=1

[ppp]
min-mtu=1280
mtu=1400
mru=1400
#accomp=deny
#pcomp=deny
ccp=0
mppe=prefere
ipv4=require
ipv6=deny
#ipv6-intf-id=0:0:0:1
#ipv6-peer-intf-id=0:0:0:2
#ipv6-accept-peer-intf-id=1
lcp-echo-interval=10
lcp-echo-failure=3
lcp-echo-timeout=120
unit-cache=1
#unit-preallocate=1
verbose=3

[auth]
#any-login=0
#noauth=0

[l2tp]
#bind=192.168.201.100,77.245.105.188
dictionary=/usr/share/accel-ppp/l2tp/dictionary
hello-interval=60
timeout=60
rtimeout=1
#rtimeout-cap=16
retransmit=5
#recv-window=16
host-name=hostname
#dir300_quirk=0
#secret=
#dataseq=allow
#reorder-timeout=0
#ip-pool=l2tp
#ipv6-pool=l2tp
#ipv6-pool-delegate=l2tp
#ifname=l2tp%d
verbose=1

[dns]
dns1=10.140.6.251
dns2=10.140.6.252
dns3=10.134.7.11

[wins]
#wins1=172.16.0.1
#wins2=172.16.1.1

[radius]
dictionary=/usr/share/accel-ppp/radius/dictionary
nas-identifier=nas-identifier
nas-ip-address=10.140.6.248
gw-ip-address=172.18.0.1
server=10.140.6.253,SECRET_STRING,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
#dae-server=127.0.0.1:3799,testing123
timeout=3
max-try=3
#acct-timeout=120
#acct-delay-time=0
#acct-on=0
#acct-interim-interval=0
#acct-interim-jitter=0
#attr-tunnel-type=My-Tunnel-Type
verbose=3

[client-ip-range]
disable
#10.0.0.0/8

[ip-pool]
attr=Framed-IP-Address

[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
#log-debug=/var/log/accel-ppp/debug.log
#syslog=accel-pppd,daemon
#log-tcp=127.0.0.1:3000
copy=1
#color=1
#per-user-dir=per_user
#per-session-dir=per_session
#per-session=1
level=5

[pppd-compat]
#verbose=1
#ip-pre-up=/etc/ppp/ip-pre-up
#ip-up=/etc/ppp/ip-up
#ip-down=/etc/ppp/ip-down
#ip-change=/etc/ppp/ip-change
#radattr-prefix=/var/run/radattr
#fork-limit=16

#[chap-secrets]
#gw-ip-address=172.18.0.1
#chap-secrets=/etc/chap-secrets
#encrypted=0
#username-hash=md5

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
sessions-columns=ifname,username,ip,ip6,ip6-dp,type,state,uptime,uptime-raw,calling-sid,called-sid,sid,comp,rx-bytes,tx-bytes,rx-bytes-raw,tx-bytes-raw,rx-pkts,tx-pkts

[snmp]
#master=0
#agent-name=accel-ppp

[connlimit]
#limit=60/min
#burst=3
#timeout=60

How can i solve this?

DmitriyEshenko commented 2 years ago

Hi @arozhentsev, did you try to build the version from the master branch?

DmitriyEshenko commented 2 years ago

Hi @arozhentsev , try this fix https://github.com/accel-ppp/accel-ppp/commit/961bdeb07319c590d2c15d4186f12067644d94f7 It already in accel-ppp org repo