Re: I can start my tracker from command line, but it does not start as a daemon...
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ed:
In message <PH7PR12MB5656D94374E0747B42F932DE843E9@PH7PR12MB5656.namprd12.prod.
outlook.com>,
Ed Trumbull writes:
>server is a VM running linux mint 21 (linux 5.15.0-52-generic)
>Roundup version is 2.2.0
>Python 3.10.6
>All patches to the system are in place.
>
>If I run this command from the command line:
>/usr/local/bin/roundup-server -n 0.0.0.0 -p 8917 -C /local/data/roundup/as2it/config.ini
>
>the server starts happily and I can access it.
>
>If I try to make it a daemon by running this:
>sudo /usr/local/bin/roundup-server -n 0.0.0.0 -p 8917 -d /run/roundup/as2it.pid -C /local/data/roundup/as2it/config.ini
>
>I don't see any errors, either in the syslog or on the command line, the
>pid file is updated with a new pid, but the daemon doesn't start.
>
>Where should I look to find out why?
The man page for roundup-server says:
-l file
Sets a filename to log to (instead of stdout). This is required
if the -d option is used.
Please add -l /path/to/file/writable/by/user/running/roundup-server to
the command line. My guess is the server is exiting because it fails
to open a log file. But by that time, roundup-server has disconected
from the terminal so the error gets lost.
I've opened a ticket to have roundup-server complain of -d is used without -l.
https://issues.roundup-tracker.org/issue2551238
Also since you are on mint/ubuntu/debian you might want to run
roundup-server under systemd. See:
https://sourceforge.net/p/roundup/code/ci/default/tree/scripts/systemd.gunicorn
for a sample systemd unit file. Change out the ExecStart with your
command line without the -d or -l options. (Systemd will captue the
output to stdou and make it available via journalctl.) Also remove the
ExecReload setting (I think ExecStop/ExecStart is used if there is no
ExecReload but I may be wrong on that).
How is roundup working for you other than this?
Have a great rest of the week.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.