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

"An exception occurred" when I run the command: pheweb serve --open #213

Open
ikio3 opened this issue Oct 23, 2023 · 3 comments
Open

"An exception occurred" when I run the command: pheweb serve --open #213

ikio3 opened this issue Oct 23, 2023 · 3 comments

Comments

@ikio3
Copy link

ikio3 commented Oct 23, 2023

I am using pheweb 1.3.16

I am running command pheweb serve --open

the output is "An exception occurred (Details in /Users/my-new-pheweb/generated-by-pheweb/tmp/exception-2023-10-23T19-01-02.921594)"

The file is showed below:
======= Exception ====
Command '['dig', '+short', 'myip.opendns.com', '@resolver1.opendns.com']' returned non-zero exit status 9.

======= Traceback ====
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/command_line.py", line 134, in main
run(sys.argv[1:])
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/command_line.py", line 124, in run
handlerssubcommand
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/command_line.py", line 69, in serve
run(argv)
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/serve/run.py", line 125, in run
print_ip(args.port, conf.get_urlprefix())
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/serve/run.py", line 64, in print_ip
ip = get_ip()
File "/opt/anaconda3/lib/python3.9/site-packages/pheweb/serve/run.py", line 79, in get_ip
return subprocess.check_output('dig +short myip.opendns.com @resolver1.opendns.com'.split()).strip().decode('ascii')
File "/opt/anaconda3/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/opt/anaconda3/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dig', '+short', 'myip.opendns.com', '@resolver1.opendns.com']' returned non-zero exit status 9.

my config.py includes:
hg_builf_number=19

@ikio3
Copy link
Author

ikio3 commented Oct 23, 2023

At the same time, I also run pheweb serve, it returns:
[2023-10-23 19:03:14 +0800] [10066] [INFO] Starting gunicorn 20.0.4
[2023-10-23 19:03:14 +0800] [10066] [ERROR] Connection in use: ('0.0.0.0', 5000)

@pjvandehaar
Copy link
Collaborator

pjvandehaar commented Feb 3, 2024 via email

@pjvandehaar
Copy link
Collaborator

It sounds like myip.opendns.com no longer returns an IP address. It needs to be replaced with "curl ifconfig.me/ip".

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