Failed to deploy TiFlash with TiUP: Cannot set max size of core file to 1073741824

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

Original topic: tiup部署tiflash失败,Cannot set max size of core file to 1073741824

| username: TiDBer_yviskDE7

[TiDB Usage Environment] Poc
[TiDB Version] 7.5.1
[Reproduction Path] Deploy according to the official deployment documentation
[Encountered Problem: Phenomenon and Impact] tiup deployment of tiflash failed
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]


I am currently researching TiDB for my company, but I have been unable to deploy it successfully. Although ulimit can successfully modify the core file, the deployment still fails. I hope it won’t be mandatory to modify the core file, as many company machines cannot switch to the root user. In some cases, modifying the handle count is very difficult. Many companies do not support switching to root, do not support restarting machines, and bastion hosts will reuse SSH connections, making modifications to limit.conf ineffective.

| username: DBAER | Original post link

Did not configure sudo permissions.

| username: TiDBer_yviskDE7 | Original post link

How to configure it? Running tiup with sudo prompts “command not found”.

| username: zhaokede | Original post link

Have you configured it in the environment variables?

| username: Kongdom | Original post link

Try referring to this:

| username: yytest | Original post link

Try increasing the maximum size of core files. This can be done by editing the /etc/security/limits.conf file and adding or modifying the following lines:

  • soft core unlimited
  • hard core unlimited
    Here, * means it applies to all users, and soft and hard represent soft limits and hard limits, respectively. Soft limits can be raised by the user up to the level of the hard limit, while hard limits are the maximum enforced by the system.