queue-daemon crashes with set_debug_mode command not found #207
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The queue daemon fails to process tasks and crashes immediately when starting, leaving a stale PID file.
Error Log
Root Cause
The
cmd_continuefunction inkugetsu-session.shcallsset_debug_mode(line 395), butset_debug_modeis only defined in the mainkugetsuscript (line 1038).When the queue daemon runs
kugetsu-queue-daemon.sh, it sourceskugetsu-session.shdirectly without sourcing the mainkugetsuscript first. This meansset_debug_modeis undefined whencmd_continuetries to use it:This error causes the daemon to crash immediately when trying to process its first task.
Discovery
set_debug_mode: command not foundkugetsu-session.sh:395which callsset_debug_modeset_debug_modeis defined inkugetsumain script but not inkugetsu-session.shkugetsu-session.shdirectly at line 110, without the mainkugetsucontextFix
Add
set_debug_modefunction tokugetsu-session.shbeforecmd_continue.