lf-edge / eve

EVE is Edge Virtualization Engine
https://www.lfedge.org/projects/eve/
Apache License 2.0
472 stars 159 forks source link

Server pings from within EVE resulting in ECONNREFUSED #2205

Open cmeyerwork opened 3 years ago

cmeyerwork commented 3 years ago

Hello, I am a CS student interning with a team that is working on Project EVE. I have been walking through the documentation and setting up EVE with minimal issues, but the company firewall that is setup on the device I am installing EVE on has proved to be troublesome.

At first I was having issues retrieving data from the docker repo, but after running a script that setup a proxy, I was able to clone EVE and build everything without issues. However, I believe I am now having an issue with the firewall while running EVE itself. Building the tools and live client works fine, but when EVE is run and tries to contact the Zededa API, the requests timeout, and returns an error saying "Controller returned ECONNREFUSED". EVE then tries to ping google as a test, and those requests timeout and return the same error. EVE continues cycling between trying to ping the Zededa API and google, until I exit the app.

I tried changing the Makefile proxy settings to use the proxy used to run the script mentioned earlier, but that was also unsuccessful. Its entirely possible that this is the solution, but I just don't know/didn't do it the right way to go about doing this, as I am pretty unfamiliar with proxies.

How do I go about ensuring EVE can get through the firewall?

Attached is a picture of the errors received while running EVE.

zededaError

rvs commented 3 years ago

Hey @cmeyerwork and welcome to the EVE community -- it is very nice to have you! In general, for questions like these it may be easier to hit our slack: https://lfedge.slack.com/

At any rate, it seems that you need to configure PROXY on the running version of EVE. Have you followed this doc yet? https://github.com/lf-edge/eve/blob/master/docs/CONFIG.md#example-deviceportconfig

cmeyerwork commented 3 years ago

Hey @cmeyerwork and welcome to the EVE community -- it is very nice to have you! In general, for questions like these it may be easier to hit our slack: https://lfedge.slack.com/

At any rate, it seems that you need to configure PROXY on the running version of EVE. Have you followed this doc yet? https://github.com/lf-edge/eve/blob/master/docs/CONFIG.md#example-deviceportconfig

Just tried this, pretty much copied the example file and made the appropriate changes to the proxies line. I am still getting the controller return ECONNREFUSED error message. After that didnt work, I tried using the template in the conf/DevicePortConfig directory, and just change the proxy and dns settings, and that resulted in the same errors.

I did notice that it looks like EVE isnt recognizing that the proxy has even been set in the .json file, due to an info message saying eth0 has no http(s) proxies. I created the override.json file in eve/conf/DevicePortConfig/, which I believe to be the correct spot. Is it possible that EVE is somehow not finding this file?

image

Here's my override.json file, I've removed the proxy information as it is a corporate proxy, but I have been entering it in the format of: "Server":"url", "Port":portNum, "Type":1.

image

I did try to join the slack, however the email I used said I didn't have the permissions to join. I'll have to try with a different account.

Thanks in advance for the help!

rvs commented 3 years ago

Hey @cmeyerwork -- you really need to bring this on slack so we can do a much quicker turn around on debugging the issue.