Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(quorum-all-in-one): error "Failed to enumerate USB devices" #2274

Closed
takeutak opened this issue Jan 26, 2023 · 8 comments
Closed

bug(quorum-all-in-one): error "Failed to enumerate USB devices" #2274

takeutak opened this issue Jan 26, 2023 · 8 comments
Assignees
Labels
bug Something isn't working Quorum Tests Anything related to tests be that automatic or manual, integration or unit, etc.

Comments

@takeutak
Copy link
Contributor

takeutak commented Jan 26, 2023

Describe the bug
In the process of the container building of quorum-all-in-one, there are the following error and the container cannot be launched.

[process]
DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-all-in-one/ -t qaio
docker run --rm qaio

[error]
"Failed to enumerate USB devices"

To Reproduce

When I edited start-quorum.sh and add "--nousb", the error does not happen.

geth \
  --identity node${NODE_ID}-${QUORUM_CONSENSUS:-raft} \
  --datadir ${DDIR} \
  --permissioned \
  --nodiscover \
  --verbosity 2 \
  --networkid ${NETWORK_ID} \
  --rpc \
  --rpccorsdomain "*" \
  --rpcvhosts "*" \
  --rpcaddr 0.0.0.0 \
  --rpcport 8545 \
  --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,${QUORUM_CONSENSUS:-raft} \
  --port 21000 \
  --allow-insecure-unlock \
  --unlock 0 \
  --password /passwords.txt \
  --nousb
  ${QUORUM_GETH_ARGS:-} ${GETH_ARGS_raft}

c.f.: ethereum/go-ethereum#20568

@takeutak takeutak added the bug Something isn't working label Jan 26, 2023
@takeutak takeutak changed the title bug(quorum-all-in-one): bug(quorum-all-in-one): error "Failed to enumerate USB devices" Jan 26, 2023
@aldousalvarez
Copy link
Contributor

Hello @petermetz I would like to work on this one, Thank you.

@ruzell22
Copy link
Contributor

ruzell22 commented Apr 4, 2023

Hello @petermetz , can you assign this to me? Thank you.

@petermetz
Copy link
Contributor

@aldousalvarez Sorry for the slow response!
@ruzell22 You got it.

@petermetz petermetz added Quorum Tests Anything related to tests be that automatic or manual, integration or unit, etc. labels Apr 4, 2023
@ruzell22
Copy link
Contributor

ruzell22 commented Apr 5, 2023

Hi @takeutak , I have conducted multiple tests regarding the ticket including the one in the provided link.

Initial test without changes
image

Added --nousb to replicate
image

changed --rpc flags to --http as per this log wherein it says it will be removed soon
image

The test without --nousb shows multiple occurrence of "Failed to enumerate USB devices" error log while the test with --nousb shows only one occurrence of the error log.

goquorum docs website also stated about adding --nousb will help remove the error
image

I also tried adding the libusb and libusb-dev to the dockerfile and build and run the test again
image
image

"Failed to enumerate USB devices" error still happen even after adding --nousb flag. --privileged is also used when using docker run command.

@ruzell22
Copy link
Contributor

ruzell22 commented Apr 5, 2023

Hi @takeutak , I would also like to confirm if the one below the logs, the part where it starts with raft, is it the expected output when running the container? Thank you.
image

@ruzell22
Copy link
Contributor

Hello @takeutak and @petermetz , upon further testing, adding --nousb flag to the two geth command in start-quorum.sh removes all the "Failed to enumerate USB devices" error.
image

The issue is fixed. However after the merge and update of quorum-all-in-one docker file in #2240 , with the new version of quorum and tessera, the /tessera/tessera-app.jar is now not accessible and is also changed to a .tar file.

I have tried to revert the version of the tessera, version of the quorum, and both at the same time to see which is causing the problem. The quorum-all-in-one is running as expected with the old and latest version of quorum, but it is only running okay with the old tessera, and is having error with new tessera version. The error is mostly regarding the extraction and running of /tessera/tessera-app.jar to its tar file equivalent.
image

ruzell22 added a commit to ruzell22/cactus that referenced this issue Jul 12, 2023
petermetz pushed a commit to ruzell22/cactus that referenced this issue Jul 16, 2023
petermetz pushed a commit that referenced this issue Jul 16, 2023
fixes: #2411

related to: #2240 and #2274

Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
@ruzell22
Copy link
Contributor

ruzell22 commented Jul 17, 2023

In relation to #2549 , based on the output on the terminal after building and running, "Failed to enumerate USB devices" error is not showing up anymore even without putting the --nousb flag in geth.

image
image

This bug has been fixed together with the #2549 PR, @petermetz , Thank you.

@petermetz
Copy link
Contributor

@ruzell22 Thank you very much! Closing this one!

sandeepnRES pushed a commit to sandeepnRES/cacti that referenced this issue Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Quorum Tests Anything related to tests be that automatic or manual, integration or unit, etc.
Projects
None yet
Development

No branches or pull requests

4 participants