Can no longer start influxdb - panic: runtime error: slice bounds out of range

I have had influxdb 0.10.0 running very well on Ubuntu 14.04 for over a year. I rebooted and now influx will not start.
I have searched here and googled but not managed to sort it. I found suggestions that it may be a corrupted file and that deleting the wal directory may help. I tried that to no avail.
I thought of upgrading to newer version to see if it gave better diagnostics but I believe I would first have to export the data, which can’t be done unless it is running.
I hope someone here can help as it seems the only other alternative may be to clear the whole database which I am hoping not to have to do. The log is as follows

Aug 17 15:51:29 ade-ubt influxd[28900]: 2018/08/17 15:51:29 InfluxDB starting, version 0.10.0, branch unknown, commit unknown, built unknown
Aug 17 15:51:29 ade-ubt influxd[28900]: 2018/08/17 15:51:29 Go version go1.6rc1, GOMAXPROCS set to 4
Aug 17 15:51:29 ade-ubt influxd[28900]: 2018/08/17 15:51:29 Using configuration at: /etc/influxdb/influxdb.conf
Aug 17 15:51:29 ade-ubt influxd[28900]: [meta] 2018/08/17 15:51:29 Starting meta service
Aug 17 15:51:29 ade-ubt influxd[28900]: [meta] 2018/08/17 15:51:29 Listening on HTTP: 127.0.0.1:8091
Aug 17 15:51:29 ade-ubt influxd[28900]: [metastore] 2018/08/17 15:51:29 Using data dir: /var/lib/influxdb/meta
Aug 17 15:51:29 ade-ubt influxd[28900]: [metastore] 2018/08/17 15:51:29 Node at localhost:8088 [Follower]
Aug 17 15:51:30 ade-ubt Node-RED[25609]: 17 Aug 15:51:30 - [error] [influxdb out:5d011ee3.3c3d18] Error: No host available
Aug 17 15:51:31 ade-ubt influxd[28900]: [metastore] 2018/08/17 15:51:31 Node at localhost:8088 [Leader]. peers=[localhost:8088]
Aug 17 15:51:32 ade-ubt influxd[28900]: [meta] 2018/08/17 15:51:32 127.0.0.1 - - [17/Aug/2018:15:51:32 +0100] GET /?index=0 HTTP/1.1 200 11198 - Go-http-client/1.1 07f4266e-a22d-11e8-8001-000000000000 4.731264ms
Aug 17 15:51:32 ade-ubt influxd[28900]: [store] 2018/08/17 15:51:32 Using data dir: /var/lib/influxdb/data
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/643
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/643/000000001-000000001.tsm (#0) opened in 62.934µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/644
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/644/000000001-000000001.tsm (#0) opened in 44.935µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/645
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/645/000000001-000000001.tsm (#0) opened in 41.532µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/646
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/646/000000001-000000001.tsm (#0) opened in 81.855µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/647
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/647/000000001-000000001.tsm (#0) opened in 42.32µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/649
Aug 17 15:51:32 ade-ubt influxd[28900]: [filestore]2018/08/17 15:51:32 /var/lib/influxdb/data/_internal/monitor/649/000000001-000000001.tsm (#0) opened in 43.248µs
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL starting with 10485760 segment size
Aug 17 15:51:32 ade-ubt influxd[28900]: [tsm1wal] 2018/08/17 15:51:32 tsm1 WAL writing to /var/lib/influxdb/wal/_internal/monitor/650
Aug 17 15:51:32 ade-ubt influxd[28900]: panic: runtime error: slice bounds out of range
Aug 17 15:51:32 ade-ubt influxd[28900]: goroutine 108 [running]:
Aug 17 15:51:32 ade-ubt influxd[28900]: github.com/influxdb/influxdb/tsdb/engine/tsm1.(*mmapAccessor).init(0xc820485d60, 0x0, 0x0, 0x0, 0x0)
Aug 17 15:51:32 ade-ubt influxd[28900]: #011/build/influxdb-zEZbDw/influxdb-0.10.0+dfsg1/_build/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/reader.go:887 +0x627
Aug 17 15:51:32 ade-ubt influxd[28900]: github.com/influxdb/influxdb/tsdb/engine/tsm1.NewTSMReaderWithOptions(0x0, 0x0, 0xc8201309a0, 0x24ff70e8, 0x0, 0x0)
Aug 17 15:51:32 ade-ubt influxd[28900]: #011/build/influxdb-zEZbDw/influxdb-0.10.0+dfsg1/_build/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/reader.go:154 +0x2dd
Aug 17 15:51:32 ade-ubt influxd[28900]: github.com/influxdb/influxdb/tsdb/engine/tsm1.(*FileStore).Open.func1(0xc820146230, 0xc8202a1680, 0x0, 0xc8201309a0)
Aug 17 15:51:32 ade-ubt influxd[28900]: #011/build/influxdb-zEZbDw/influxdb-0.10.0+dfsg1/_build/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/file_store.go:259 +0x9b
Aug 17 15:51:32 ade-ubt influxd[28900]: created by github.com/influxdb/influxdb/tsdb/engine/tsm1.(*FileStore).Open
Aug 17 15:51:32 ade-ubt influxd[28900]: #011/build/influxdb-zEZbDw/influxdb-0.10.0+dfsg1/_build/src/github.com/influxdb/influxdb/tsdb/engine/tsm1/file_store.go:269 +0x6bb
Aug 17 15:51:32 ade-ubt systemd[1]: influxdb.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

In case anyone is interested, I got over this by removing the WAL directory contents, thereby just losing a small amount of data.

Hi @clanlaw, glad to hear you got things working.

We strongly recommend that anyone running 0.10.0 upgrade to the most recent version of InfluxDB, 1.6.1. You can find installation instructions in our documentation.

Thanks.
I have upgraded to 1.1.5 and do intend to upgrade further.