Closed matthewjhands closed 4 months ago
Fixed in Cronicle v0.9.56. Thanks!
Note that you'll have to upgrade Cronicle on ALL your servers for this to take effect. However, I see you're using a single primary and no workers, so that's easy then. Just a single upgrade for you. Thanks again!
https://github.com/jhuckaby/Cronicle/blob/master/docs/CommandLine.md#upgrading-cronicle
Thank you! That's great.
Summary
When you create a detached job, the
/api/app/get_live_job_log
fn returns ano such file or directory
error because it is looking forlogs/jobs/$JOBID.log
and notlogs/jobs/$JOBID-detached.log
.Steps to reproduce the problem
http://$PRIMARYURL/api/app/get_live_job_log?id=$JOBID
, observe that the response is{"code":"job","description":"Failed to fetch job log: Error: ENOENT: no such file or directory, stat 'logs/jobs/$JOBID.log'"}
ls -la /opt/cronicle/logs/jobs/
. Observe that a job log exists namedlogs/jobs/$JOBID-detached.log
and notlogs/jobs/$JOBID.log
.Your Setup
Operating system and version?
Ubuntu 22.04
Node.js version?
v20.15.0
Cronicle software version?
0.9.52
Are you using a multi-server setup, or just a single server?
Single Primary, no workers.
Are you using the filesystem as back-end storage, or S3/Couchbase?
Local FS
Can you reproduce the crash consistently?
Yes
Log Excerpts