# Cache ls throwing errors and crashing

**URL:** <https://forum.rclone.org/t/cache-ls-throwing-errors-and-crashing/4572>\
**Category:** Help and Support\
**Created:** [January 12, 2018, 2:15am UTC](https://forum.rclone.org/t/cache-ls-throwing-errors-and-crashing/4572 "2018-01-12T02:15:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsecrist](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/ccd318/32.png) [@djsecrist](https://forum.rclone.org/u/djsecrist)\
**Post date:** [January 12, 2018, 2:15am UTC](https://forum.rclone.org/t/cache-ls-throwing-errors-and-crashing/4572/1 "2018-01-12T02:15:23Z")

</div>

I’m am trying out the new cache feature for the first time. I set up the cache remote directly on top of my Google Drive remote (not on the decrypted remote) and tried to do list the files. The first time I try the command, I get this:  
2018/01/11 18:05:20 ERROR : vn15h4p6371nmpmjdlj3od94: error listing: directory not found  
2018/01/11 18:05:20 Failed to ls: directory not found

Then, if I run the command a second time, I get a panic:  
panic: runtime error: slice bounds out of range

goroutine 15 [running]:  
[github.com/ncw/rclone/cache.(\*Directory](http://github.com/ncw/rclone/cache.(*Directory)).Remote(0xc420132000, 0x4, 0x4)  
/home/travis/gopath/src/github.com/ncw/rclone/cache/directory.go:98 +0x117  
[github.com/ncw/rclone/cache.(\*Persistent](http://github.com/ncw/rclone/cache.(*Persistent)).GetDirEntries.func1(0xc4203d8000, 0xff3818, 0xc4203d8000)  
/home/travis/gopath/src/github.com/ncw/rclone/cache/storage\_persistent.go:204 +0x2d5  
[github.com/ncw/rclone/vendor/github.com/coreos/bbolt.(\*DB](http://github.com/ncw/rclone/vendor/github.com/coreos/bbolt.(*DB)).View(0xc4203143c0, 0xc4204a4ae0, 0x0, 0x0)  
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/coreos/bbolt/db.go:680 +0x9a  
[github.com/ncw/rclone/cache.(\*Persistent](http://github.com/ncw/rclone/cache.(*Persistent)).GetDirEntries(0xc42046c870, 0xc420132000, 0x0, 0xc420132000, 0xc4204a4b68, 0x411b2c, 0xc4204a4b68)  
/home/travis/gopath/src/github.com/ncw/rclone/cache/storage\_persistent.go:182 +0x7d  
[github.com/ncw/rclone/cache.(\*Fs](http://github.com/ncw/rclone/cache.(*Fs)).List(0xc42025d040, 0x0, 0x0, 0x0, 0xc420020600, 0x0, 0x0, 0x0)  
/home/travis/gopath/src/github.com/ncw/rclone/cache/cache.go:461 +0xb3  
[github.com/ncw/rclone/fs.ListDirSorted](http://github.com/ncw/rclone/fs.ListDirSorted)(0x1595a20, 0xc42025d040, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)  
/home/travis/gopath/src/github.com/ncw/rclone/fs/operations.go:630 +0x63  
[github.com/ncw/rclone/fs.walk.func2](http://github.com/ncw/rclone/fs.walk.func2)(0xc4203e2030, 0xc4201cb440, 0xff3400, 0x1595a20, 0xc42025d040, 0xc420444f00, 0xc4203e2070, 0xc420073650, 0xc4203e2050, 0xc4201a82d0, …)  
/home/travis/gopath/src/github.com/ncw/rclone/fs/walk.go:120 +0x1e3  
created by [github.com/ncw/rclone/fs.walk](http://github.com/ncw/rclone/fs.walk)  
/home/travis/gopath/src/github.com/ncw/rclone/fs/walk.go:112 +0x265

I am using the latest beta: rclone-v1.39-023

I also tried it with v1.39 release.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 13, 2018, 1:28pm UTC](https://forum.rclone.org/t/cache-ls-throwing-errors-and-crashing/4572/2 "2018-01-13T13:28:35Z")

</div>

This is likely the same issue as [https://github.com/ncw/rclone/issues/1961](https://github.com/ncw/rclone/issues/1961) (at least the traceback looks the same). Can you add your info to that issue please?

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:43am UTC](https://forum.rclone.org/t/cache-ls-throwing-errors-and-crashing/4572/3 "2020-03-04T00:43:05Z")

</div>

Closed on March 4, 2020, 12:43am UTC


