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 mirror init does not work #1299

Closed
daniel-nichter opened this issue Apr 12, 2021 · 1 comment · Fixed by #1302
Closed

tiup mirror init does not work #1299

daniel-nichter opened this issue Apr 12, 2021 · 1 comment · Fixed by #1302
Labels
category/usability Categorizes issue or PR as a usability enhancement. type/bug Categorizes issue as related to a bug.

Comments

@daniel-nichter
Copy link

daniel-nichter commented Apr 12, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
% ./tiup mirror init
Error: initial repository from mirror(https://tiup-mirrors.pingcap.com/) failed: cannot open the initial root.json at /Users/dn/.tiup/bin/root.json

That was run in the root dir of this repo.

Note: I have zero setup of anything TiDB related--a completely empty env. $HOME/.tiup/ doesn't exist. No TI* env vars.

  1. What did you expect to see?

Expect tiup mirror init to "Just Work", or give more specific error message about what pre-conditions aren't met.

  1. What did you see instead?

No matter how I run it, or what dirs I create, or even if I use a blank /Users/dn/.tiup/bin/root.json, it errors as shown above.

  1. What version of TiUP are you using (tiup --version)?

Commit f3f35be
Mac
Local build (just go build)
go1.16

@daniel-nichter daniel-nichter added the type/bug Categorizes issue as related to a bug. label Apr 12, 2021
@kolbe
Copy link
Contributor

kolbe commented Apr 12, 2021

This is caused by incorrect setup of the TiUP environment. No root.json file was installed after tiup was built. I think the handling for that situation should be much better. #829 and #837 try to address this but I don't think they do a very thorough job.

@AstroProfundis AstroProfundis added the category/usability Categorizes issue or PR as a usability enhancement. label Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/usability Categorizes issue or PR as a usability enhancement. type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants