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 Install script should be able to detect and halt the Steampipe service #1269

Closed
Joeturbot opened this issue Dec 23, 2021 · 0 comments · Fixed by #1279
Closed

Steampipe Install script should be able to detect and halt the Steampipe service #1269

Joeturbot opened this issue Dec 23, 2021 · 0 comments · Fixed by #1279
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Joeturbot
Copy link

Is your feature request related to a problem? Please describe.
If the Steampipe Service is running on your local workstation when you do an upgrade, then weird errors pop up in the console. The Steampipe client also would not start with this error message: Error: rpc error: code = Unknown desc = no config loaded for connection

Describe the solution you'd like

  • Have the Linux and MacOS installation scripts be able to discover and halt the Steampipe service.
  • Have the Steampipe client report a version mismatch between itself and the Steampipe service instead of bombing out with cryptic errors.

Describe alternatives you've considered
The alternative is remember to stop the service before upgrading.

Additional context
Got these errors when upgradeing from 0.10.0 to 0.11.0
Reproduction steps:

  1. Deploy Steampipe 0.10.0
  2. Start the Steampipe service.
  3. Upgrade to Steampipe 0.11.0
  4. Try to start the Steampipe 0.11.0 client.
  5. Get errors.
  6. Restart the steampipe service.
  7. Try to start the Steampipe 0.11.0 client.
  8. No errors. Steampipe is happy.

Trace logs from Steampipe client with the mismatched client/service.

Welcome to Steampipe v0.11.0
For more information, type .help
> 2021-12-23T09:30:37.093-0500 [TRACE] steampipe: status:  {"Pid":16313,"Port":9193,"Listen":["localhost","127.0.0.1","192.168.2.147","172.17.0.1"],"ListenType":"network","Invoker":"service","Password":"XXXX-XXXX-XXXX","User":"steampipe","Database":"steampipe"}
2021-12-23T09:30:37.093-0500 [TRACE] steampipe: Connection string:  host=localhost port=9193 user=root dbname=steampipe sslmode=require
2021-12-23T09:30:37.136-0500 [TRACE] steampipe: createDbClient
2021-12-23T09:30:37.187-0500 [TRACE] steampipe: created local client 0xc000556120
2021-12-23T09:30:37.191-0500 [TRACE] steampipe: getSchemaHashesForDynamicSchemas
2021-12-23T09:30:37.191-0500 [TRACE] steampipe: CreateConnectionPlugin creating 0 connections
2021-12-23T09:30:37.193-0500 [TRACE] steampipe: plugin manager is running - returning client

Error: rpc error: code = Unknown desc = no config loaded for connection
2021-12-23T09:30:37.215-0500 [TRACE] steampipe: close local client 0xc000556120
2021-12-23T09:30:37.215-0500 [TRACE] steampipe: local client not NIL
2021-12-23T09:30:37.215-0500 [TRACE] steampipe: DbClient.Close &{0 0xc00070dba8 0 {0 0} [0xc0001883f0] map[] 0 1 0xc0003222a0 false map[0xc0001883f0:map[0xc0001883f0:true]] map[] 1 1 0 0 <nil> 0 0 0 0 0x52a9c0}
2021-12-23T09:30:37.216-0500 [TRACE] steampipe: local client close complete
2021-12-23T09:30:37.216-0500 [TRACE] steampipe: shutdown local service query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants