binhex / arch-delugevpn

Docker build script for Arch Linux base with Deluge, Privoxy and OpenVPN
GNU General Public License v3.0
680 stars 112 forks source link

FATAL: Module run not found in /lib/modules/ #393

Open Overactt opened 4 months ago

Overactt commented 4 months ago

Hello, i've got a problem after putting the opvn file.

2024-03-07 19:59:16.713897 [info] System information Linux f8f82a5ff06c 6.5.13-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.13-1 (2024-02-05T13:50Z) x86_64 GNU/Linux
2024-03-07 19:59:16.733984 [info] PUID defined as '0'
2024-03-07 19:59:16.842081 [info] PGID defined as '0'
2024-03-07 19:59:16.912872 [info] UMASK defined as '000'
2024-03-07 19:59:16.930783 [info] Permissions already set for '/config'
2024-03-07 19:59:16.949620 [info] Deleting files in /tmp (non recursive)...
2024-03-07 19:59:16.972724 [info] VPN_ENABLED defined as 'yes'
2024-03-07 19:59:16.991970 [info] VPN_CLIENT defined as 'openvpn'
2024-03-07 19:59:17.010292 [info] VPN_PROV defined as 'pia'
2024-03-07 19:59:17.030909 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/belgium.ovpn
2024-03-07 19:59:17.070631 [info] VPN remote server(s) defined as 'brussels.privacy.network,'
2024-03-07 19:59:17.086597 [info] VPN remote port(s) defined as '1197,'
2024-03-07 19:59:17.102845 [info] VPN remote protcol(s) defined as 'udp,'
2024-03-07 19:59:17.122993 [info] VPN_DEVICE_TYPE defined as 'tun0'
2024-03-07 19:59:17.141065 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2024-03-07 19:59:17.358525 [info] LAN_NETWORK defined as '192.168.1.0/24'
2024-03-07 19:59:17.377418 [info] NAME_SERVERS defined as '84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
2024-03-07 19:59:17.395522 [info] VPN_USER defined as 'p7272858'
2024-03-07 19:59:17.413739 [info] VPN_PASS defined as 'i3e92zqhUT'
2024-03-07 19:59:17.431895 [info] STRICT_PORT_FORWARD defined as 'yes'
2024-03-07 19:59:17.450056 [info] ENABLE_PRIVOXY defined as 'yes'
2024-03-07 19:59:17.470559 [info] VPN_INPUT_PORTS defined as '1234'
2024-03-07 19:59:17.488641 [info] VPN_OUTPUT_PORTS defined as '5678'
2024-03-07 19:59:17.506885 [info] DELUGE_DAEMON_LOG_LEVEL defined as 'info'
2024-03-07 19:59:17.525498 [info] DELUGE_WEB_LOG_LEVEL defined as 'info'
2024-03-07 19:59:17.543702 [info] DELUGE_ENABLE_WEBUI_PASSWORD defined as 'yes'
2024-03-07 19:59:29.372958 [info] Starting Supervisor...
2024-03-07 19:59:29,495 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing
2024-03-07 19:59:29,495 INFO Set uid to user 0 succeeded
2024-03-07 19:59:29,497 INFO supervisord started with pid 7
2024-03-07 19:59:30,498 INFO spawned: 'start-script' with pid 290
2024-03-07 19:59:30,500 INFO spawned: 'watchdog-script' with pid 291
2024-03-07 19:59:30,500 INFO reaped unknown pid 8 (exit status 0)
2024-03-07 19:59:30,505 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN
2024-03-07 19:59:30,505 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-03-07 19:59:30,505 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-03-07 19:59:30,548 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf
2024-03-07 19:59:30,551 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf
2024-03-07 19:59:30,553 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf
2024-03-07 19:59:30,557 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf
2024-03-07 19:59:30,560 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf
2024-03-07 19:59:30,564 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf
2024-03-07 19:59:30,570 DEBG 'start-script' stdout output:
[info] Attempting to load tun kernel module...
2024-03-07 19:59:30,571 DEBG 'start-script' stderr output:
modprobe: FATAL: Module tun not found in directory /lib/modules/6.5.13-1-pve
2024-03-07 19:59:30,572 DEBG 'start-script' stdout output:
[warn] Unable to load tun kernel module using modprobe, trying insmod...
2024-03-07 19:59:30,573 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/tun.ko: No such file or directory
2024-03-07 19:59:30,573 DEBG 'start-script' stdout output:
[warn] Unable to load tun kernel module, assuming its dynamically loaded
2024-03-07 19:59:30,574 DEBG 'start-script' stderr output:
mknod: /dev/net/tun
2024-03-07 19:59:30,574 DEBG 'start-script' stderr output:
: Operation not permitted
2024-03-07 19:59:30,575 DEBG 'start-script' stdout output:
[crit] Unable to create tun device, try adding docker container option '--device=/dev/net/tun'
2024-03-07 19:59:30,575 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 138654225327632 for <Subprocess at 138654225598480 with name start-script in state RUNNING> (stderr)>
2024-03-07 19:59:30,575 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 138654225601488 for <Subprocess at 138654225598480 with name start-script in state RUNNING> (stdout)>
2024-03-07 19:59:30,575 WARN exited: start-script (exit status 1; not expected)
2024-03-07 19:59:30,575 DEBG received SIGCHLD indicating a child quit_

