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

running "process-compose" with the same port twice makes the second instance inaccessible via REST API #68

Closed
adrian-gierakowski opened this issue Jul 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@adrian-gierakowski
Copy link
Contributor

Defect

When multiple instance of process-compose are ran concurrently, only the first instance is accessible via REST API. This can lead to confusion, if one forgets that an instance is already running in the background and starts a new one, and the tries to access it via REST or process-compose command (like process-compose process list etc).

This is also the case if any other process is already using the port process-compose is supposed to use.

IMHO, process-compose should exit with an error if it cannot bind the the port. If one doesn't intend to use the REST interface, a flag to disable the REST server could be provided.

Version of process-compose:

Process Compose
Version:        v0.51.4
Commit:         e3cc52e

OS environment:

nixos

Steps or code to reproduce the issue:

Expected result:

Actual result:

@F1bonacc1 F1bonacc1 added the bug Something isn't working label Jul 19, 2023
@F1bonacc1
Copy link
Owner

Good catch.
Will be fixed in the next release.

@F1bonacc1
Copy link
Owner

Should be fixed in v0.60.0
Feel free to reopen if it doesn't work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants