Knockd service fails to start due to missing dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
knockd (Ubuntu) |
Fix Released
|
Medium
|
Dan Streetman | ||
Bionic |
Fix Released
|
Medium
|
Dan Streetman | ||
Focal |
Fix Released
|
Medium
|
Dan Streetman | ||
Groovy |
Fix Released
|
Medium
|
Dan Streetman | ||
Hirsute |
Fix Released
|
Medium
|
Dan Streetman |
Bug Description
[impact]
knockd doesn't correctly start at boot
[test case]
install a test system; linux mint (from comment 5) or plain ubuntu
check if any installed-
$ systemctl list-dependencies --reverse network-
network-
if any services are listed as reverse deps, disable or uninstall them; for example, with the default lxd container image:
ubuntu@
network-
● ├─cloud-
● ├─cloud-
● ├─iscsid.service
● └─open-
so those services need to be disabled, or the packages uninstalled, so there are no services that Want=network-
Then install knockd and configure (see comment 5) and reboot, and confirm that knockd is started (and fails) before networking starts. Also check that network-
[regression potential]
any regression would likely cause knockd to fail to correctly start; regressions after starting up are unlikely.
[scope]
this is needed in b/f/g/h
[other info]
note that this project seems essentially dead upstream, the last official release was 2014:
https:/
[original description]
I would like to request a small fix in the systemd unit file knockd.service. Please add the [Unit] line
Wants=network-
Bug description:
When the system starts, the knockd daemon fails with a message "knockd[1012]: could not open eno1: eno1: That device is not up". This bug was also described here:
https:/
In accordance with the recommendations in the systemd.unit documentation, it should be sufficient to accompany the After= option with a Wants= option.
This fixed the issue for me; and in the syslog I could see that the network manager comes online before the knockd daemon (as required), instead of after.
Tested on Linux Mint 20.1 that is based on Ubuntu focal (knockd 0.7-1ubuntu3).
Changed in knockd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in knockd (Ubuntu Focal): | |
status: | New → In Progress |
Changed in knockd (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in knockd (Ubuntu Hirsute): | |
status: | New → In Progress |
Changed in knockd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in knockd (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in knockd (Ubuntu Hirsute): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in knockd (Ubuntu Groovy): | |
assignee: | nobody → Dan Streetman (ddstreet) |
importance: | Undecided → Medium |
Changed in knockd (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in knockd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in knockd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
description: | updated |
Changed in knockd (Ubuntu Groovy): | |
status: | Incomplete → In Progress |
Changed in knockd (Ubuntu Focal): | |
status: | Incomplete → In Progress |
Changed in knockd (Ubuntu Bionic): | |
status: | Incomplete → In Progress |
Changed in knockd (Ubuntu Groovy): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in knockd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in knockd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
tags: | added: network-online-ordering |
@ivo-straka I can't reproduce any failure, can you provide test case steps to reproduce this please