aeternity / ae_mdw

Aeternity Middleware in Elixir
26 stars 10 forks source link

Docker startup fails possibly because ipv6 is disabled on host. #1803

Closed asyncmind0 closed 2 months ago

asyncmind0 commented 3 months ago

[error] Failed to start Ranch listener 'Elixir.AeMdwWeb.Endpoint.HTTP' in ranch_tcp:listen([{cacerts,'...'},{key,'...'},{cert,'...'},{ip,{0,0,0,0,0,0,0,0}},{port,4000}]) for reason eafnosupport (address family not supported by protocol family)

docker-compose -f docker-compose.yml up
yaboiishere commented 3 months ago

Hey, I can't seem to reproduce this, can you give me some more info about your system, like what OS are you running on and stuff like that? Also have you changed anything in the repo before running the command?

asyncmind0 commented 3 months ago

Hi I got it working after I changed the ip to ip: {0, 0, 0, 0} I'm on archlinux, docker 26.1.3 I have ipv6 disabled through kernel param

yaboiishere commented 3 months ago

Maybe there can be an Env variable that can be set, so that the endpoints can start on ipv4 addresses?

asyncmind0 commented 2 months ago

Works good with the env flag, thanks!