jhuckaby / Cronicle

A simple, distributed task scheduler and runner with a web based UI.
http://cronicle.net
Other
3.89k stars 389 forks source link

Error: Command failed: /bin/ps -eo bad -o argument #802

Open Anhnt2024 opened 2 months ago

Anhnt2024 commented 2 months ago

Summary

Sometimes when I run a job, the cronicle will be pending and show this error on log. This will cause the job to get stuck until it times out. image

Steps to reproduce the problem

Your Setup

Operating system and version?

NA

Node.js version?

Node 16.15.1

Cronicle software version?

0.9.59

Are you using a multi-server setup, or just a single server?

single server

Are you using the filesystem as back-end storage, or S3/Couchbase?

filesystem

Can you reproduce the crash consistently?

Just run the job multiple times and the error will happen

Log Excerpts

NA

jhuckaby commented 2 months ago

I can't help you with nothing but a screenshot of a log excerpt, and no operating system.

What OS are you running?

Also, what happens if you run that command from the screenshot yourself in your terminal?

/bin/ps -eo "ppid pid %cpu rss"

This looks like the monitoring command that Cronicle uses internally to keep track of CPU and memory usage. Maybe your mystery OS doesn't support it?

You can change it by setting ps_monitor_cmd in your config.json file.