Open mtroback opened 2 years ago
We had the same issue and couldn't find any documentation on how to resolve it.
Deleting the files helped get that message away but we also had issues with a "Locked file" error message as well. We also tried backup and restore, but that also failed with an "unexpected end of JSON input" error. We ended up having to reset the database and start from scratch.
Steps to reproduce:
Expected behavior: The data is successfully written (the database will handle the missing .tsm file and do what is necessary to be able to write new data).
Actual behavior: Receive error message (python): HTTP response body: {"code":"internal error","message":"unexpected error writing points to database: [shard 222] unexpected end of JSON input"} (log): Aug 16 13:08:05 COMPUTER influxd-systemd-start.sh[224631]: ts=2022-08-16T11:08:05.063037Z lvl=warn msg="Write failed creating shard" log_id=0cLaEUw0000 service=storage-engine service=write shard=222 error="opening shard previously failed with: [shard 222] unexpected end of JSON input"
Environment info:
Config: Default
Other info: Solved by deleting the shard folder in /engine/data/xxxx/autogen (in my case 222).