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

Fails after generating two configs #9

Closed
dontcrash opened this issue Aug 4, 2022 · 9 comments
Closed

Fails after generating two configs #9

dontcrash opened this issue Aug 4, 2022 · 9 comments

Comments

@dontcrash
Copy link

Status: OK
Register: True
Valid: 2022-08-11T17:35:24+00:00
Generating zip file
Tirana Created Successfully.
Algiers Created Successfully.
Traceback (most recent call last):
File "/home/Nick/Wiregen/wiregen.py", line 216, in
main(sys.argv[1:])
File "/home/Nick/Wiregen/wiregen.py", line 209, in main
Builder(path)
File "/home/Nick/Wiregen/wiregen.py", line 109, in Builder
ip = socket.gethostbyname(i['connectionName'])
socket.gaierror: [Errno -2] Name or service not known

@Incognito-Coder
Copy link
Owner

Status: OK
Register: True
Valid: 2022-08-11T17:35:24+00:00
Generating zip file
Tirana Created Successfully.
Algiers Created Successfully.
Traceback (most recent call last):
File "/home/Nick/Wiregen/wiregen.py", line 216, in
main(sys.argv[1:])
File "/home/Nick/Wiregen/wiregen.py", line 209, in main
Builder(path)
File "/home/Nick/Wiregen/wiregen.py", line 109, in Builder
ip = socket.gethostbyname(i['connectionName'])
socket.gaierror: [Errno -2] Name or service not known

are you sure?
try again and tell me if problem stills.
mine is working fine(tested 2 hours ago)

@dontcrash
Copy link
Author

If it helps, I am running Ubuntu Server 22.04, python3 version 3.10.4

@Incognito-Coder
Copy link
Owner

If it helps, I am running Ubuntu Server 22.04, python3 version 3.10.4

i think your vps can't reach some hosts.
if you can, run it on local machine.

@dontcrash
Copy link
Author

If it helps, I am running Ubuntu Server 22.04, python3 version 3.10.4

i think your vps can't reach some hosts. if you can, run it on local machine.

It is a local machine, I have tried changing my DNS servers to Cloudflare 1.1.1.1 etc but the same issue happens. Not sure what's going on, I can see the gethostbyname() function is a DNS query, maybe the script should do a try/catch and throw a warning if a host fails but attempt to continue?

@Incognito-Coder
Copy link
Owner

yes.
i will fix it tomorrow.

@dontcrash
Copy link
Author

If I can figure out why the DNS is failing there, I will let you know! I can confirm it is not a local cache, flushing it and trying again with a different nameserver produces the same result, super weird behaviour.

@Incognito-Coder
Copy link
Owner

If I can figure out why the DNS is failing there, I will let you know! I can confirm it is not a local cache, flushing it and trying again with a different nameserver produces the same result, super weird behaviour.

Did you use vpn for this process?

@Incognito-Coder
Copy link
Owner

watch new commit c493275 i added try/catch.

@dontcrash
Copy link
Author

watch new commit c493275 i added try/catch.

Awesome! It makes it through a majority of the list now with only a few invalid hostnames

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