ClickHouse / ClickHouse/ClickHouse
Clickhouse-server cannot start due to json exception
- 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:

--- 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
Assessment
This issue has not been assessed yet.