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

steampipe query in different install-dir without service fails with port clash unless a different port is specified #623

Closed
binaek opened this issue Jul 15, 2021 · 3 comments · Fixed by #3856
Assignees
Labels
bug Something isn't working triage bugs awaiting triage
Milestone

Comments

@binaek
Copy link
Contributor

binaek commented Jul 15, 2021

Reproductions

Start two terminals

In Terminal 1 execute:

$ steampipe query

In Terminal 2 execute:

$ steampipe query --install-dir ~/another-dir

The second query session will never start, unless either one of the two is started as a service on a different port.

This happens because both services are trying to bind to 9193.

@binaek binaek added the bug Something isn't working label Jul 15, 2021
@binaek binaek self-assigned this Jul 15, 2021
@kaidaguerre
Copy link
Contributor

The problem is a port clash

Potential solution - StartImplicitService should respect the port specified in the HCL db config

When the service is being started up during install (before the config has been read), a random db port should be used (this service instance is just for the installation)

@kaidaguerre
Copy link
Contributor

if a check session is running, and steampipe query is run for a different install dir, the check session fails with the error error creating transaction: pq: SSL is not enabled on the server

trying to restart check session gives the error failed to start service: cannot listen on port 9193

@kaidaguerre kaidaguerre changed the title steampipe query in different install-dir without service does not work steampipe query in different install-dir without service does fails with port clash unless a different port is specified Aug 24, 2021
@binaek binaek changed the title steampipe query in different install-dir without service does fails with port clash unless a different port is specified steampipe query in different install-dir without service fails with port clash unless a different port is specified Dec 22, 2021
@kaidaguerre kaidaguerre added the triage bugs awaiting triage label Mar 16, 2022
@kaidaguerre kaidaguerre added this to the v0.13.2 milestone Mar 16, 2022
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Sep 13, 2023
@kaidaguerre kaidaguerre removed the stale No recent activity has been detected on this issue/PR and it will be closed label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage bugs awaiting triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants