Bug 1119818 - radicale needs network-online.target instead of network.target
Summary: radicale needs network-online.target instead of network.target
Alias: None
Product: Fedora
Classification: Fedora
Component: radicale
Version: 20
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Juan Orti Alcaine
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: network-online.target
TreeView+ depends on / blocked
Reported: 2014-07-15 15:10 UTC by Corinna Vinschen
Modified: 2014-08-07 15:26 UTC (History)
3 users (show)

Fixed In Version: radicale-0.8-10.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-07 15:26:37 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github Kozea Radicale issues 186 None None None Never

Description Corinna Vinschen 2014-07-15 15:10:50 UTC
Description of problem: radicale starts before network initialization is complete

Version-Release number of selected component (if applicable): 

How reproducible: Configure radicale to listen on explicit static interface address.

Steps to Reproduce:
1. reboot system

Actual results: radicale silently fails to start.

Expected results: radicale starts

Additional info: This is a generic problem with all services binding to explicit interface addresses and depending on network.target only.  network.target does not make sure that all statically configured interfaces are up.  Onle network-online.target does that.  Therefore the solution for all configurable services not supporting IP_FREEBIND is to change the dependency
from network.target to a depedency on network-online.target:


Other network services are affected as well so this bug  report is only one in a row.

Comment 1 Juan Orti Alcaine 2014-07-16 08:30:17 UTC
I'm not sure if it's a good idea to add those dependencies. Many systems will be configured binding to, and if an administrator wants to bind to an explicit IP, he should also add those dependencies to /etc/systemd/system/radicale.service

Maybe it will be better to add a readme explaining this problem.

Comment 2 Corinna Vinschen 2014-07-16 11:42:13 UTC
The problem is that the service settings are not safe.

You have the choice between fast and safe.  The default settings should opt
for being safe.  The behaviour that the service is started before the network is up and then fails is surprising, to say the least.

Alternatively the server should use the IP_FREEBIND setsockopt option, in which
case defaulting to network.target is safe again.

Comment 3 Pavel Šimerda (pavlix) 2014-07-17 08:03:56 UTC
(In reply to Juan Orti Alcaine from comment #1)
> I'm not sure if it's a good idea to add those dependencies. Many systems
> will be configured binding to, and if an administrator wants to bind
> to an explicit IP, he should also add those dependencies to
> /etc/systemd/system/radicale.service

IP_FREEBIND is a much better solution than forcing the user to reconfigure systemd whenever he wants the service to listen on a specific IP.

Comment 4 Fedora Update System 2014-07-17 16:41:29 UTC
radicale-0.8-10.fc20 has been submitted as an update for Fedora 20.

Comment 5 Fedora Update System 2014-07-19 05:57:38 UTC
Package radicale-0.8-10.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing radicale-0.8-10.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Corinna Vinschen 2014-07-21 19:02:43 UTC
radicale-0.8-10.fc20 works for me.


Comment 7 Fedora Update System 2014-08-07 15:26:37 UTC
radicale-0.8-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.