Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: slice bounds out of range #5455

Closed
eminden opened this issue Jan 26, 2016 · 1 comment
Closed

panic: runtime error: slice bounds out of range #5455

eminden opened this issue Jan 26, 2016 · 1 comment

Comments

@eminden
Copy link

eminden commented Jan 26, 2016

Having following panic at startup on latest nightly(version 0.10.0.n1453660386, branch master, commit 58e0eed), attaching full stack trace.
influxdb.log.txt

This happened after getting 500 errors while writing data from last november till today using the following retention policy and then restarting,

CREATE RETENTION POLICY "raw" ON "delivery" DURATION 60d REPLICATION 1 DEFAULT;

[cacheloader] 2016/01/26 16:17:07 reading file /var/lib/influxdb/wal/delivery/raw/50/_00023.wal, size 901330
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/influxdb/influxdb/tsdb/engine/tsm1.(_WriteWALEntry).UnmarshalBinary(0xc267408090, 0xc26cf20000, 0x50d9eb, 0x50d9eb, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/wal.go:497 +0xb5d
github.com/influxdb/influxdb/tsdb/engine/tsm1.(_WALSegmentReader).Next(0xc27f0b2100, 0xc264d4d000)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/wal.go:677 +0x743
github.com/influxdb/influxdb/tsdb/engine/tsm1.func·003(0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/cache.go:354 +0x3a1
github.com/influxdb/influxdb/tsdb/engine/tsm1.(_CacheLoader).Load(0xc25c50b520, 0xc24e1b40a0, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/cache.go:376 +0x10f
github.com/influxdb/influxdb/tsdb/engine/tsm1.(_Engine).reloadCache(0xc2555cbf40, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/engine.go:602 +0xe2
github.com/influxdb/influxdb/tsdb/engine/tsm1.(_Engine).Open(0xc2555cbf40, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/engine.go:130 +0x1da
github.com/influxdb/influxdb/tsdb.func·027(0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/shard.go:123 +0x3a9
github.com/influxdb/influxdb/tsdb.(_Shard).Open(0xc2797098c0, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/shard.go:133 +0x5e
github.com/influxdb/influxdb/tsdb.(_Store).loadShards(0xc2080e6420, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/store.go:349 +0xc49
github.com/influxdb/influxdb/tsdb.(_Store).Open(0xc2080e6420, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/tsdb/store.go:417 +0x334
github.com/influxdb/influxdb/cmd/influxd/run.func·003(0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/cmd/influxd/run/server.go:426 +0xda9
github.com/influxdb/influxdb/cmd/influxd/run.(_Server).Open(0xc2080e0180, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/cmd/influxd/run/server.go:464 +0x5e
github.com/influxdb/influxdb/cmd/influxd/run.(_Command).Run(0xc208074510, 0xc20800a010, 0x4, 0x4, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdb/influxdb/cmd/influxd/run/command.go:119 +0xdd2
main.(*Main).Run(0xc20803b700, 0xc20800a010, 0x4, 0x4, 0x0, 0x0)
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdata/influxdb/cmd/influxd/main.go:86 +0x422
main.main()
/tmp/tmp.cRBI1lQ7kg/src/github.com/influxdata/influxdb/cmd/influxd/main.go:46 +0xdc

@jwilder
Copy link
Contributor

jwilder commented Jan 26, 2016

@eminden Would be able to send me your /var/lib/influxdb/wal/delivery/raw/50/_00023.wal file by chance? [email protected]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants