-
Notifications
You must be signed in to change notification settings - Fork 323
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
[/127.0.0.1:30535] Address in use #6730
Comments
That seems like an issue of cc @radeusgd
|
@4e6 can you take a look at this? |
There is fixed project manager address in
We are also using this address in new dashboard. At least it would be good to somehow have it defined in one place because currently we have:
|
Like the predecessors mentioned, you probably have an instance of |
Sure I do.
Relying on fixed port is wrong. First of all the address can be taken, second on a multi user machine, the |
keep in mind that if someone does make this change on scala's side, changes will also need to be made on both electron (running the project manager with the appropriate port) and the GUI (adding a configuration option for the port) and the new dashboard (passing through the configuration option) (this can be done in a separate PR, this is mostly a note that this would need to be implemented in multiple places) |
The port should be communicated to GUI during initialization. As @JaroslavTulach mentioned, relying anywhere on hardcoded ports is wrong. The same applies to our GUI-side server, which starts at |
@wdanilo a ticket on cloud-v2? or a new one on this repo, but with a proposed solution? or something else? |
@somebody1234 up to you - sorry for super late reply. We just need to fix that, while tickets are mainly for us. So if you feel a ticket fits better one repo, just create it there :) |
FYI: I've just tested the behavior with https://github.com/enso-org/enso/releases/tag/2023.2.1-nightly.2023.8.2 and it is still the same. When the port 30535 is occupied, the IDE cannot start
|
@JaroslavTulach #6774 has been reopened - not sure if it needs any tests or something, but it should be ready to test at least |
- Closes #6730 - Changes config to allow environment variables to override server host and port - Adds port scanning to Electron app to ensure the PM is started at a free port # Important Notes - `SERVER_PORT=abcd enso.AppImage` does NOT work. It would not be difficult to implement, but it probably needs discussion on how exactly it should be implemented - for example, `SERVER_PORT` is quite a generic name, should the Electron app pass though something like `ENSO_PM_SERVER_PORT` to the PM as `SERVER_PORT` instead? :warning: Port scanning is *only* implemented in the JS frontend. It is not implemented: - In Scala, because the JS/Rust code calling it needs to know the port as well. There shouldn't be any problems with adding port scanning though, if that's desired - In Rust, because I'm not sure parsing the host and port from a string is a good idea. - (This also applies to JS, but it *must* work in JS, and port scanning is already a dependency there so it's quite a bit easier) - QA *will* need a new PM (`sbt buildProjectManagerDistribution` or `./run backend sbt` -> `buildProjectManagerDistribution`), and the path must be supplied as: `-engine.project-manager-path=path/to/new/pm/here`
I can confirm my inquiry is fixed. Thank you. When I execute
which blocks the port |
I have downloaded https://github.com/enso-org/enso/releases/tag/2023.2.1-nightly.2023.5.17 release and tried to launch it:
Are we really using the same fixed port? What if it is taken? What if one wants to run two Enso IDE on the same computer (by different user)? Shouldn't the port rather be dynamically allocated?
The text was updated successfully, but these errors were encountered: