Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Networking error while running under Docker #73

Open
shader opened this issue May 14, 2015 · 2 comments
Open

Networking error while running under Docker #73

shader opened this issue May 14, 2015 · 2 comments

Comments

@shader
Copy link
Contributor

shader commented May 14, 2015

I'm not sure what exactly the problem is, or if it is even pyre's fault, but I'm getting the following exception when I run a beacon inside a docker container. I'm guessing it has something to do with udp broadcast support.

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/pyre/zactor.py", line 57, in run
    self.shim_handler(*self.shim_args, **self.shim_kwargs)
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 64, in __init__
    self.run()
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 283, in run
    self.handle_pipe()
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 212, in handle_pipe
    self.configure(port)
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 195, in configure
    self.prepare_udp()
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 71, in prepare_udp
    self._prepare_socket()
  File "/usr/lib/python2.7/site-packages/pyre/zbeacon.py", line 135, in _prepare_socket
    netinf = zhelper.get_ifaddrs()
  File "/usr/lib/python2.7/site-packages/pyre/zhelper.py", line 268, in get_ifaddrs
    si = sockaddr_in.from_address(ifa.ifa_ifu.ifu_broadaddr)
TypeError: integer expected
@sphaero
Copy link
Contributor

sphaero commented May 22, 2015

Weird, I've never worked with docker so I don't know what its network stack is about. Need to test. Do you have any documentation pointers?

@rio
Copy link
Contributor

rio commented May 22, 2015

I'm using pyre to communicate between containers and don't have any problems right now. I'll check If I'm doing some weird stuff or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants