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

Failed to connect to ethereum node behind a VPN #199

Open
LOG17 opened this issue May 28, 2019 · 2 comments
Open

Failed to connect to ethereum node behind a VPN #199

LOG17 opened this issue May 28, 2019 · 2 comments

Comments

@LOG17
Copy link

LOG17 commented May 28, 2019

Hello,

I have this error message. If i relaunch the VM and start worker again it work again, but all the time, after a few hours i have this error message :

2019-05-28 12:08:08.692 INFO 7 --- [ Thread-21] o.s.c.context.restart.RestartEndpoint : Could not doRestart: Error creating bean with name 'application': Unsatisfied dependency expressed through field 'iexecHubService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'iexecHubService' defined in URL [jar:file:/iexec-worker.jar!/BOOT-INF/classes!/com/iexec/worker/chain/IexecHubService.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web3jService' defined in URL [jar:file:/iexec-worker.jar!/BOOT-INF/classes!/com/iexec/worker/chain/Web3jService.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.iexec.worker.chain.Web3jService]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: Failed to connect to ethereum node https://mainnet.infura.io/v3/0f12503e1aed4316bd7072559d3122b6

Do you know why ?

@zguesmi
Copy link
Member

zguesmi commented Jun 4, 2019

Hi @LOG17,

This could be due to the internet connection or the infura node itself. We'd need more informations to inpect the issue.

@LOG17
Copy link
Author

LOG17 commented Jun 4, 2019

Hi @zied-guesmi I confirm this must be an internet connection problem since this VM is on a computer with a VPN ( purevpn ) and VM on another one is not and work fine all the time.

Is there a way for VM to connect directly to the internet without passing through the VPN software, for exemple with VM network configuration ( NAT / Bridge / etc.. ) ?

@jeremyjams jeremyjams changed the title error "Failed to connect to ethereum node " Failed to connect to ethereum node behind a VPN Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants