danted does not start on system startup as systemd dependency seems to be wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dante (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I've configured danted to be startup automatically during system bootup.
Hower, it fails with the following error:
---8<---
Jun 04 17:20:47 max systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Jun 04 17:20:47 max systemd[1]: Started SOCKS (v4 and v5) proxy daemon (danted).
Jun 04 17:20:47 max danted[3209]: warning: int_ifname2sock
Jun 04 17:20:47 max danted[3209]: error: /etc/danted.conf: problem on line 53 near token "enp0s31f6": could not resolve hostname "enp0s31f6": Temporary failure in name re>
Jun 04 17:20:47 max danted[3209]: alert: mother[1/1]: shutting down
Jun 04 17:20:47 max systemd[1]: danted.service: Main process exited, code=exited, status=1/FAILURE
Jun 04 17:20:47 max systemd[1]: danted.service: Failed with result 'exit-code'.
--->8---
When I later try to start it manually using 'systemctl' it starts up without issues.
I was able to fix it using this patch:
---8<---
--- /lib/systemd/
+++ /lib/systemd/
@@ -1,7 +1,7 @@
[Unit]
Description=SOCKS (v4 and v5) proxy daemon (danted)
Documentation=
-After=
+After=
[Service]
Type=simple
--->8---
This suggests that when "network.target" is reached, not all required services are set up yet.
IMHO dependency needs to be changed to "network-
Please note that I'm running this computer as a permanently LAN connected stationary desktop workstation. If it's a mobile computer using WiFi, UMTS or something, "network-
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: dante-server 1.4.2+dfsg-7build3 [modified: lib/systemd/
ProcVersionSign
Uname: Linux 5.11.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckR
Date: Sun Jun 6 16:01:00 2021
InstallationDate: Installed on 2019-11-25 (559 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: dante
UpgradeStatus: Upgraded to hirsute on 2021-06-04 (1 days ago)
modified.
mtime.conffile.