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

improve 'port occupied' error message` #645

Open
rrayst opened this issue Jul 4, 2023 · 2 comments
Open

improve 'port occupied' error message` #645

rrayst opened this issue Jul 4, 2023 · 2 comments
Assignees

Comments

@rrayst
Copy link
Contributor

rrayst commented Jul 4, 2023

The error message

Membrane is configured to open port %d. But this port is alreay in
use by a different program.

can be confusing, as it is also printed when Membrane (the JVM process) is not allowed to open the port (e.g. when running as non-root).

(Solution might be setcap cap_net_bind_service+epi /path/to/java)

@predic8
Copy link
Member

predic8 commented Jul 10, 2023

Must the user setcap? If this is the case we can change the error message accordingly. Can you give an example?

@rrayst
Copy link
Contributor Author

rrayst commented Jul 10, 2023

  • markdown on membrane-api.io
  • change error message, if port<1024 "or maybe you lack permissions to open the port" + link

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