--use-json-log Bad format, missing comma between lines

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

The output of the --use-json-log are not valid.
Each line have to separated by a missing coma;

Run the command 'rclone version' and share the full output of the command.

rclone v1.62.2

  • os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
  • os/kernel: 10.0.19045.2965 Build 19045.2965.2965 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

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

local to local

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

rclone copy src_folder: dest_folder: -P --progress-terminal-title --log-file "C:\Logs\20230514.rclone.log.json" --log-level INFO --use-json-log

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

{"level":"error","msg":"file not in Local file system at //?/UNC/$/src/folder","object":"/dest/folder/WINCAM.WDD","objectType":"*local.Object","source":"operations/check.go:106","time":"2023-05-14T13:11:52.715012+02:00"}
{"level":"error","msg":"file not in Local file system at //?/UNC/$/src/folder","object":"/dest/folder/MO117118.TXT","objectType":"*local.Object","source":"operations/check.go:106","time":"2023-05-14T13:11:52.718991+02:00"}
{"level":"error","msg":"file not in Local file system at //?/UNC/$/src/folder","object":"/dest/folder/VERSION.TXT","objectType":"*local.Object","source":"operations/check.go:106","time":"2023-05-14T13:11:52.719036+02:00"}
{"level":"error","msg":"file not in Local file system at //?/UNC/$/src/folder","object":"/dest/folder/WINCAM.WDD","objectType":"*local.Object","source":"operations/check.go:106","time":"2023-05-14T13:11:52.719036+02:00"}
{"level":"error","msg":"file not in Local file system at //?/UNC/$/src/folder","object":"/dest/folder/MODIF.TXT","objectType":"*local.Object","source":"operations/check.go:106","time":"2023-05-14T13:11:52.720106+02:00"}

As you can see it is not a valid JSON format !

It is designed to be read one JSON object at a time, not as a single JSON object.

So it effectively streams JSON objects to you.

Ok !
many thanks for your answer and the team work

1 Like

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