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

Name or service not known #59

Open
devops724 opened this issue Jun 19, 2023 · 3 comments
Open

Name or service not known #59

devops724 opened this issue Jun 19, 2023 · 3 comments

Comments

@devops724
Copy link

devops724 commented Jun 19, 2023

when i try run it on debian 11 i get this error
2023-06-19 05:55:43,720 INFO: Running without uvloop

Traceback (most recent call last):
  File "/usr/local/bin/sstpd", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.9/dist-packages/sstpd/__init__.py", line 9, in run
    main()
  File "/usr/local/lib/python3.9/dist-packages/sstpd/__main__.py", line 168, in main
    server = loop.run_until_complete(coro)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1460, in create_server
    infos = await tasks.gather(*fs, loop=self)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1400, in _create_server_getaddrinfo
    infos = await self._ensure_resolved((host, port), family=family,
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1396, in _ensure_resolved
    return await loop.getaddrinfo(host, port, family=family, type=type,
  File "/usr/lib/python3.9/asyncio/base_events.py", line 856, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
@devops724
Copy link
Author

devops724 commented Jun 19, 2023

i installed uvloop using this command
apt install python3-uvloop
i get this error now

Traceback (most recent call last):
  File "/usr/local/bin/sstpd", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.9/dist-packages/sstpd/__init__.py", line 9, in run
    main()
  File "/usr/local/lib/python3.9/dist-packages/sstpd/__main__.py", line 168, in main
    server = loop.run_until_complete(coro)
  File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1685, in create_server
socket.gaierror: [Errno -2] Name or service not known

@tisj
Copy link
Contributor

tisj commented May 3, 2024

Make sure you have a valid configuration file, especially the listen= and listen_port= options should be present and have valid values for your system: an IP and (TCP) port to bind the server process to.

@tisj
Copy link
Contributor

tisj commented May 3, 2024

See #45, the same is mentioned.

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

2 participants