Can someone translate the logs and tell me what should i do..? Thanks!

Overactt commented 4 months ago

Ok i tried running it through a privileged lxc in proxmox and now i got this.. try everything i've seen online. can't get it work


2024-03-10 13:46:25 TCP/UDP: Preserving recently used remote address: [AF_INET]181.214.218.67:1197
2024-03-10 13:46:25 UDPv4 link local: (not bound)
2024-03-10 13:46:25 UDPv4 link remote: [AF_INET]181.214.218.67:1197
2024-03-10 13:46:25,238 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 [brussels420] Peer Connection Initiated with [AF_INET]181.214.218.67:1197
2024-03-10 13:46:25,257 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)
2024-03-10 13:46:25 Exiting due to fatal error
2024-03-10 13:46:25,258 DEBG 'start-script' stdout output:
[info] Starting OpenVPN (non daemonised)...
2024-03-10 13:46:25,264 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 DEPRECATED OPTION: --cipher set to 'aes-256-cbc' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations. 
2024-03-10 13:46:25 WARNING: file 'credentials.conf' is group or others accessible
2024-03-10 13:46:25,265 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 OpenVPN 2.6.7 [git:makepkg/53c9033317b3b8fd+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Nov  9 2023
2024-03-10 13:46:25 library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2024-03-10 13:46:25 DCO version: N/A
2024-03-10 13:46:25 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-03-10 13:46:25,265 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----
MIIDWDCCAUAwDQYJKoZIhvcNAQENBQAwgegxCzAJBgNVBAYTAlVTMQswCQYDVQQI
EwJDQTETMBEGA1UEBxMKTG9zQW5nZWxlczEgMB4GA1UEChMXUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MxIDAeBgNVBAsTF1ByaXZhdGUgSW50ZXJuZXQgQWNjZXNzMSAw
HgYDVQQDExdQcml2YXRlIEludGVybmV0IEFjY2VzczEgMB4GA1UEKRMXUHJpdmF0
ZSBJbnRlcm5ldCBBY2Nlc3MxLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRl
aW50ZXJuZXRhY2Nlc3MuY29tFw0xNjA3MDgxOTAwNDZaFw0zNjA3MDMxOTAwNDZa
MCYwEQIBARcMMTYwNzA4MTkwMDQ2MBECAQYXDDE2MDcwODE5MDA0NjANBgkqhkiG
9w0BAQ0FAAOCAgEAppFfEpGsasjB1QgJcosGpzbf2kfRhM84o2TlqY1ua+Gi5TMd
KydA3LJcNTjlI9a0TYAJfeRX5IkpoglSUuHuJgXhP3nEvX10mjXDpcu/YvM8TdE5
JV2+EGqZ80kFtBeOq94WcpiVKFTR4fO+VkOK9zwspFfb1cNs9rHvgJ1QMkRUF8Pp
LN6AkntHY0+6DnigtSaKqldqjKTDTv2OeH3nPoh80SGrt0oCOmYKfWTJGpggMGKv
IdvU3vH9+EuILZKKIskt+1dwdfA5Bkz1GLmiQG7+9ZZBQUjBG9Dos4hfX/rwJ3eU
8oUIm4WoTz9rb71SOEuUUjP5NPy9HNx2vx+cVvLsTF4ZDZaUztW9o9JmIURDtbey
qxuHN3prlPWB6aj73IIm2dsDQvs3XXwRIxs8NwLbJ6CyEuvEOVCskdM8rdADWx1J
0lRNlOJ0Z8ieLLEmYAA834VN1SboB6wJIAPxQU3rcBhXqO9y8aa2oRMg8NxZ5gr+
PnKVMqag1x0IxbIgLxtkXQvxXxQHEMSODzvcOfK/nBRBsqTj30P+R87sU8titOox
NeRnBDRNhdEy/QGAqGh62ShPpQUCJdnKRiRTjnil9hMQHevoSuFKeEMO30FQL7BZ
yo37GFU+q1WPCplVZgCP9hC8Rn5K2+f6KLFo5bhtowSmu+GY1yZtg+RTtsA=
-----END X509 CRL-----
2024-03-10 13:46:25,266 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 TCP/UDP: Preserving recently used remote address: [AF_INET]181.214.218.66:1197
2024-03-10 13:46:25 UDPv4 link local: (not bound)
2024-03-10 13:46:25 UDPv4 link remote: [AF_INET]181.214.218.66:1197
2024-03-10 13:46:25,487 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 [brussels420] Peer Connection Initiated with [AF_INET]181.214.218.66:1197
2024-03-10 13:46:25,504 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)
2024-03-10 13:46:25 Exiting due to fatal error
2024-03-10 13:46:25,505 DEBG 'start-script' stdout output:
[info] Starting OpenVPN (non daemonised)...
2024-03-10 13:46:25,511 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 DEPRECATED OPTION: --cipher set to 'aes-256-cbc' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305). OpenVPN ignores --cipher for cipher negotiations. 
2024-03-10 13:46:25 WARNING: file 'credentials.conf' is group or others accessible
2024-03-10 13:46:25,512 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 OpenVPN 2.6.7 [git:makepkg/53c9033317b3b8fd+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO] built on Nov  9 2023
2024-03-10 13:46:25 library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2024-03-10 13:46:25 DCO version: N/A
2024-03-10 13:46:25 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-03-10 13:46:25,513 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----
MIIDWDCCAUAwDQYJKoZIhvcNAQENBQAwgegxCzAJBgNVBAYTAlVTMQswCQYDVQQI
EwJDQTETMBEGA1UEBxMKTG9zQW5nZWxlczEgMB4GA1UEChMXUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MxIDAeBgNVBAsTF1ByaXZhdGUgSW50ZXJuZXQgQWNjZXNzMSAw
HgYDVQQDExdQcml2YXRlIEludGVybmV0IEFjY2VzczEgMB4GA1UEKRMXUHJpdmF0
ZSBJbnRlcm5ldCBBY2Nlc3MxLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRl
aW50ZXJuZXRhY2Nlc3MuY29tFw0xNjA3MDgxOTAwNDZaFw0zNjA3MDMxOTAwNDZa
MCYwEQIBARcMMTYwNzA4MTkwMDQ2MBECAQYXDDE2MDcwODE5MDA0NjANBgkqhkiG
9w0BAQ0FAAOCAgEAppFfEpGsasjB1QgJcosGpzbf2kfRhM84o2TlqY1ua+Gi5TMd
KydA3LJcNTjlI9a0TYAJfeRX5IkpoglSUuHuJgXhP3nEvX10mjXDpcu/YvM8TdE5
JV2+EGqZ80kFtBeOq94WcpiVKFTR4fO+VkOK9zwspFfb1cNs9rHvgJ1QMkRUF8Pp
LN6AkntHY0+6DnigtSaKqldqjKTDTv2OeH3nPoh80SGrt0oCOmYKfWTJGpggMGKv
IdvU3vH9+EuILZKKIskt+1dwdfA5Bkz1GLmiQG7+9ZZBQUjBG9Dos4hfX/rwJ3eU
8oUIm4WoTz9rb71SOEuUUjP5NPy9HNx2vx+cVvLsTF4ZDZaUztW9o9JmIURDtbey
qxuHN3prlPWB6aj73IIm2dsDQvs3XXwRIxs8NwLbJ6CyEuvEOVCskdM8rdADWx1J
0lRNlOJ0Z8ieLLEmYAA834VN1SboB6wJIAPxQU3rcBhXqO9y8aa2oRMg8NxZ5gr+
PnKVMqag1x0IxbIgLxtkXQvxXxQHEMSODzvcOfK/nBRBsqTj30P+R87sU8titOox
NeRnBDRNhdEy/QGAqGh62ShPpQUCJdnKRiRTjnil9hMQHevoSuFKeEMO30FQL7BZ
yo37GFU+q1WPCplVZgCP9hC8Rn5K2+f6KLFo5bhtowSmu+GY1yZtg+RTtsA=
-----END X509 CRL-----
2024-03-10 13:46:25,513 DEBG 'start-script' stdout output:
2024-03-10 13:46:25 TCP/UDP: Preserving recently used remote address: [AF_INET]104.16.114.56:1197
2024-03-10 13:46:25 UDPv4 link local: (not bound)
2024-03-10 13:46:25 UDPv4 link remote: [AF_INET]104.16.114.56:1197
binhex commented 4 months ago

Not privileged enough by the look of it:-2024-03-10 13:46:25 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)