我正在尝试使用Puppeth (作为Péter Szilágyi在2017年Ethereum演示)来建立一个私有的ethereum测试网络。我正在macbook上运行它(macOS塞拉利昂)。
当我试图设置ethstat网络组件时,我得到了一个“错误配置: bash: docker:错误”。我有码头运行,我可以很好地使用它在码头,例如码头ps。
以下是我所采取的步骤:
What would you like to do? (default = stats)
1. Show network stats
2. Manage existing genesis
3. Track new remote server
4. Deploy network components
> 4
What would you like to deploy? (recommended order)
1. Ethstats - Network monitoring tool
2. Bootnode - Entry point of the network
3. Sealer - Full node minting new blocks
4. Wallet - Browser wallet for quick sends (todo)
5. Faucet - Crypto faucet to give away funds
6. Dashboard - Website listing above web-services
> 1
Which server do you want to interact with?
1. Connect another server
> 1
Please enter remote server's address:
> localhost
DEBUG[11-15|22:46:49] Attempting to establish SSH connection server=localhost
WARN [11-15|22:46:49] Bad SSH key, falling back to passwords path=/Users/xxx/.ssh/id_rsa err="ssh: cannot decode encrypted private keys"
The authenticity of host 'localhost:22 ([::1]:22)' can't be established.
SSH key fingerprint is xxx [MD5]
Are you sure you want to continue connecting (yes/no)? yes
What's the login password for xxx at localhost:22? (won't be echoed)
>
DEBUG[11-15|22:47:11] Verifying if docker is available server=localhost
ERROR[11-15|22:47:11] Server not ready for puppeth err="docker configured incorrectly: bash: docker: command not found\n"以下是我的问题:
发布于 2017-11-23 16:52:38
这就是我所做的。
发布于 2018-04-26 09:02:59
我想我找到了这个问题的根源。SSH守护进程是使用默认路径编译的。如果您使用特定的命令(不包括ssh )访问机器,您将得到该默认路径。例如,这不包括/usr/local/bin,在我的例子中,docker就住在这里。
我在这里找到了解决方案:https://serverfault.com/a/585075
/etc/ssh/sshd_config并确保它包含PermitUserEnvironment yes (您需要用sudo编辑它)~/.ssh/environment,在我的例子中:PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin当您现在运行ssh localhost env时,您应该会看到一个PATH,它与您在~/.ssh/environment中放置的任何内容相匹配。
https://stackoverflow.com/questions/47318035
复制相似问题