ClickHouse / ClickHouse/ClickHouse

Clickhouse-server cannot start due to json exception

Open
#28,578 4 comments 0 reactions 0 assignees View on GitHub
comp-simple-engines external operations usability
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

I upgrade from 21.3 (LTS) to the latest version

```
$ sudo apt-get update
$ sudo apt-get install clickhouse-client clickhouse-server
$ sudo service clickhouse-server restart
```

I got this error:
![Screenshot from 2021-09-03 21-11-06](https://user-images.githubusercontent.com/88371702/132019683-019051f7-19ab-4d5a-ab62-6c13d88d61eb.png)

--- error log ---

2021.09.03 14:13:22.880199 [ 24033 ] {} Application: JSONException: JSON: begin >= end.
2021.09.03 14:14:09.103884 [ 24408 ] {} Application: Caught exception while loading metadata: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = JSONException: JSON: begin >= end., Stacktrace (when copying this message, always include the lines below):

0. JSON::checkInit() const @ 0x13afb7ae in /usr/bin/clickhouse
1. DB::FileChecker::load() @ 0x10b418e7 in /usr/bin/clickhouse
2. DB::FileChecker::FileChecker(std::__1::shared_ptr, std::__1::basic_string, std::__1::allocator > const&) @ 0x10b41393 in /usr/bin/clickhouse
3. DB::StorageLog::StorageLog(std::__1::shared_ptr, std::__1::basic_string, std::__1::allocator > const&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, std::__1::basic_string, std::__1::allocator > const&, bool, unsigned long) @ 0x10b35617 in /usr/bin/clickhouse
4. ? @ 0x10b40917 in /usr/bin/clickhouse
5. DB::StorageFactory::get(DB::ASTCreateQuery const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::shared_ptr, std::__1::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x10960bc1 in /usr/bin/clickhouse
6. DB::createTableFromAST(DB::ASTCreateQuery, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::shared_ptr, bool) @ 0xfeb8e05 in /usr/bin/clickhouse
7. ? @ 0xfeb6f93 in /usr/bin/clickhouse
8. ? @ 0xfeb7f3f in /usr/bin/clickhouse
9. ThreadPoolImpl::worker(std::__1::__list_iterator) @ 0x8fddc58 in /usr/bin/clickhouse
10. ThreadFromGlobalPool::ThreadFromGlobalPool::scheduleImpl(std::__1::function, int, std::__1::optional)::'lambda0'()>(void&&, voidThreadPoolImpl::scheduleImpl(std::__1::function, int, std::__1::optional)::'lambda0'()&&...)::'lambda'()::operator()() @ 0x8fdf7ff in /usr/bin/clickhouse
11. ThreadPoolImpl::worker(std::__1::__list_iterator) @ 0x8fdaf3f in /usr/bin/clickhouse
12. ? @ 0x8fde823 in /usr/bin/clickhouse
13. start_thread @ 0x76db in /lib/x86_64-linux-gnu/libpthread-2.27.so
14. __clone @ 0x121a3f in /lib/x86_64-linux-gnu/libc-2.27.so
(version 21.8.5.7 (official build))
2021.09.03 14:14:11.633867 [ 24408 ] {} Application: JSONException: JSON: begin >= end.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.