git-daemon-run fails with "warning: git-daemon: unable to open supervise/ok: file does not exist"

Bug #153048 reported by jfm3
This bug report is a duplicate of:  Bug #74135: runsvdir does not use upstart. Edit Remove
16
Affects Status Importance Assigned to Milestone
git-core (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Hardy by Gabrielix
Nominated for Intrepid by Gabrielix
runit (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Hardy by Gabrielix
Nominated for Intrepid by Gabrielix

Bug Description

Binary package hint: git-daemon-run

(Mon Oct 15 15:48:16) (jfm3@fs-rt1:~)
bash> sudo /etc/init.d/git-daemon start
warning: git-daemon: unable to open supervise/ok: file does not exist
(Mon Oct 15 15:48:58) (jfm3@fs-rt1:~)
bash> uname -a
Linux fs-rt1 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux
(Mon Oct 15 15:49:14) (jfm3@fs-rt1:~)
bash> dpkg -l git-daemon-run
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii git-daemon-run 1.5.2.5-2~feisty1 fast, scalable, distributed revision control system (git-daemon service)

Revision history for this message
Mark Carter (mcturra2000) wrote :

On Gutsy:

# apt-get install git-daemon-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-daemon-run is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up runit (1.6.0-1) ...
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
Adding SV inittab entry...
cp: cannot stat `/etc/inittab': No such file or directory
dpkg: error processing runit (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of git-daemon-run:
 git-daemon-run depends on runit; however:
  Package runit is not configured yet.
dpkg: error processing git-daemon-run (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 runit
 git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I did
  #touch /etc/inittab
  # dpkg-reconfigure runit
  # dpkg-reconfigure git-daemon-run
  warning: git-daemon: unable to open supervise/ok: file does not exist

#uname -a
Linux picasso 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

# dpkg -l git-daemon-run
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii git-daemon-run 1:1.5.2.5-2bui fast, scalable, distributed revision control

Revision history for this message
Hendy Irawan (ceefour) wrote :

Confirmed. I can't use git-daemon-run on my Ubuntu JeOS 7.10.

Is there a fix for this, please? Thank you.

Revision history for this message
Hendy Irawan (ceefour) wrote :

Still affects Gutsy.

Installing git-daemon-run requires 'touch fix', after that it still doesn't work. :-(

Changed in git-core:
status: New → Confirmed
Revision history for this message
Hendy Irawan (ceefour) wrote :

Workaround is available here:

Doing this solves the problem:

sudo runsvdir /var/service &

After that, you can run:

sudo sv start git-daemon

It seems that this (runsvdir) needs to be started upon server startup.

Revision history for this message
Mark Carter (mcturra2000) wrote :

To get the server to run on startup:

sudo gedit /etc/event.d/runsvdir

and include the lines:
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
respawn
exec /usr/sbin/runsvdir-start

IMO, this should be handled by the package, too.

Hendy Irawan (ceefour)
Changed in runit:
status: New → Confirmed
Revision history for this message
Hendy Irawan (ceefour) wrote :

No fix yet? We're almost Hardy!!

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

This issue can be solved by system reboot.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.