rclone runtime error

Hello,
I encountered a runtime error while using the script and I need help to figure out the problem.

What is the problem you are having with rclone?

I tried to get the list of current folders via lsd command, and I ran into a runtime error while doing so. The message I got was “panic: runtime error: index out of range”
Here’s the log from the terminal:
goroutine 1 [running]:
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).addFSNode(0xc000375400, 0xc043c81390, 0x8, 0xc043c81398, 0x8, 0xc043c813a0, 0xb, 0x0, 0xc0439636b0, 0x2b, …)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:724 +0x1545
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem(0xc000375400, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:834 +0x35c
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).Login(0xc000375400, 0xc000200de7, 0x19, 0xc0003b0790, 0xf, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:575 +0xc5
github.com/ncw/rclone/backend/mega.NewFs(0x7fffa8e7a7c7, 0x2, 0x7fffa8e7a7c7, 0x0, 0x14161c0, 0xc00034d080, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/backend/mega/mega.go:207 +0x599
github.com/ncw/rclone/fs.NewFs(0x7fffa8e7a7c7, 0x3, 0xc00012f200, 0x7fffa8e7a7c7, 0x2, 0x7fffa8e7a7c7)
/home/travis/gopath/src/github.com/ncw/rclone/fs/fs.go:1058 +0xb5
github.com/ncw/rclone/cmd.NewFsFile(0x7fffa8e7a7c7, 0x3, 0x129, 0xc0003c4a80, 0xc000266c00, 0xc00032dbf8)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:86 +0x92
github.com/ncw/rclone/cmd.newFsFileAddFilter(0x7fffa8e7a7c7, 0x3, 0xc00032dca8, 0xe2aa93, 0xc0001a5300, 0xc00032dcd0)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:104 +0x4d
github.com/ncw/rclone/cmd.NewFsSrc(0xc0002db6a0, 0x1, 0x1, 0xc0002db6a0, 0x1)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:126 +0x41
github.com/ncw/rclone/cmd/lsd.glob..func1(0x1db6780, 0xc0002db6a0, 0x1, 0x1)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/lsd/lsd.go:53 +0x9c
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).execute(0x1db6780, 0xc0002db650, 0x1, 0x1, 0x1db6780, 0xc0002db650)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:766 +0x2cc
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1db0d40, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).Execute(0x1db0d40, 0xc000090058, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/ncw/rclone/cmd.Main()
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:480 +0x46
main.main()
/home/travis/gopath/src/github.com/ncw/rclone/rclone.go:13 +0x20

What is your rclone version (output from rclone version )

rclone v1.46

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

Windows 10 64-bit

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

Mega.nz

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

rclone lsd aK:

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp )

2019/03/15 21:10:52 DEBUG : rclone: Version “v1.46” starting with parameters [“rclone” “-vv” “lsd” “ak:”]
2019/03/15 21:10:52 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).addFSNode(0xc000377400, 0xc043c0b3a0, 0x8, 0xc043c0b3a8, 0x8, 0xc043c0b3b0, 0xb, 0x0, 0xc0438ed6b0, 0x2b, …)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:724 +0x1545
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).getFileSystem(0xc000377400, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:834 +0x35c
github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega.(*Mega).Login(0xc000377400, 0xc00020ae47, 0x19, 0xc0003b2860, 0xf, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/t3rm1n4l/go-mega/mega.go:575 +0xc5
github.com/ncw/rclone/backend/mega.NewFs(0x7ffdf4eaf7c7, 0x2, 0x7ffdf4eaf7c7, 0x0, 0x14161c0, 0xc00034f0e0, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/backend/mega/mega.go:207 +0x599
github.com/ncw/rclone/fs.NewFs(0x7ffdf4eaf7c7, 0x3, 0xc0000711a0, 0x7ffdf4eaf7c7, 0x2, 0x7ffdf4eaf7c7)
/home/travis/gopath/src/github.com/ncw/rclone/fs/fs.go:1058 +0xb5
github.com/ncw/rclone/cmd.NewFsFile(0x7ffdf4eaf7c7, 0x3, 0x129, 0xc0003c6a80, 0xc000270c00, 0xc000335bf8)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:86 +0x92
github.com/ncw/rclone/cmd.newFsFileAddFilter(0x7ffdf4eaf7c7, 0x3, 0xc000335ca8, 0xe2aa93, 0xc0001b1300, 0xc000335cd0)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:104 +0x4d
github.com/ncw/rclone/cmd.NewFsSrc(0xc00034c6c0, 0x1, 0x2, 0xc00034c6c0, 0x1)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:126 +0x41
github.com/ncw/rclone/cmd/lsd.glob..func1(0x1db6780, 0xc00034c6c0, 0x1, 0x2)
/home/travis/gopath/src/github.com/ncw/rclone/cmd/lsd/lsd.go:53 +0x9c
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).execute(0x1db6780, 0xc00034c620, 0x2, 0x2, 0x1db6780, 0xc00034c620)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:766 +0x2cc
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1db0d40, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/ncw/rclone/vendor/github.com/spf13/cobra.(*Command).Execute(0x1db0d40, 0xc00008e058, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/ncw/rclone/cmd.Main()
/home/travis/gopath/src/github.com/ncw/rclone/cmd/cmd.go:480 +0x46
main.main()
/home/travis/gopath/src/github.com/ncw/rclone/rclone.go:13 +0x20

What OS are you as the path there looks to be on LInux but you listed Windows OS? Which binary did you download?

My bad I’m on Ubuntu, i will edit the post

Can you share the full rclone version output as well?

rclone v1.46

  • os/arch: linux/amd64
  • go version: go1.11.5

It won’t let me edit the post.
“Sorry, new users can only put 2 links in a post.”

No issues. Can you share your rclone.conf without the passwords and run the same command with -vv on it share that output?

[ak]
type = mega
user = myemail@gmail.com
pass = ##mypass##
debug = true

I already posted the output of the command with -vv above.
It won’t let met post it in the comments
“Sorry, new users can only put 2 links in a post.”

I see you made an issue about this - I’ll reply there

Any updates on the bug?

I’d use the issue to communicate and work on it so I’ll close this topic out.