我正在尝试使用 geth 创建/导入一个新的以太坊帐户,但不是返回公共地址,而是 geth 返回Killed
。我在 Kubernetes 集群上使用quorumengineering/quorum Docker 映像。
这是帐户创建脚本:
echo -n passwordstring > passwordfile
echo -n 82f74b773d7f948153d7eb8c192bd9819e3e94073d8bdc0e03d659aa42cd34ba > privateKey
geth --datadir . account import --password passwordfile privateKey
该脚本不会返回创建的新帐户的公共地址,而是返回:
INFO [07-09|16:43:48.932] Maximum peer count ETH=25 LES=0 total=25
Killed
当我尝试以交互方式导入或创建帐户时返回类似的错误,geth account new
然后是kubectl exec -it <pod-name> sh
.
当我在我的机器中使用 Quorum docker 容器 ( docker run -it --entrypoint="sh" quorumengineering/quorum
) 时,一切正常。
编辑:ethereum/client-go图像提供了更具描述性的错误消息
INFO [07-09|19:03:09.094] Bumping default cache on mainnet provided=1024 updated=4096
WARN [07-09|19:03:09.095] Sanitizing cache to Go's GC limits provided=4096 updated=1316
INFO [07-09|19:03:09.097] Maximum peer count ETH=50 LES=0 total=50
INFO [07-09|19:03:09.098] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
ERROR[07-09|19:03:09.098] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:09.099] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:09.099] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:09.099] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:09.099] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:09.099] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:10.100] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:10.100] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-09|19:03:10.101] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
Killed
我尝试使用--nousb
标志但没有帮助。我正在尝试启用https://superuser.com/questions/773257/scardestablishcontext-service-not-availablepcscd.socket
中的以下说明