[ERROR] Failed to del wg interface

I’m getting these errors in the logs, I’m using almalinux, how can I fix it?

[undefined][2022-04-27 00:03:47,970][INFO] Starting setup server
[undefined][2022-04-27 00:03:47,974][INFO] Generating setup server ssl cert
[winter-dreams-1820][2022-04-27 00:05:15,870][INFO] Starting server
  selinux_context = "system_u:system_r:pritunl_t:s0"
[winter-dreams-1820][2022-04-27 00:05:15,870][INFO] Generating server certificate...
[winter-dreams-1820][2022-04-27 00:23:37,685][WARNING] Failed to assign ip addresses to org, ip pool empty
  org_id = "62686db8ae9342e772e11ab0"
[winter-dreams-1820][2022-04-27 00:41:21,966][INFO] Starting vpn server
  server_id       = "62687025ae9342e772e11c49"
  instance_id     = "62687511ae9342e772e11f52"
  instances       = []
  instances_count = 0
  route_count     = 1
  network         = "10.10.255.0/30"
  network6        = "fd00:a0af:f00::/64"
  host_id         = "8ad57b7d837e4bfc86605c76faf1b273"
  host_address    = "10.10.40.201"
  host_address6   = "fe80::5054:ff:fe2f:31e5"
  host_networks   = ["10.10.40.0/24"]
  cur_timestamp   = "2022-04-26 22:41:21.965702"
  libipt          = false
[winter-dreams-1820][2022-04-27 00:41:22,446][ERROR] Failed to add wg interface
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1326, in start_wg
    'type', 'wireguard',
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 219, in check_output_logged
    return_code, cmd, output=stdoutdata)
subprocess.CalledProcessError: Command '['ip', 'link', 'add', 'dev', 'wg0', 'type', 'wireguard']' returned non-zero exit status 2.
  server_id = "62687025ae9342e772e11c49"
[winter-dreams-1820][2022-04-27 00:41:22,447][ERROR] Popen returned error exit code
  cmd         = ["ip", "link", "add", "dev", "wg0", "type", "wireguard"]
  return_code = 2
Process stderr:
  Error: Unknown device type.
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 887, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.6/threading.py", line 919, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 867, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1661, in _run_thread
    self.start_wg()
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1326, in start_wg
    'type', 'wireguard',
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 215, in check_output_logged
    stderr=stderrdata,
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/logger/__init__.py", line 55, in error
    kwargs['traceback'] = traceback.format_stack()
[winter-dreams-1820][2022-04-27 00:41:22,447][ERROR] Server error occurred while running
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1661, in _run_thread
    self.start_wg()
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1326, in start_wg
    'type', 'wireguard',
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 219, in check_output_logged
    return_code, cmd, output=stdoutdata)
subprocess.CalledProcessError: Command '['ip', 'link', 'add', 'dev', 'wg0', 'type', 'wireguard']' returned non-zero exit status 2.
  server_id   = "62687025ae9342e772e11c49"
  instance_id = "62687511ae9342e772e11f52"
[winter-dreams-1820][2022-04-27 00:41:22,648][ERROR] Failed to stop wg interface
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1404, in stop_wg
    'set', self.interface_wg, 'down',
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 219, in check_output_logged
    return_code, cmd, output=stdoutdata)
subprocess.CalledProcessError: Command '['ip', 'link', 'set', 'wg0', 'down']' returned non-zero exit status 1.
  server_id = "62687025ae9342e772e11c49"
[winter-dreams-1820][2022-04-27 00:41:22,648][ERROR] Popen returned error exit code
  cmd         = ["ip", "link", "set", "wg0", "down"]
  return_code = 1
Process stderr:
  Cannot find device "wg0"
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 887, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib64/python3.6/threading.py", line 919, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 867, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1823, in _run_thread
    self.stop_wg()
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1404, in stop_wg
    'set', self.interface_wg, 'down',
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 215, in check_output_logged
    stderr=stderrdata,
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/logger/__init__.py", line 55, in error
    kwargs['traceback'] = traceback.format_stack()
[winter-dreams-1820][2022-04-27 00:41:22,658][ERROR] Failed to del wg interface
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/server/instance.py", line 1414, in stop_wg
    'del', 'dev', self.interface_wg,
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/misc.py", line 219, in check_output_logged
    return_code, cmd, output=stdoutdata)
subprocess.CalledProcessError: Command '['ip', 'link', 'del', 'dev', 'wg0']' returned non-zero exit status 1.
  server_id = "62687025ae9342e772e11c49"
[winter-dreams-1820][2022-04-27 00:41:22,660][ERROR] Popen returned error exit code
  cmd         = ["ip", "link", "del", "dev", "wg0"]

Install wireguard-tools, if this is already installed there may be issues with SELinux on AlmaLinux. Run sudo setenforce 0 and try starting it.