Roundup Tracker - Issues

Issue 2551238

classification
roundup-server should exit with error if -d is used without -l
Type: behavior Severity: normal
Components: Web interface Versions:
process
Status: fixed fixed
:
: : rouilj
Priority: : Effort-Low, StarterTicket

Created on 2022-11-09 16:04 by rouilj, last changed 2025-01-20 20:53 by rouilj.

Messages
msg7658 Author: [hidden] (rouilj) Date: 2022-11-09 16:04
The documentation says that -l must be used if -d is specified,
but roundup-server exits with no output if this is not followed.

My guess is roundup-server forks then fails to open a log file which
causes it to crash and since it has already disassociated from the controlling
terminal the error message is lost.

What should happen is that an error reporting the missing -l logfile option when - is used
should be reported to stdout/stderr along with the full help text.
msg8306 Author: [hidden] (rouilj) Date: 2025-01-19 23:56
I worked on this. In addition to -l, -L is also valid with -d.

> My guess is roundup-server forks then fails to open a log file

When roundup-server is run with a pid file it daemonizes. This changes
the directory to '/'. Any log file names that are not absolute (e.g.
logging.ini files used by the logging subsystem) will fail to open in /
and cause the server to exit.

I have failed so far to be able to make all these files absolute with os.path.abspath
or equivalent.
msg8316 Author: [hidden] (rouilj) Date: 2025-01-20 20:53
Error is now generated.

Documented issue with relative log files in admin guide.

changeset:   8297:03513f5066f3
History
Date User Action Args
2025-01-20 20:53:06rouiljsetstatus: new -> fixed
resolution: fixed
messages: + msg8316
2025-01-19 23:56:18rouiljsetmessages: + msg8306
2022-11-09 16:04:22rouiljcreate