Error Deploying Cluster with Docker

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: docker 部署集群报错

| username: api915

【TiDB Environment】Test environment
【TiDB Version】Latest docker images
【Encountered Problem】TiFlash fails to start:
Error message:
[2022/09/29 10:54:21.043 +08:00] [ERROR] [] [“Application:DB::Exception: Illegal arguments: can not use DTFile to store snapshot data when the storage engine is not DeltaTree, [engine=1] [snapshot method=file1]”] [thread_id=1]

【Reproduction Steps】

  1. Download the official tidb-docker-compose project
  2. Execute the command under the master branch [docker-compose -f docker-compose-tiflash-nightly.yml up -d]
  3. TiFlash fails to start, and the tiflash_error.log file reports the following error:
    [2022/09/29 10:57:23.357 +08:00] [ERROR] [] [“Application:DB::Exception: Illegal arguments: can not use DTFile to store snapshot data when the storage engine is not DeltaTree, [engine=1] [snapshot method=file1]”] [thread_id=1]
    [2022/09/29 10:58:24.016 +08:00] [WARN] [StorageConfigParser.cpp:244] [“Application:The configuration "path" is deprecated. Check [storage] section for new style.”] [thread_id=1]
    [2022/09/29 10:58:24.122 +08:00] [ERROR] [] [“Application:DB::Exception: Illegal arguments: can not use DTFile to store snapshot data when the storage engine is not DeltaTree, [engine=1] [snapshot method=file1]”] [thread_id=1]
    [2022/09/29 10:59:24.798 +08:00] [WARN] [StorageConfigParser.cpp:244] [“Application:The configuration "path" is deprecated. Check [storage] section for new style.”] [thread_id=1]
    [2022/09/29 10:59:24.899 +08:00] [ERROR] [] [“Application:DB::Exception: Illegal arguments: can not use DTFile to store snapshot data when the storage engine is not DeltaTree, [engine=1] [snapshot method=file1]”] [thread_id=1]

【Problem Phenomenon and Impact】
Affects the TiDB database research process

【Attachments】Related logs and monitoring (https://metricstool.pingcap.com/)


If the question is about performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results and upload them.

| username: xfworld | Original post link

Did you manually deploy each one using Docker?

It’s better to use TiDB Operator: TiDB on Kubernetes 用户文档 | PingCAP 文档中心

It can save you a lot of brain cells…

| username: ShawnYan | Original post link

Research and testing? Compose is still too heavy; using tiup playground is much better, or simply set up a minimal cluster.