You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a detached job, the /api/app/get_live_job_log fn returns a no such file or directory error because it is looking for logs/jobs/$JOBID.log and not logs/jobs/$JOBID-detached.log.
Steps to reproduce the problem
Create any detached job.
Start the new job.
Open the Job Details page for it, observe the "Live Job Event Log" is working, and returning logs.
Click "View Full Log" on the right hand side of the screen.
You should have been navigated to 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'"}
Meanwhile, in a terminal run ls -la /opt/cronicle/logs/jobs/. Observe that a job log exists named logs/jobs/$JOBID-detached.log and not logs/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
The text was updated successfully, but these errors were encountered:
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!
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
The text was updated successfully, but these errors were encountered: