nsacyber / WALKOFF

A flexible, easy to use, automation framework allowing users to integrate their capabilities and devices to cut through the repetitive, tedious tasks slowing them down. #nsacyber
https://nsacyber.github.io/WALKOFF/
Other
1.2k stars 222 forks source link

attaching to network failed - context deadline exceeded #225

Closed BustedSec closed 4 years ago

BustedSec commented 5 years ago

Below is the relevant section of the installation output. From what I can tell Postgres creation failed which causes other things to not work as expected. OS Info: Linux walkoff 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Status: Downloaded newer image for qoomon/docker-host:latest Creating postgres ... error Creating walkoff_api_gateway_1 ... Creating redis ... Creating walkoff_dockerhost_1 ... Creating walkoff_registry_1 ... Creating walkoff_api_gateway_1 ... error ERROR: for postgres Cannot start service postgres: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded

ERROR: for walkoff_api_gateway_1 Cannot start service api_gateway: attaching to network failed, make sure your network options are correct and check manager loCreating walkoff_registry_1 ... error

ERROR: for walkoff_registry_1 Cannot start service registry: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded

ERROR: for redis UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for walkoff_dockerhost_1 UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for api_gateway Cannot start service api_gateway: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded

ERROR: for dockerhost UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for redis UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for postgres Cannot start service postgres: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded

ERROR: for registry Cannot start service registry: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

adpham95 commented 5 years ago

From what I've seen this could be one of two things:

Let us know if it isn't one of those.

BustedSec commented 5 years ago

I have the latest version of docker and docker-compose installed. This is a fresh install after running apt-get update && apt-get upgrade -y. I tried deleting the folder, removing the node from the swarm, and re-cloning the repo. I tried installing again and get the following error message appended to several services "attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded". Please advise, thank you

BustedSec commented 5 years ago

after running the command again I get "network walkoff_default not found" errors. I see the network listed NETWORK ID NAME DRIVER SCOPE 659514b69e1d bridge bridge local 1b09595e5c2d docker_gwbridge bridge local 4f18ce59e6a3 host host local wkunbcffs6t0 ingress overlay swarm ac3694bf3b61 none null local km5aa5gmhgci walkoff_default overlay swarm

adpham95 commented 5 years ago

Sorry for leaving this hanging. I'm currently working on a "bootloader" container which might help alleviate setup issues by taking over from docker stack deploy and including other all of our other requirements. I'll update this issue once that's complete.

ch40s commented 4 years ago

I get the same error, any progress on this or way to resolve it?

emrodas10 commented 4 years ago

@ch40s It appears that the errors you have been getting may have been resolved. Your most recent issues seem to be further along in the build process so I am closing this one.

anselmobattisti commented 4 years ago

In my case the problem was cause by the Docker installed via snap!

The version was the same but something broke!

Removed it and install via APT