webdm failed to start / Failed to listen 224.0.0.251:5353
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Snappy | Status tracked in Trunk | |||||
15.04 |
Fix Released
|
High
|
John Lenton | |||
Trunk |
Fix Released
|
High
|
John Lenton |
Bug Description
When booting into my Snappy image, suddenly webdm fails to start when no network cable is connected.
(ODROIDC)
● webdm_snappyd_
Loaded: loaded (/etc/systemd/
Active: failed (Result: exit-code) since Thu 2015-06-18 21:41:17 UTC; 9min ago
Process: 726 ExecStart=
Main PID: 726 (code=exited, status=1/FAILURE)
Jun 18 21:41:17 odroid systemd[1]: Started Snappy WebDM.
Jun 18 21:41:17 odroid systemd[1]: Starting Snappy WebDM...
Jun 18 21:41:17 odroid ubuntu-
Jun 18 21:41:17 odroid systemd[1]: webdm_snappyd_
Jun 18 21:41:17 odroid systemd[1]: Unit webdm_snappyd_
Jun 18 21:41:17 odroid systemd[1]: webdm_snappyd_
When booting with network cable connected it works just fine:
● webdm_snappyd_
Loaded: loaded (/etc/systemd/
Active: active (running) since Thu 2015-06-18 21:52:42 UTC; 25s ago
Main PID: 772 (snappyd)
CGroup: /system.
└─772 /apps/webdm/
Jun 18 21:52:42 odroid systemd[1]: Started Snappy WebDM.
Jun 18 21:52:42 odroid systemd[1]: Starting Snappy WebDM...
Jun 18 21:52:42 odroid ubuntu-
Jun 18 21:52:42 odroid ubuntu-
Jun 18 21:52:42 odroid ubuntu-
Jun 18 21:52:42 odroid ubuntu-
Jun 18 21:52:42 odroid ubuntu-
Details of installation:
(ODROIDC)
release: ubuntu-
architecture: armhf
frameworks: docker, webdm
apps:
(ODROIDC)
Name Date Version Developer
ubuntu-core 2015-06-11 3 ubuntu
docker 2015-06-15 1.6.1.002
webdm 2015-06-15 0.9
odroidc 2015-06-15 0.2
Related branches
- Sergio Schvezov: Approve
- Oliver Grawert: Approve
- Ricardo Salveti (community): Needs Information
-
Diff: 199 lines (+91/-1)7 files modifieddebian/golang-snappy-dev.install (+1/-0)
debian/rules (+9/-0)
debian/snappy-wait4network.service (+10/-0)
snappy/click.go (+1/-0)
snappy/click_test.go (+21/-0)
systemd/systemd.go (+4/-1)
systemd/systemd_test.go (+45/-0)
- John Lenton (community): Approve
-
Diff: 199 lines (+91/-1)7 files modifieddebian/golang-snappy-dev.install (+1/-0)
debian/rules (+9/-0)
debian/snappy-wait4network.service (+10/-0)
snappy/click.go (+1/-0)
snappy/click_test.go (+21/-0)
systemd/systemd.go (+4/-1)
systemd/systemd_test.go (+45/-0)
So, the conceptually easiest way to fix this would be to have webdm setsockopt IP_FREEBIND. Sadly that implies reimplementing nearly all of net/ as well as patching the mdns library we use, so probably not a good idea.