Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xl2tpd无法start,Failed to start Level 2 Tunnel Protocol Daemon (L2TP) #85

Open
lensory opened this issue Nov 1, 2022 · 1 comment
Labels

Comments

@lensory
Copy link

lensory commented Nov 1, 2022

Environment

Please complete the following information:

  • AlmaLinux 8.6
  • zjunet version: 0.3.3 (0.3.3-4)
  • xl2tpd version: xl2tpd-1.3.15
  • wired
  • on server

其他情况:
安装时候的warning:Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/qsc.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Transaction的时候的error
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: ppp-2.4.7-26.el8_1.x86_64 1/4
Installing : ppp-2.4.7-26.el8_1.x86_64 1/4
Running scriptlet: ppp-2.4.7-26.el8_1.x86_64 1/4
Installing : kernel-modules-extra-4.18.0-372.32.1.el8_6.x86_64 2/4
Running scriptlet: kernel-modules-extra-4.18.0-372.32.1.el8_6.x86_64 2/4
Installing : xl2tpd-1.3.15-1.el8.x86_64 3/4
Running scriptlet: xl2tpd-1.3.15-1.el8.x86_64 3/4
Installing : zjunet-0.3.3-4.noarch 4/4
Running scriptlet: zjunet-0.3.3-4.noarch 4/4
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Resource temporarily unavailable)
error: /etc/pki/rpm-gpg/RPM-GPG-KEY-QSC-COMP66: key 1 import failed.
Added yum repo.

Bug description

在成功安装之后,尝试添加user。

Output

输入
zjunet user add
出现xl2tpd无法启动的问题
username XXXXXXXX
password: XXX
[INFO] Disconnect VPN
[INFO] Try to start xl2tpd if not
[INFO] Starting xl2tpd
Job for xl2tpd.service failed because the control process exited with error code.
See "systemctl status xl2tpd.service" and "journalctl -xe" for details.
Fail to start xl2tpd
[INFO] try disconnecting zju-l2tp-xxxxxXXX
[INFO] xl2tpd-control done
xl2tpd-control: Unable to open /var/run/xl2tpd/l2tp-control for writing: No such file or directory
[INFO] Setting up ip route.
default via 10.72.126.1 dev enp8s0
default via 10.72.126.1 dev enp8s0 proto static metric 100
10.72.126.0/24 dev enp8s0 proto kernel scope link src 10.72.126.187 metric 100
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
[INFO] Write to xl2tpd.conf
/usr/lib/zjunet/xl2tpd.sh: line 87: /etc/ppp/peers/zju-l2tp-XXXX: No such file or directory
chmod: cannot access '/etc/ppp/peers/zju-l2tp-XXXX': No such file or directory
[INFO] Restart xl2tpd
[INFO] Stopping xl2tpd
[INFO] Starting xl2tpd
Job for xl2tpd.service failed because the control process exited with error code.
See "systemctl status xl2tpd.service" and "journalctl -xe" for details.
Fail to start xl2tpd

根据提示
systemctl status xl2tpd
输出如下:
● xl2tpd.service - Level 2 Tunnel Protocol Daemon (L2TP)
Loaded: loaded (/usr/lib/systemd/system/xl2tpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-11-01 07:39:24 EDT; 1min 11s ago
Process: 252195 ExecStartPre=/sbin/modprobe -q l2tp_ppp (code=exited, status=1/FAILURE)

Nov 01 07:39:24 Saturn systemd[1]: Starting Level 2 Tunnel Protocol Daemon (L2TP)...
Nov 01 07:39:24 Saturn systemd[1]: xl2tpd.service: Control process exited, code=exited status=1
Nov 01 07:39:24 Saturn systemd[1]: xl2tpd.service: Failed with result 'exit-code'.
Nov 01 07:39:24 Saturn systemd[1]: Failed to start Level 2 Tunnel Protocol Daemon (L2TP).

顺便试了下ExecStartPre中的命令,去掉quiet选项,输出如下:
modprobe l2tp_ppp

modprobe: FATAL: Module l2tp_ppp not found in directory /lib/modules/4.18.0-372.9.1.el8.x86_64

@lensory lensory added the bug label Nov 1, 2022
@utcao
Copy link

utcao commented Oct 19, 2023

我的ubuntu 22,04 也遇到过。建议重新安装一遍。 sudo apt reinstall zjunet 或者相关的依赖包。然后遵循 zjunet user add and zjunet vpn -c 即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants