- Joined
- Nov 13, 2020
- Messages
- 5
- Reaction score
- 1
Hello
I've been running 3CX for a while on my Raspberry Pi with little to no issues, but now since completely disabling openvpn (systemctl disable openvpn, systemctl disable openvpn-iptables, systemctl disable openvpn-server) the issue of the 3CXPhoneSystemMC01 service crashing has arisen.
As you can see below from the error message, 3CXManagementConsole is trying to read /sys/class/net/tun0/mtu which doesn't exist since there is no /sys/class/net/tun0 and there also is no tun0 interface. I'm pretty sure that tun0 is from openvpn as when it existed, it had an IP address within the VPN address range, but now it doesn't exist anymore and I don't know why 3CX still believes it does and so tries to get information about it.
If you have any ideas what I could try to resolve this issue I would very much appreciate any help. I haven't had any luck finding "tun0" in files in /var/lib/3cxpbx/ or in /usr/lib/3cxpbx/, except in one binary file /var/lib/3cxpbx/core, thinking it could still be in some configuration file somewhere but maybe I haven't looked in the right places.
Thank you.
I've been running 3CX for a while on my Raspberry Pi with little to no issues, but now since completely disabling openvpn (systemctl disable openvpn, systemctl disable openvpn-iptables, systemctl disable openvpn-server) the issue of the 3CXPhoneSystemMC01 service crashing has arisen.
As you can see below from the error message, 3CXManagementConsole is trying to read /sys/class/net/tun0/mtu which doesn't exist since there is no /sys/class/net/tun0 and there also is no tun0 interface. I'm pretty sure that tun0 is from openvpn as when it existed, it had an IP address within the VPN address range, but now it doesn't exist anymore and I don't know why 3CX still believes it does and so tries to get information about it.
If you have any ideas what I could try to resolve this issue I would very much appreciate any help. I haven't had any luck finding "tun0" in files in /var/lib/3cxpbx/ or in /usr/lib/3cxpbx/, except in one binary file /var/lib/3cxpbx/core, thinking it could still be in some configuration file somewhere but maybe I haven't looked in the right places.
Thank you.
Code:
$ sudo /usr/lib/3cxpbx/3CXManagementConsole --pid /var/run/phonesystem/3CXPhoneSystemMC01.pid -p /var/lib/3cxpbx/Instance1/Data/Http/webroot
Hosting environment: Production
Content root path: /var/lib/3cxpbx/Instance1/Data/Http/webroot
Now listening on: http://unix:/var/run/phonesystem/management_console01.socket
Application started. Press Ctrl+C to shut down.
Unhandled exception. System.Net.NetworkInformation.NetworkInformationException (2): An error was encountered while querying information from the operating system. ---> System.AggregateException: One or more errors occurred. (Could not find a part of the path '/sys/class/net/tun0/mtu'.)
---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/sys/class/net/tun0/mtu'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at System.Net.NetworkInformation.StringParsingHelpers.ParseRawIntFile(String filePath)
at System.Net.NetworkInformation.LinuxIPv4InterfaceProperties.GetMtu()
at System.Net.NetworkInformation.LinuxIPv4InterfaceProperties..ctor(LinuxNetworkInterface linuxNetworkInterface)
at System.Net.NetworkInformation.LinuxIPInterfaceProperties..ctor(LinuxNetworkInterface lni)
at System.Net.NetworkInformation.LinuxNetworkInterface..ctor(String name, Int32 index)
at System.Net.NetworkInformation.LinuxNetworkInterface.GetOrCreate(Dictionary`2 interfaces, String name, Int32 index)
at System.Net.NetworkInformation.LinuxNetworkInterface.<>c__DisplayClass5_0.<GetLinuxNetworkInterfaces>b__0(String name, IpAddressInfo* ipAddr, IpAddressInfo* maskAddr)
--- End of inner exception stack trace ---
at System.Net.NetworkInformation.LinuxNetworkInterface.GetLinuxNetworkInterfaces()
at ConfigurationManagementModel.NetworkUtils.ReloadInterfaceList()
at ConfigurationManagementModel.NetworkUtils.<>c.<.cctor>b__13_0(Object sender, EventArgs e)
at System.Net.NetworkInformation.NetworkChange.RunAddressChangedHandler(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.NetworkInformation.NetworkChange.OnAddressChanged()
at System.Net.NetworkInformation.NetworkChange.OnSocketEvent(NetworkChangeKind kind)
at System.Net.NetworkInformation.NetworkChange.ProcessEvent(Int32 socket, NetworkChangeKind kind)
Aborted
$ ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet -.-.-.- netmask 255.255.255.0 broadcast -.-.-.255
inet6 -::- prefixlen 64 scopeid 0x0<global>
inet6 -::- prefixlen 64 scopeid 0x20<link>
ether --:--:--:--:--:-- txqueuelen 1000 (Ethernet)
RX packets 8314962 bytes 3375255918 (3.1 GiB)
RX errors 0 dropped 115070 overruns 0 frame 0
TX packets 3011978 bytes 240370637 (229.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 610408 bytes 150122724 (143.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 610408 bytes 150122724 (143.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether --:--:--:--:--:-- txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0