tiup install server
mkdir mirror-test
tiup mirror clone mirror-test v4.0.10 --arch=amd64
tiup server $(pwd)/mirror-test --addr 0.0.0.0:8899
cp *pingcap.json ~/.tiup/keys/private.json
tiup mirror set http://0.0.0.0:8899
tiup mirror publish hello v0.0.1 hello.tar.gz hello.sh --os=any --arch=any --desc="hello world example"
遇到的问题: tiup mirror publish一直报错
Fetch local manifest: read manifest from mirror(http://0.0.0.0:8989) failed: not enough signatures (0) for threshold 3 in root.json
Failed to load component manifest, create a new one
Error: Unknow error from server, response code: 500 response body: {"status":"INTERNAL ERROR","message":"an internal error happened"}
Fetch local manifest: unknown component
Failed to load component manifest, create a new one
Error: Unknow error from server, response code: 500 response body: {"status":"INTERNAL ERROR","message":"an internal error happened"}