8

I'm trying to create a private Ethereum network on a Kubernetes cluster using ethereum/client-go docker image but getting bellow error while trying to create an account:

~/.ethereum # geth account import privateKey --password passwordfile
INFO [07-10|00:31:02.095] Bumping default cache on mainnet         provided=1024 updated=4096
WARN [07-10|00:31:02.095] Sanitizing cache to Go's GC limits       provided=4096 updated=1316
INFO [07-10|00:31:02.101] Maximum peer count                       ETH=50 LES=0 total=50
INFO [07-10|00:31:02.101] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
ERROR[07-10|00:31:02.102] Failed to enumerate USB devices          hub=ledger vendor=11415 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:02.106] Failed to enumerate USB devices          hub=trezor vendor=21324 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:02.107] Failed to enumerate USB devices          hub=trezor vendor=4617  failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:02.107] Failed to enumerate USB devices          hub=ledger vendor=11415 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:02.107] Failed to enumerate USB devices          hub=trezor vendor=21324 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:02.107] Failed to enumerate USB devices          hub=trezor vendor=4617  failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:03.109] Failed to enumerate USB devices          hub=trezor vendor=4617  failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:03.109] Failed to enumerate USB devices          hub=ledger vendor=11415 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-10|00:31:03.109] Failed to enumerate USB devices          hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
Killed
~/.ethereum # command terminated with exit code 137

Things work perfect when I try on a docker container, problem with both Minikube as well as IBM Kubernetes Service.

  • 1
    has this been resolved? – D.Jack Jul 29 '19 at 9:46
  • 1
    can you share you kubenetes config? – Samuel Dare Aug 2 '19 at 18:21
  • 1
    I tried something similar to stable/ethereum helm chart’s account creation initContainer on Minikube and IBM Kubernetes Service. – moazzem Aug 2 '19 at 18:28
5

Consider using --nousb as argument on geth

|improve this answer|||||
3

I was able to create Ethereum account in Kubernetes by using geth version 1.7.0. Later versions of geth check for USB devices (possibly for hardware wallets). My assumption is that Docker containers in Kubernetes do not have USB IO and that's why geth throws error when it can't find USB driver. I did try --nousb flag, but still it didn’t work.

|improve this answer|||||
1

you are using one hyphen? here the argument or the option wants two hyphens --nousb,

geth -h | grep nousb

geth --help | grep nousb

only a short-option wants one hyphen.. -h ;)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.