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 |
High
|
John Lenton | |||
| | Trunk |
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 on 2015-07-29
- Oliver Grawert: Approve on 2015-07-29
- Ricardo Salveti (community): Needs Information on 2015-07-29
-
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: Approve on 2015-09-01
-
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 (chipaca) wrote : | #1 |
| Oliver Grawert (ogra) wrote : | #2 |
i wouldn't call it a bug if a service that has a hard requirement for network doesn't start when no network is available at all (in fact i'd even call this a feature since it won't uselessly occupy resources)
indeed it should gracefully stop and indeed it should start dynamically along with the network as soon as a cable is attached though.


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.