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

[Bug]: OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the server_port parameter to launch() #16543

Open
6 tasks
phucbienvan opened this issue Oct 11, 2024 · 2 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@phucbienvan
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the server_port parameter to launch()

Steps to reproduce the problem

I encountered this error when starting Stable Diffusion WebUI.
with the arguments:
--api --listen --cors-allow-origins '*' --port=7860 --no-gradio-queue --skip-torch-cuda-test --nowebui.

What should have happened?

If I restart the Stable Diffusion WebUI, it works fine. However, since it's currently running in a production environment, I can't keep restarting it like that. Can you tell me why?

What browsers do you use to access the UI ?

No response

Sysinfo

I am running on an EC2 Linux environment.

Console logs

OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the `server_port` parameter to `launch()`

Additional information

No response

@phucbienvan phucbienvan added the bug-report Report of a bug, yet to be confirmed label Oct 11, 2024
@missionfloyd
Copy link
Collaborator

Is something else using 7860? Try a different port.

@phucbienvan
Copy link
Author

phucbienvan commented Oct 12, 2024

Is something else using 7860? Try a different port.

hi @missionfloyd
No, I tried switching to port 55555 and encountered this error:
Cannot find empty port in range: 55555-55555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants