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

Create validator no such file or directory error #6

Open
wjdfx opened this issue May 19, 2019 · 2 comments
Open

Create validator no such file or directory error #6

wjdfx opened this issue May 19, 2019 · 2 comments

Comments

@wjdfx
Copy link

wjdfx commented May 19, 2019

qoscli tx create-validator --owner "keyname" --name "validator" --tokens 900000000 --description "description"
null
ERROR: buildAndSignTx recovered: open /home/ubuntu/.qosd/config/write-file-atomic-04003846858355766142: no such file or directory

同步数据时使用的是 --home 参数,未使用默认的,这样在$HOME下不会创建 .qosd/ 文件夹。
但是在创建验证人时,即便指定了 --home参数,qosd依旧是去$HOME下找 .qosd 文件夹,造成了上面的报错。

@blackpainter
Copy link
Member

谢谢提出bug! validator可以试一下home-node参数
@imuge home参数名统一,并写入 types.DefaultNodeHome

@imuge
Copy link
Contributor

imuge commented May 29, 2019

qosd 相关指令--home指定运行节点配置,区块、状态等等数据,
qoscli 相关指令--home主要存放本地密钥数据,qoscli执行指令通过设置--home-node指定运行节点配置和数据目录。qoscli tx create-validator需要同时读取密钥数据和运行节点pubkey,所有需要添加--home-node,指定到执行qosd init的时通过--home指定的目录。后期会评估将这两个目录统一的可行性 @wjdfx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants