kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] tidb 6.5.10 cluster create error: exec /scripts/pd_start.sh: no such file or directory

Open JashBook opened this issue 8 months ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

kbcli version 
Kubernetes: v1.30.4-vke.4
KubeBlocks: 1.0.0-beta.41
kbcli: 1.0.0-beta.20

helm get notes -n kb-system kb-addon-tidb
Release Information:
  Commit ID: "eb8c2c7d9f4a3689b2ee33862f6e6a7e322217b2"
  Commit Time: "2025-03-26 14:46:14 +0800"
  Release Branch: "v1.0.0-beta.41"
  Release Time:  "2025-04-02 14:16:49 +0800"
  Enterprise: "false"

To Reproduce Steps to reproduce the behavior:

  1. create cluster
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: tidb-gksokk
  namespace: default
spec:
  clusterDef: tidb
  topology: cluster
  terminationPolicy: DoNotTerminate
  componentSpecs:
    - name: tidb
      replicas: 2
      configs:
      - name: tidb-configuration
        externalManaged: true
      serviceVersion: 6.5.10
      disableExporter: false
      resources:
        requests:
          cpu: 500m
          memory: 2Gi
        limits:
          cpu: 500m
          memory: 2Gi
    - name: tikv
      replicas: 1
      serviceVersion: 6.5.10
      disableExporter: false
      resources:
        requests:
          cpu: 500m
          memory: 2Gi
        limits:
          cpu: 500m
          memory: 2Gi
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
    - name: tidb-pd
      replicas: 1
      serviceVersion: 6.5.10
      disableExporter: false
      resources:
        requests:
          cpu: 500m
          memory: 2Gi
        limits:
          cpu: 500m
          memory: 2Gi
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
  1. See error
kubectl get cluster  tidb-gksokk 
NAME          CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS     AGE
tidb-gksokk   tidb                 DoNotTerminate       Abnormal   117s
➜  ~ 
➜  ~ kubectl get pod -l app.kubernetes.io/instance=tidb-gksokk 
NAME                    READY   STATUS             RESTARTS      AGE
tidb-gksokk-tidb-pd-0   2/3     CrashLoopBackOff   4 (19s ago)   2m8s
➜  ~ kubectl logs tidb-gksokk-tidb-pd-0
Defaulted container "pd" out of: pd, kbagent, config-manager, init-kbagent (init), kbagent-worker (init), init-pd-ctl (init)
exec /scripts/pd_start.sh: no such file or directory

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

JashBook avatar Apr 07 '25 07:04 JashBook