Internal Server Error:on job/status

What is the problem you are having with rclone?

With a rclone rcd

I ask a job/status to server for a jobid non existent:
return code 22
Message with a 500 Internal Error.

What is your rclone version (output from rclone version)

rclone v1.55.0 - os/type: linux - os/arch: amd64 - go/version: go1.16.2 - go/linking: static - go/tags: cmount

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux Redhat 7.9

Which cloud storage system are you using? (eg Google Drive)

any, internal command

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Starting rclone in server mode

rclone rcd --rc-no-auth --log-level INFO --stats 10s --progress

Sending a rc command on job/list

rclone rc  job/status jobid=100                                                                                   
2021/05/21 14:53:20 Failed to rc: Failed to read rc response: 500 Internal Server Error: {
             "error": "job not found",
             "input": {
                     "jobid": "100"
              "path": "job/status",
              "status": 500

With a curl command

curl -f -X POST http://localhost:5572/job/status --data jobid=100
curl: (22) The requested URL returned error: 500 Internal Server Error

The rclone config contents with secrets removed.


A log from the command with the -vv flag

The Server log in debug mode

2021/05/21 15:37:47 NOTICE: Serving remote control on http://localhost:5572/
2021/05/21 15:37:54 DEBUG : rc: "job/status": with parameters map[jobid:100]
2021/05/21 15:37:54 ERROR : rc: "job/status": error: job not found

Rclone reports any error as a 500 error. What do you think it should be doing here instead? Returning 404? 400? Something else?

Hi Nick,

Thank you for your answer.
It is not a server error. The server work perfectly without an internal error. it's an error from the client.
I suggest a normal return code with

             "error": "job not found",
             "input": {
                     "jobid": "100"
              "path": "job/status",
              "status": 5

On the status, i indicate a 5 but i don't know the status list. It should be another value.

Best regards

Would you like to open a new issue on Github about this? Maybe send a PR to fix?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.