Mesos bind error : Cannot assign requested address [99]

Sunder

I'm trying to run a Mesos cluster on 2 machines. One is a server that I rent (we'll call it S1), and the other one is a machine running in my house (S2). The Mesos slaves and masters are running inside Docker containers.

First, I ran into this error : https://github.com/mesos/chronos/issues/193. I followed the advices in this post (by setting either LIBPROCESS_IP or MESOS_IP). Adding one of these environment variables causes this error :

F0512 08:48:55.437530     1 process.cpp:889] Failed to initialize: Failed to bind on <ip>:<port>: Cannot assign requested address: Cannot assign requested address [99]

I figured it was caused because the Docker container ip address was 172.17.0.1 and not S1 or S2's ip. I added --net=host in the docker run command. It fixed the error on S1, but not on S2.

I think it is because S2 has a local IP inside my network (192.168.0.16), and mesos can't bind to my router IP.

Is there a way to make Mesos work with this configuration, or do I need a machine with its own IP address ?

Tobi

Although this doesn't seem to be an ideal configuration, you might have success in adding a port forwarding on your router (e.g. port 5050 and 5051) and use the --advertise_ip command line flag when starting the master/slave on the machine in your house.

IP address advertised to reach this Mesos master/slave. The master/slave does not bind to this IP address. However, this IP address may be used to access this master/slave.

See

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

socket.error:[errno 99] cannot assign requested address and namespace in python

bind: cannot assign requested address on UDPclient in local network

RedisInsight on Docker and Redis on Docker: Could not connect: Error 99 connecting to localhost:6379. Cannot assign requested address

Flask, cannot assign requested address

Puma Error: Cannot assign requested address - bind(2) for "10.0.2.2" port 3000 (Errno::EADDRNOTAVAIL)

Cannot connect to redis://localhost:6379/0: Error 99 connecting to localhost:6379. Cannot assign requested address

PostgreSQL docker: "could not bind IPv6 socket: Cannot assign requested address"

Python - socket.error: Cannot assign requested address

OSError: [Errno 99] Cannot assign requested address

Server binding results in error "Cannot assign requested address"?

Spring Boot with Embedded Mongo : Cannot assign requested address: JVM_Bind

socket.error:[errno 99] cannot assign requested address : flask and python

Unable to bind to http://localhost:5000 on the IPv6 loopback interface: 'Cannot assign requested address'

CentOS8 nginx: [emerg] bind() failed (99: Cannot assign requested address)

Docker + django_extensions + jupyter: OSError: [Errno 99] Cannot assign requested address

ssh_init: Network error: Cannot assign requested address

Postgresql connection with gorm dial error cannot assign requested address

Bind error (99): Cannot assign requested address

iperf returning “bind failed: cannot assign requested address” in Windows XP and 7

unable to bind socket: Cannot assign requested address issue on ubuntu

traceroute have error bind: Cannot assign requested address

Raspberry Pi TCP socket - [Errno 99] Cannot assign requested address

zmq.error.ZMQError: Cannot assign requested address

PHP - memcache randomly fails with - Cannot assign requested address (99)

Nginx on Kubernetes (99: Cannot assign requested address)

redis.exceptions.ConnectionError: Error 99 connecting to localhost:6379. Cannot assign requested address

Docker Cannot assign requested address

Errno 99 - Cannot assign requested address

Socket server failed to bind to kafka:29092: Cannot assign requested address