Skip to content

AWS Fargate error #37

Description

@zigius

Hi,

We are trying to use this package in aws fargate. Our service crashes in the following line:

'host_ip': socket.gethostbyname(socket.gethostname())})

with this error:
socket.gaierror: [Errno -2] Name or service not known

The service is running as a task in a docker container in an unknown host (Fargate launches containers without you having to worry about the underlying ec2 instance. Something along the lines of hostname: 9e3hg54u)

I am willing to open a pull request if you would like to suggest a proper solution to this problem.
(for starters, it would be nice if the logger does not fail if it cant find an ip :))

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions