Failed to Install TiFlash with TiUP Playground and Unable to Open Dashboard

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

Original topic: tiup playground 安装tiflash失败 dashboard也打不开

| username: 春风十里

Environment:

[root@mytidb ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
[root@mytidb ~]# uname -a
Linux mytidb 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Issue: tiup playground installation not fully successful, tiflash installation failed, dashboard not accessible

[root@mytidb ~]# tiup playground
tiup is checking updates for component playground …
Starting component playground: /root/.tiup/components/playground/v1.12.1/tiup-playground
Using the version v7.0.0 for version constraint “”.

If you’d like to use a TiDB version other than v7.0.0, cancel and retry with the following arguments:
Specify version manually: tiup playground
Specify version range: tiup playground ^5
The nightly version: tiup playground nightly

Start pd instance:v7.0.0
Start tikv instance:v7.0.0
Start tidb instance:v7.0.0
Waiting for tidb instances ready
127.0.0.1:4000 … Done
Start tiflash instance:v7.0.0
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠏
tiflash quit: signal: illegal instruction (core dumped)
Logging debug to /root/.tiup/data/TdruoYj/tiflash-0/log/tiflash.log
Logging errors to /root/.tiup/data/TdruoYj/tiflash-0/log/tiflash_error.log
arg matches is ArgMatches { args: {“engine-addr”: MatchedArg { occurs: 1, indices: [12], vals: [“127.0.0.1:3930”] }, “config”: MatchedArg { occurs: 1, indices: [2], vals: [“/root/.tiup/data/TdruoYj/tiflash-0/tiflash-learner.toml”] }, “engine-git-hash”: MatchedArg { occu
rs: 1, indices: [6], vals: [“16a60b0fe1e0f6a3af92524cf9fa21af123b290d”] }, “pd-endpoints”: MatchedArg { occurs: 1, indices: [8], vals: [“127.0.0.1:2379”] }, “engine-version”: MatchedArg { occurs: 1, indices: [4], vals: [“v7.0.0”] }, “engine-label”: MatchedArg { occurs: 1, indices: [10], vals: [“tiflash”] }}, subcommand: None, usage: Some(“USAGE:\n TiFlash Proxy [FLAGS] [OPTIONS] --engine-git-hash --engine-label --engine-version ”) }deprecated configuration, log-file has been moved to log.file.filename
override log.file.filename with log-file, “/root/.tiup/data/TdruoYj/tiflash-0/log/tiflash_tikv.log”
Waiting for tiflash instances ready
127.0.0.1:3930 … Error

:tada: TiDB Cluster is started, enjoy!

Connect TiDB: mysql --host 127.0.0.1 --port 4000 -u root
TiDB Dashboard: http://127.0.0.1:2379/dashboard
Grafana: http://127.0.0.1:3000

Log Information

Last login: Wed May 10 11:31:18 2023 from 192.168.0.11
[root@mytidb ~]# cat /root/.tiup/data/TdruoYj/tiflash-0/log/tiflash_error.log
[2023/05/10 11:32:35.683 -04:00] [WARN] [StorageConfigParser.cpp:262] [“The configuration "path" is deprecated. Check [storage] section for new style.”] [thread_id=1]
[2023/05/10 11:32:36.494 -04:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=2]
[2023/05/10 11:32:36.495 -04:00] [ERROR] [BaseDaemon.cpp:377] [“(from thread 1) Received signal Illegal instruction(4).”] [source=BaseDaemon] [thread_id=2]
[2023/05/10 11:32:36.495 -04:00] [ERROR] [BaseDaemon.cpp:472] [“Illegal operand.”] [source=BaseDaemon] [thread_id=2]
[root@mytidb ~]#
[root@mytidb ~]#
[root@mytidb ~]#
[root@mytidb ~]# cat /root/.tiup/data/TdruoYj/tiflash-0/log/tiflash.log
[2023/05/10 11:32:35.682 -04:00] [INFO] [BaseDaemon.cpp:1160] [“Welcome to TiFlash”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [BaseDaemon.cpp:1161] [“Starting daemon with revision 54381”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [BaseDaemon.cpp:1164] [“TiFlash build info: TiFlash\nRelease Version: v7.0.0\nEdition: Community\nGit Commit Hash: 16a60b0fe1e0f6a3af92524cf9fa21af123b290d\nGit Branch: heads/refs/tags/v7.0.0\nUTC Build Time: 2023-03
-25 09:37:59\nEnable Features: jemalloc sm4(GmSSL) avx2 avx512 unwind thinlto\nProfile: RELWITHDEBINFO\n”] [thread_id=1][2023/05/10 11:32:35.683 -04:00] [INFO] [] [“starting up”] [source=Application] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:415] [“Got jemalloc version: 5.3-RC”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:424] [“Not found environment variable MALLOC_CONF”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:430] [“Got jemalloc config: opt.background_thread false, opt.max_background_threads 4”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:434] [“Try to use background_thread of jemalloc to handle purging asynchronously”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:437] [“Set jemalloc.max_background_threads 1”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [INFO] [Server.cpp:440] [“Set jemalloc.background_thread true”] [thread_id=1]
[2023/05/10 11:32:35.683 -04:00] [WARN] [StorageConfigParser.cpp:262] [“The configuration "path" is deprecated. Check [storage] section for new style.”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [StorageConfigParser.cpp:318] [“Main data candidate path: /root/.tiup/data/TdruoYj/tiflash-0/data/”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [StorageConfigParser.cpp:320] [“Latest data candidate path: /root/.tiup/data/TdruoYj/tiflash-0/data/”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [StorageConfigParser.cpp:322] [“Raft data candidate path: /root/.tiup/data/TdruoYj/tiflash-0/data/kvstore/”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [Server.cpp:987] [“Using format_version=4 (default settings).”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [Server.cpp:1001] [“Using api_version=1”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [Server.cpp:1016] [“UniPS is not enabled for proxy, page_version=3”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [Server.cpp:504] [“start raft store proxy”] [thread_id=1]
[2023/05/10 11:32:35.684 -04:00] [INFO] [Server.cpp:1025] [“wait for tiflash proxy initializing”] [thread_id=1]
[2023/05/10 11:32:36.285 -04:00] [INFO] [Server.cpp:1028] [“tiflash proxy is initialized”] [thread_id=1]
[2023/05/10 11:32:36.285 -04:00] [INFO] [Server.cpp:1035] [“encryption is disabled”] [thread_id=1]
[2023/05/10 11:32:36.292 -04:00] [INFO] [getNumberOfCPUCores.cpp:72] [“logical cpu cores: 1, hardware logical cpu cores: 1, hardware physical cpu cores: 1, physical cpu cores: 1, number_of_physical_cpu_cores: 1”] [thread_id=1]
[2023/05/10 11:32:36.292 -04:00] [INFO] [Server.cpp:1064] [“ServerInfo: CPU: \n logical cores: 1\n physical cores: 1\n frequency: 0MHz\n l1 cache size: 65536\n l1 cache line size: 64\n l2 cache size: 2097152\n l2 cache line size: 64\n l3
cache size: 2097152\n l3 cache line size: 64\n arch: amd64\nDisk: \n name: /dev/mapper/rhel-root\n type: HDD\n total space: 53660876800\n free space: 44111826944\n mount point: /\n fstype: xfs\nDisk: \n name: /dev/sda1\n type: HDD\n total space: 10475274240\n free space: 10323349504\n mount point: /boot\n fstype: xfs\nMemory: \n capacity: 6761930752\n”] [thread_id=1][2023/05/10 11:32:36.414 -04:00] [INFO] [Server.cpp:1115] [“disaggregated_mode=None use_autoscaler=false enable_s3=false”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [INFO] [PathCapacityMetrics.cpp:91] [“Init capacity [path=/root/.tiup/data/TdruoYj/tiflash-0/data/] [capacity=0.00 B]”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [INFO] [RaftConfigParser.cpp:49] [“Found pd addrs: 127.0.0.1:2379”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [INFO] [RaftConfigParser.cpp:85] [“Default storage engine [type=2]”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [INFO] [Context.cpp:623] [“Setting secuirty config.”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [INFO] [TiFlashSecurity.h:130] [“security config is not set”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [DEBUG] [Server.cpp:1191] [“rlimit on number of file descriptors is 4096”] [thread_id=1]
[2023/05/10 11:32:36.414 -04:00] [DEBUG] [Server.cpp:1214] [“Initializing DateLUT.”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:46] [“get cluster id: unknown”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:54] [“get process id: compute_127_0_0_1_3930_1683732756415078”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:46] [“get cluster id: unknown”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:54] [“get process id: compute_127_0_0_1_3930_1683732756415078”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:46] [“get cluster id: unknown”] [thread_id=1]
[2023/05/10 11:32:36.415 -04:00] [INFO] [ComputeLabelHolder.cpp:54] [“get process id: compute_127_0_0_1_3930_1683732756415078”] [thread_id=1]
[2023/05/10 11:32:36.416 -04:00] [INFO] [UserConfigParser.cpp:70] [“Set users config file to: /root/.tiup/data/TdruoYj/tiflash-0/tiflash.toml”] [thread_id=1]
[2023/05/10 11:32:36.416 -04:00] [DEBUG] [ConfigReloader.cpp:94] [“Loading config from /root/.tiup/data/TdruoYj/tiflash-0/tiflash.toml”] [source=UserCfgReloader] [thread_id=1]
[2023/05/10 11:32:36.416 -04:00] [INFO] [Server.cpp:1269] [“Loaded global settings from default_profile and system_profile.”] [thread_id=1]
[2023/05/10 11:32:36.416 -04:00] [INFO] [Server.cpp:1277] [“Background & Blockable Background pool size: 16”] [thread_id=1]
[2023/05/10 11:32:36.416 -04:00] [INFO] [BackgroundProcessingPool.cpp:90] [“Create BackgroundProcessingPool, prefix=bg- n_threads=16”] [thread_id=1]
[2023/05/10 11:32:36.436 -04:00] [INFO] [BackgroundProcessingPool.cpp:90] [“Create BackgroundProcessingPool, prefix=bg-block- n_threads=16”] [thread_id=1]
[2023/05/10 11:32:36.445 -04:00] [INFO] [PageStorageImpl.cpp:56] [“PageStorageImpl start. Config{ PageStorageConfig {blob_file_limit_size: 268435456, blob_spacemap_type: 2, blob_heavy_gc_valid_rate: 0.500, blob_block_alignment_bytes: 0, wal_roll_size: 2097152, wal_max_p
ersisted_log_files: 4} }”] [source=global.log] [thread_id=1][2023/05/10 11:32:36.445 -04:00] [INFO] [PageStorageImpl.cpp:56] [“PageStorageImpl start. Config{ PageStorageConfig {blob_file_limit_size: 268435456, blob_spacemap_type: 2, blob_heavy_gc_valid_rate: 0.500, blob_block_alignment_bytes: 0, wal_roll_size: 2097152, wal_max_p
ersisted_log_files: 4} }”] [source=global.data] [thread_id=1][2023/05/10 11:32:36.472 -04:00] [INFO] [PageStorageImpl.cpp:56] [“PageStorageImpl start. Config{ PageStorageConfig {blob_file_limit_size: 268435456, blob_spacemap_type: 2, blob_heavy_gc_valid_rate: 0.500, blob_block_alignment_bytes: 0, wal_roll_size: 2097152, wal_max_p
ersisted_log_files: 4} }”] [source=global.meta] [thread_id=1][2023/05/10 11:32:36.473 -04:00] [INFO] [PageDirectoryFactory.cpp:57] [“PageDirectory restored [max_page_id=0] [max_applied_ver=0]”] [source=global.log] [thread_id=1]
[

| username: 春风十里 | Original post link

My virtual machine address is 192.168.0.123. Changing the address to http://192.168.0.123:2379/dashboard also doesn’t open. I don’t know the reason.

| username: tidb菜鸟一只 | Original post link

TiFlash deployment failed, check if there are insufficient resources.

| username: ShawnYan | Original post link

Is there enough memory?

| username: 春风十里 | Original post link

How much memory does this need? I didn’t pay much attention, but I set the virtual machine memory to about 7-8GB.

| username: Billmay表妹 | Original post link

Check the official recommended configuration.

| username: Billmay表妹 | Original post link

The difference is significant~

| username: lilinghai | Original post link

You can download tiflash and manually execute LD_LIBRARY_PATH=./ ./tiflash version to see if it can print normal information (if it can print version information normally, it means the environment is compatible). The description here indicates that tiflash has some requirements for the CPU architecture instructions. You can refer to TiFlash 简介 | PingCAP 文档中心 for more details.

| username: 春风十里 | Original post link

I’m just setting up a playground to take a look. Are there any minimum requirements for this?

| username: 春风十里 | Original post link

I deployed a virtual machine on my own desktop using VirtualBox. I’m not sure if there are any issues; I’ll check when I get home. According to the official documentation, there are specific requirements.

When deploying TiFlash on a Linux AMD64 hardware platform, the CPU must support the AVX2 instruction set. Ensure that the command cat /proc/cpuinfo | grep avx2 produces output. When deploying TiFlash on a Linux ARM64 hardware platform, the CPU must support the ARMv8 architecture. Ensure that the command cat /proc/cpuinfo | grep 'crc32' | grep 'asimd' produces output. By using vector extension instruction sets, TiFlash’s vectorized engine can provide better performance.

| username: 春风十里 | Original post link

These are the requirements for a formal development or testing environment. I’m just learning and trying it out on my desktop. I saw in the lecture video that the instructor used a virtual machine on a Mac without any issues, so I posted to ask. I can’t quite understand the logs.

| username: Miniant256 | Original post link

If the course does not yet cover HTAP capabilities and TiFlash, you can temporarily skip deploying TiFlash:

tiup playground --tiflash 0

If resources are indeed insufficient but you still need to use TiFlash, you can try creating a TiDB Cloud Serverless Tier cluster. (There is a 5GB free quota, but note that the monitoring panel for the Serverless Tier is different from the one in your course, so I’m not sure if your course will cover monitoring.)

| username: 春风十里 | Original post link

There is no output, probably because the virtual machine created by my desktop does not support it.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.