question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

browser_chat Error: [Errno 99] Cannot assign requested address

See original GitHub issue

Bug description Followed the setup instructions here https://github.com/facebookresearch/ParlAI/tree/master/parlai/chat_service/services/browser_chat, but when I run the client script I get this error:

Connecting to port:  10001
[Errno 99] Cannot assign requested address
Connection closed

Reproduction steps python3 parlai/chat_service/services/browser_chat/client.py --port 10001

Expected behavior Be able to chat with the model on a browser page.

Additional context I tried to run the client.py inside a docker image which published and exposed ports 8080, 80 and 10001 while the run.py was running in a docker image which exposed port 10001.

LITTLE BUG First time I run it, I got ModuleNotFoundError: No module named 'tornado’. Solved it installing tornado with python3 -m pip install tornado.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aslucccommented, Aug 25, 2020

Sure, these are the things I remember I had some trouble with, but I’m new also to docker so they may be trivial:

  • Trying to train the model during building: this can’t be done because it is not possible to use the GPUs, that can be used just at run time. Also, the availability of the GPUs must be checked at run-time.
  • Missing wget and tornado as I mentioned in other issues (my start image was 10.0-cudnn7-devel-ubuntu18.04), that were not installed during setup
  • To use chat_browser, --network==host must be specified as an arg of the run command in both the server and client container

If anything else comes to my mind I will edit this post.

1reaction
aslucccommented, Aug 25, 2020

I’m sorry, this was really an issue regarding Docker. I had to use --network==host to expose my ports. I’m closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

socket.error:[errno 99] cannot assign requested address and ...
Stripping things down to basics this is what you would want to test with: import socket server = socket.socket() server.bind(("10.0.0.1", ...
Read more >
error: [Errno 99] Cannot assign requested address · Issue #208
I just run into this issue on an older and updated Kali Linux. Just like @Sliim mentioned, the quickest fix is to launch...
Read more >
Plone OSError: [Errno 99] Cannot assign requested address
I have exim relay running on localhost but plone is unable to send a test email. I have tested using python3 smtplib and...
Read more >
CURL error after upgrading v2.7 — bind failed with errno 99
CURL error :: bind failed with errno 99: Cannot assign requested address. Mailchimp says: API Request ... I double verified the IP address...
Read more >
Unable to start Plesk migration: urlopen error [Errno 99 ...
Symptoms. Unable to start Plesk migration due to the following error: urlopen error [Errno 99] Cannot assign requested address · Cause.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found