Bug 24522 - 02univention-directory-notifier.inst fails to start UDL - runsv
02univention-directory-notifier.inst fails to start UDL - runsv
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Notifier (univention-directory-notifier)
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
: 11889 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-10 17:36 CET by Arvid Requate
Modified: 2020-07-03 20:55 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
Fix runsv supervision (1.54 KB, patch)
2017-04-21 13:22 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2011-11-10 17:36:35 CET
Folgende Fehlermeldung findet sich im join.log auf einem UCS 3.0-RC amd64 Master:

Configure 02univention-directory-notifier.inst
Starting Univention Directory Notifier daemon.
warning: univention-directory-notifier: unable to open supervise/ok: file does not exist
failed.
Comment 1 Stefan Gohmann univentionstaff 2013-04-09 21:13:12 CEST
Das scheint nur ein temporäres Problem zu sein.
Comment 2 Philipp Hahn univentionstaff 2017-04-21 13:21:58 CEST
UCS-3.0 is OoM.
runit will be phased out by systemd anyway: Bug #43687
It's only of cosmetic significance: only "warning".
But directly after installation the notifier is not running; only the reboot fixes it.

FYI:

# mkdir -p /etc/runit/test
# touch /etc/runit/test/down
# ln -snf /usr/share/univention-runit/sleep-dynamic /etc/runit/test/finish
# cat >>/etc/runit/test/run <<__SH__
#!/bin/sh
while [ ! -e /tmp/test ]
do
  sleep 10
done
__SH__
# chmod +x >>/etc/runit/test/run
# ln -snf /etc/runit/test /etc/runit/univention ; sv up test
warning: test: unable to open supervise/ok: file does not exist

The issue is caused by "runsvdir" not having picked up the new service yet when the "up" is issued. The corresponding "runsv" process has not been started yet:
# man 8 runsvdir
..
> At least every five seconds runsvdir checks ....

So adding a "sleep 5" 8plus error handling) in 02univention-directory-notifier.inst:39 should fix it.

FYI: ucs-test/tests/00_base/check_log_files_definitions.py:147 currently ignores that line as the bug is triggered everywhere.
Comment 3 Philipp Hahn univentionstaff 2017-04-21 13:22:28 CEST
Created attachment 8796 [details]
Fix runsv supervision
Comment 4 Philipp Hahn univentionstaff 2017-04-21 13:22:56 CEST
*** Bug 11889 has been marked as a duplicate of this bug. ***
Comment 5 Ingo Steuwer univentionstaff 2020-07-03 20:55:07 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.