我正在尝试使用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-available
pcscd.socket