Unknown field found while parsing JSONEachRow

I have setup Senty on-premise with version 10.

Whenever I’m receiving any error I’m getting below error. These are logs from docker-compose.

web_1                     | 172.19.0.1 - - [06/Feb/2020:03:22:47 +0000] "POST /api/2/store/?sentry_key=37ace8b04f1c4051836fb78cc38f3352&sentry_version=7 HTTP/1.1" 200 682 "https://khi7r.csb.app/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
snuba-consumer_1          | 2020-02-06 03:22:47,536 Flushing 2 items (from {Partition(topic=Topic(name='events'), index=0): Offsets(lo=412, hi=413)}): forced:False size:False time:True
snuba-consumer_1          | Traceback (most recent call last):
snuba-consumer_1          |   File "/usr/local/bin/snuba", line 11, in <module>
snuba-consumer_1          |     load_entry_point('snuba', 'console_scripts', 'snuba')()
snuba-consumer_1          |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in __call__
snuba-consumer_1          |     return self.main(*args, **kwargs)
snuba-consumer_1          |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main
snuba-consumer_1          |     rv = self.invoke(ctx)
snuba-consumer_1          |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
snuba-consumer_1          |     return _process_result(sub_ctx.command.invoke(sub_ctx))
snuba-consumer_1          |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke
snuba-consumer_1          |     return ctx.invoke(self.callback, **ctx.params)
snuba-consumer_1          |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
snuba-consumer_1          |     return callback(*args, **kwargs)
snuba-consumer_1          |   File "/usr/src/snuba/snuba/cli/consumer.py", line 160, in consumer
snuba-consumer_1          |     consumer.run()
snuba-consumer_1          |   File "/usr/src/snuba/snuba/utils/streams/batching.py", line 137, in run
snuba-consumer_1          |     self._run_once()
snuba-consumer_1          |   File "/usr/src/snuba/snuba/utils/streams/batching.py", line 142, in _run_once
snuba-consumer_1          |     self._flush()
snuba-consumer_1          |   File "/usr/src/snuba/snuba/utils/streams/batching.py", line 233, in _flush
snuba-consumer_1          |     self.worker.flush_batch(self.__batch_results)
snuba-consumer_1          |   File "/usr/src/snuba/snuba/consumer.py", line 98, in flush_batch
snuba-consumer_1          |     self.__writer.write(inserts)
snuba-consumer_1          |   File "/usr/src/snuba/snuba/clickhouse/http.py", line 95, in write
snuba-consumer_1          |     raise ClickHouseError(int(code), type, message)
snuba-consumer_1          | snuba.clickhouse.http.ClickHouseError: [117] DB::Exception: Unknown field found while parsing JSONEachRow format: _tags_flattened: (at row 1)
snuba-consumer_1          | + set -- snuba consumer --auto-offset-reset=latest --max-batch-time-ms 750
snuba-consumer_1          | + exec gosu snuba snuba consumer --auto-offset-reset=latest --max-batch-time-ms 750
web_1                     | 172.19.0.1 - - [06/Feb/2020:03:22:52 +0000] "POST /api/2/store/?sentry_key=37ace8b04f1c4051836fb78cc38f3352&sentry_version=7 HTTP/1.1" 200 682 "https://khi7r.csb.app/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
snuba-consumer_1          | 2020-02-06 03:22:57,089 New partitions assigned: {Partition(topic=Topic(name='events'), index=0): 415}

Can anyone please help me to find the root of this cause?

I really need to fix this. It would be great help if someone can let me know what I’m doing wrong.

If needed I can also provide the sentry_install_log for this installation.

This has been resolved in this git issue.

1 Like