Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiup cluster deploy will fail #991

Closed
ZhenhanGong opened this issue Dec 15, 2020 · 2 comments
Closed

tiup cluster deploy will fail #991

ZhenhanGong opened this issue Dec 15, 2020 · 2 comments
Labels
category/monitoring Categorizes issue or PR related to monitoring components. category/stability Categorizes issue or PR as a stability enhancement. type/bug Categorizes issue as related to a bug. type/duplicate Categorizes issue or PR as duplicate.

Comments

@ZhenhanGong
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    $ tiup cluster deploy test-compression nightly ./topology.yml --user root -p

  2. What did you expect to see?
    Succeed to deploy a cluster.

  3. What did you see instead?

  • Copy files
    • Copy pd -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tidb -> 172.16.5.187 ... Done
    • Copy tiflash -> 172.16.5.187 ... Done
    • Copy prometheus -> 172.16.5.187 ... Error
    • Copy grafana -> 172.16.5.187 ... Error
    • Copy node_exporter -> 172.16.5.187 ... Done
    • Copy blackbox_exporter -> 172.16.5.187 ... Done

Error: init config failed: 172.16.5.187:9090: executor.ssh.execute_failed: Failed to execute command over SSH for '[email protected]:22' {ssh_stderr: zsh:1: no matches found: /tidb-deploy/prometheus-9090/conf/.rules.yml
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin rm -f /tidb-deploy/prometheus-9090/conf/
.rules.yml}, cause: Process exited with status 1

  1. What version of TiUP are you using (tiup --version)?
    v1.2.5 tiup
    Go Version: go1.13
    Git Branch: release-1.2
    GitHash: 5b9cf5d

  2. A feasible workaround:
    Seems Tiup will remove files before deploy a new cluster, but executing "rm -f /tidb-deploy/prometheus-9090/conf/*.rules.yml" will fail since there is no such file, and thus cause process exit.
    workaround:
    $ touch 1.rules.yml
    touch a trivial file at promethesus folder before execute tiup deploy command.
    $ touch 1.json
    touch a file at grafana folder as well

@ZhenhanGong ZhenhanGong added the type/bug Categorizes issue as related to a bug. label Dec 15, 2020
@AstroProfundis AstroProfundis added category/monitoring Categorizes issue or PR related to monitoring components. category/stability Categorizes issue or PR as a stability enhancement. labels Dec 16, 2020
@AstroProfundis
Copy link
Contributor

It seems you are using zsh as default shell on the remote, this should be a duplicate of #974

Could you confirm if #982 fixes it?

@AstroProfundis AstroProfundis added the type/duplicate Categorizes issue or PR as duplicate. label Dec 16, 2020
@ZhenhanGong
Copy link
Author

Yes, it's a duplicate of #974
And I think #982 did fix the issue.

What I did:

  1. $ git clone https://github.com/pingcap/tiup
  2. $ make -j40
  3. $ ./bin/tiup-cluster deploy ...
    And succeed to deploy a cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/monitoring Categorizes issue or PR related to monitoring components. category/stability Categorizes issue or PR as a stability enhancement. type/bug Categorizes issue as related to a bug. type/duplicate Categorizes issue or PR as duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants