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

OSError: errno 99 cannot assign requested address #1649

Open
jorguerra opened this issue Mar 26, 2020 · 2 comments
Open

OSError: errno 99 cannot assign requested address #1649

jorguerra opened this issue Mar 26, 2020 · 2 comments

Comments

@jorguerra
Copy link

I have built an app with Django and I have written a command that processes Excel files, generating json files which are then copied to a remote machine using Paramiko. When I execute the command manually works perfectly, however, when it's ran by the crontab throws the exception

File "/code/blacklist_app/models.py", line 76, in upload
    ssh.connect(host, username=usuario, password=password)
  File "/usr/local/lib/python3.8/site-packages/paramiko/client.py", line 349, in connect
    retry_on_signal(lambda: sock.connect(addr))
  File "/usr/local/lib/python3.8/site-packages/paramiko/util.py", line 283, in retry_on_signal
    return function()
  File "/usr/local/lib/python3.8/site-packages/paramiko/client.py", line 349, in 
    retry_on_signal(lambda: sock.connect(addr))
OSError: [Errno 99] Cannot assign requested address
@Krystex
Copy link

Krystex commented Nov 27, 2023

@jorguerra I'm having the same problem, did you solve it?

@jun66j5
Copy link
Contributor

jun66j5 commented Nov 29, 2023

@Krystex The errno 99 (EADDRNOTAVAIL) typically occurs when no ephemeral ports. Please check the setting of net.ipv4.ip_local_port_range.

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