Red Hat Bugzilla – Bug 198761
Monotone-Server doesn't start due to permission problems
Last modified: 2007-11-30 17:11:37 EST
Description of problem:
The monotone server doesn't start, because it can't create the pid
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. service start monotone
2. service status monotone
3. less /var/log/monotone
Monotone server is not running.
The log tells us that the PID-file couldn't be created.
Monotone server running.
Please attach the log with the exact error messages.
Were you root when you ran service start?
Do you have SELinux enabled?
No, I don't have SELinux enabled.
The problem is that the mtn binary itself is told to create the pid file via
the --pid-file option, but is run as user 'monotone'; and /var/run has 755
So one solution could be to have a subdir of /var/run in the package that
is writeable by user 'monotone'.
And yes, I was root when I ran service start.
The log error message is in German (so on a side note, /etc/init.d/monotone
should probably set LC_ALL=C). The relevant part is this:
monotone-server: Fehler: Konnte PID-Datei '/var/run/monotone-server.pid' nicht
which translates to
monotone-server: Error: Could not create
This should be fixed in 0.28-2. Please verify that things are working well for
you once that build makes its way through the system so you can get it.
Now, the service can't be restarted, because the
pid-file "/var/run/monotone/monotone-server.pid" is not removed for "service
stop". Monotone complains about the pid-file being existent upon
next "service start" and refuses to start.
(It seems to me that killproc tries to remove /var/run/monotone-server.pid
instead of the correct pid-file.)
This issue seems to be fixed in monotone-server-0.30-1.fc5.