[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-06 Thread Timo Aaltonen
that said, it fails with upstart too -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1428796 Title: "service stop; service start" fails with systemd To manage notifications about th

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-06 Thread Timo Aaltonen
hrm, wsgi.py depends on python-freeipa, which itself has modules that import stuff from freeipa-server, so it's not that simple to reproduce -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/b

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-06 Thread Timo Aaltonen
So it's freeipa-server apache config that causes it, not mod_nss. Turns out it's mod_wsgi, this is enough to reproduce the failure: WSGISocketPrefix /run/apache2/wsgi WSGIDaemonProcess ipa processes=6 threads=1 maximum-requests=500 WSGIProcessGroup ipa WSGIApplicationGroup ipa WSGIImportScript /us

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-06 Thread Timo Aaltonen
I'm getting a better error on Debian maalis 06 09:43:20 ipa01 apache2[2223]: Starting web server: apache2(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443 maalis 06 09:43:20 ipa01 apache2[2223]: (98)Address already in use: AH00072: make_sock: could not bind to ad

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-05 Thread Martin Pitt
> maalis 05 20:32:56 ipa02.tyrell apache2[27943]: no listening sockets > available, shutting down > maalis 05 20:32:56 ipa02.tyrell apache2[27943]: AH00015: Unable to open logs That's certainly a good hint where to start. What socket/log dir is apache trying to create? -- You received this bug

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-05 Thread Timo Aaltonen
Hm, this seems to be related to mod_nss being enabled with Freeipa. Disabling it fixes apache2 restart, though installing & enabling it doesn't fail restart with upstart.. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubunt

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-05 Thread Timo Aaltonen
That might be, but the repro rate on systemd is 100%, while I haven't been able to reproduce it with upstart. ** Tags added: systemd-boot -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bug

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-05 Thread Steve Langasek
Your output shows that systemd is invoking the init script for apache2, because there is no native systemd unit in the package. So this is not a problem specific to systemd, the init script must be racy when running under sysvinit as well. (And even under upstart, since apache2 has no upstart job

[Bug 1428796] Re: "service stop; service start" fails with systemd

2015-03-05 Thread Timo Aaltonen
this works with upstart and IIRC sysv (debian) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1428796 Title: "service stop; service start" fails with systemd To manage notification