在docker上激活帐户alphanet时出错
2 个回答
- 投票数
-
- 2019-03-21
一般说明:原始文本快照比图片更易于开发,因为您可以引用它们:-)
看来
tezos-client
无法理解格式 file:/[...]
.这是一个令人烦恼的错误,值得在 https://gitlab.com/tezos/tezos/issues 中进行报告a>.我不知道docker是否将它放置的文件保存在
/tmp/
中,还是立即删除它们.如果文件保留了一点,那么现在子文件已在容器中,则alphabet.sh client activate account peach with /tmp/tz1....json
激活帐户桃子应该可以工作...General remarks: raw text snapshots are more convenient for developers than pictures because you can quote them :-)
It looks like
tezos-client
does not understand the "uri" formatfile:/[...]
. It's an annoying bug which is worth reporting at https://gitlab.com/tezos/tezos/issues .I don't know if docker keeps the files it puts in
/tmp/
or if it erases them immediately. If files stay for a bit, now that the son file is in the container,alphabet.sh client activate account peach with /tmp/tz1....json
should work...-
现在,我可以运行tezos-clientfinish,但无法激活帐户成功,该如何解决?... 致命错误:opAguJg1GCLJUQ1qShiQDAcC56Zv41nZJcaePz8mGj21CSnfEKe操作已过时,可能永远不会包含在链中. 我们建议使用外部块浏览器.and Now I can run tezos-client finish but I can't activate account success , How do I fixed it ? ... `Fatal error: The operation opAguJg1GCLJUQ1qShiQDAcC56Zv41nZJcaePz8mGj21CSnfEKe is outdated and may never be included in the chain. We recommand to use an external block explorer.`
- 1
- 2019-03-22
- Waravich Vipanichkarn
-
当我运行" ./alphanet.sh客户端使用tz1xxx ... xxxxxubq.json激活帐户user_1"时,当json文件位于alphanet.sh脚本的同一文件夹中时,我也遇到相同的错误. 引发的错误是: 命令行参数错误5(tz1xxx ... xxxxxubq.json). 文件不存在:"tz1xxx ... xxxxxubq.json" 您是如何解决的?I am also getting the same error when I run "./alphanet.sh client activate account user_1 with tz1xxx...xxxxxubq.json" When json file is in the same folder of alphanet.sh script. Error thrown was: Erroneous command line argument 5 (tz1xxx...xxxxxubq.json). File doesn't exist: 'tz1xxx...xxxxxubq.json' How did you solve it?
- 0
- 2019-03-31
- user_184
-
另外,我通过"从源代码构建"选项进行了本地设置,并收到了您在评论中提到的过时错误.您如何解决的?Also, I made the local set up via "Build from Sources" option and was getting the outdated error you mentioned in the comment. HOw did you resolved that?
- 0
- 2019-03-31
- user_184
-
- 2019-06-20
好吧,这是我有史以来第一个stackexchange答案,我很惊讶我能弄清楚这一点,但这是我几个小时后所做的.
问题是docker无法访问文件系统中包含临时钱包的位置.因此,我找到了这篇文章,详细介绍了如何在运行时将卷安装到Docker容器: https://jpetazzo.github.io/2015/01/13/docker-mount-dynamic-volumes/
您需要使用以下名称查找tezos节点的名称
dockerps
(1)矿被称为
alphanet_node_1
(2)接下来,您需要找到.json文件的位置.我的在
〜/Downloads/tezos_docker/tz1 ....json
(3)接下来,使用> ./alphanet.sh shell输入您的容器 然后在要包含.json文件的容器中创建目录.我的是
/home/tezos/tezos_docker
在顶部的链接文章的脚本顶部,将这三个值用作变量:
容器=(1) HOSTPATH=(2) CONTPATH=(3)
还要确保您使用以下链接从链接的文章中下载了nsenter脚本
docker run --rm -v/usr/local/bin:/targetjpetazzo/nsenter
最后,我不得不更改本文脚本底部的某些语法,删除 -在最下面的行中,并将--mode更改为-m以表示mknod.希望这可以帮助!
Okay so this is my first stackexchange answer ever and I'm surprised I was the one to figure this out but here's what I did after several hours.
The problem is that docker cannot access the place in your filesystem that has your temp wallet in it. So I found this article detailing how to mount a volume to a docker container while it is running: https://jpetazzo.github.io/2015/01/13/docker-mount-dynamic-volumes/
You need to find the name of your tezos node with
docker ps
(1) Mine is called
alphanet_node_1
(2) Next you need to find the location of your .json file. Mine is in
~/Downloads/tezos_docker/tz1....json
(3) Next enter your container with >./alphanet.sh shell then create the directory in the container you want to contain the .json file. Mine is
/home/tezos/tezos_docker
Use those three values for the variables at the top of the script in the linked article at the top:
CONTAINER=(1) HOSTPATH= (2) CONTPATH= (3)
Also make sure you download the nsenter script from the linked article using
docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
Finally I had to change some of the syntax at the bottom of the script in the article, deleting the -- in the bottom rows and changing --mode to -m for mknod. Hope this helps!
-
英勇!从3月回来回答问题,欢迎来到TSE!heroic! answering a question back from march, welcome to TSE!
- 0
- 2019-06-23
- Ezy
在docker上使用alphanet运行"激活帐户"时遇到问题(请参见下图).我该如何解决?