Panic when invoking rc core/stats-reset with non-existent group

What is the problem you are having with rclone?

Panic when invoking rc core/stats-reset with group parameter that specifies non-existent group

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

rclone v1.58.1

  • os/version: debian 10.2 (64 bit)
  • os/kernel: 4.19.0-6-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: static
  • go/tags: none

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

Not relevant

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

rclone rc core/stats-reset group=errors --url https://xxx

The rclone config contents with secrets removed.

Not relevant

A log from the command with the -vv flag

2022/07/18 05:24:10 Failed to rc: Failed to read rc response: 500 Internal Server Error: {
        "error": "panic received: runtime error: invalid memory address or nil pointer dereference \ngoroutine 96852455 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\*Job).run.func1()\n\ +0x45\npanic({0x1809b00, 0x2cd6030})\n\truntime/panic.go:1038 +0x215\*StatsInfo).ResetErrors(0x0)\n\ +0x2e\{0xc01cba6160, 0x0}, 0x4116d4)\n\ +0x85\*Job).run(0xc01cba6160, {0x1f203b0, 0xc000cca700}, 0xc01b818370, 0x5)\n\ +0x70\*Jobs).NewJob(0xc00038f9b0, {0x1f203b0, 0xc003908d00}, 0x1bf2ab0, 0xc015d3fa48)\n\ +0x3f4\\n\\*Server).handlePost(0xc0000aab00, {0x1f08698, 0xc01ab70058}, 0xc024940000, {0xc014ff0529, 0x10})\n\ +0x712\*Server).handler(0xc0000aab00, {0x1f08698, 0xc01ab70058}, 0xc024940000)\n\ +0x4f1\nnet/http.HandlerFunc.ServeHTTP(0x2d092c0, {0x1f08698, 0xc01ab70058}, 0xc000339c08)\n\tnet/http/server.go:2047 +0x2f\nnet/http.(*ServeMux).ServeHTTP(0x0, {0x1f08698, 0xc01ab70058}, 0xc024940000)\n\tnet/http/server.go:2425 +0x149\nnet/http.serverHandler.ServeHTTP({0x0}, {0x1f08698, 0xc01ab70058}, 0xc024940000)\n\tnet/http/server.go:2879 +0x43b\nnet/http.initALPNRequest.ServeHTTP({{0x1f20458, 0xc00e1b5e00}, 0xc00bf48a80, {0xc000aea1c0}}, {0x1f08698, 0xc01ab70058}, 0xc024940000)\n\tnet/http/server.go:3480 +0x245\nnet/http.(*http2serverConn).runHandler(0xc009ec2e78, 0xc009ec2fd0, 0x0, 0x0)\n\tnet/http/h2_bundle.go:5849 +0x78\ncreated by net/http.(*http2serverConn).processHeaders\n\tnet/http/h2_bundle.go:5579 +0x510\n",
        "input": {
                "group": "errors"
        "path": "core/stats-reset",
        "status": 500

Probably won't matter, but test on the 1.59 and if still persists, you can file an issue on github.

Issues · rclone/rclone (

1 Like

1.59 made no difference. Submitted Panic when invoking rc core/stats-reset with non-existent group · Issue #6327 · rclone/rclone · GitHub


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