Failed to Deploy Local Cluster Using TiUP in Win11 WSL Environment

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

Original topic: win11 wsl环境下使用tiup 部署本地集群失败

| username: huanglao2002

[TiDB Usage Environment] Test/
[TiDB Version] V6.5.0
[Reproduction Path] win11+wsl+V6.5.0
[Encountered Issue: Problem Phenomenon and Impact]
Configuration file:
jin@TABLET-PBTEB744:~$ cat template.yaml

For more information about the format of the tiup cluster topology file, consult

Deploy a TiDB Cluster Using TiUP | PingCAP Docs

# Global variables are applied to all deployments and used as the default value of

# the deployments if a specific deployment value is missing.

global:

# The OS user who runs the tidb cluster.

user: “tidb”

# SSH port of servers in the managed cluster.

ssh_port: 22

# Storage directory for cluster deployment files, startup scripts, and configuration files.

deploy_dir: “/tidb-deploy”

# TiDB Cluster data storage directory

data_dir: “/tidb-data”

# Supported values: “amd64”, “arm64” (default: “amd64”)

arch: “amd64”

pd_servers:

  • host: 127.0.0.1

tidb_servers:

  • host: 127.0.0.1

tikv_servers:

  • host: 127.0.0.1

monitoring_servers:

  • host: 127.0.0.1

grafana_servers:

  • host: 127.0.0.1
    Deployment command
    tiup cluster deploy tidbtest v6.5.0 ./template.yaml --ssh=none

Database local deployment failed, previously playground deployment was fine.
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]


tiup-cluster-debug-2023-01-14-11-12-07.log (219.5 KB)

| username: 我是咖啡哥 | Original post link

It doesn’t support Windows.
Obviously, the command “systemctl daemon-reload && systemctl enable pd-2379.service” cannot be executed.

| username: huanglao2002 | Original post link

I can run the playground successfully.
Indeed, systemctl cannot be used on Ubuntu under WSL.

| username: huanglao2002 | Original post link

Restart the Windows 11 system, and the system under WSL will be able to use systemctl.

| username: system | Original post link

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