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 steampipe commands leave behind plugin* unix socket files in $TMPDIR #3292

Closed
pskrbasu opened this issue Apr 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pskrbasu
Copy link
Contributor

pskrbasu commented Apr 3, 2023

Running steampipe periodically in a cronjob is leaving plugin* files in the /tmp(or $TMPDIR) dir. It seems like they left-over unix-socket files for the plugin GRPC connections.
Doing ls -al $TMPDIR/plugin* shows the files in your system.

Needs reproduction steps.

Internal slack discussion threads: https://turbothq.slack.com/archives/C01AC8JQNHH/p1680276762723299

@pskrbasu pskrbasu added the bug Something isn't working label Apr 3, 2023
@pskrbasu pskrbasu changed the title Running steampipe periodically leaves behind /tmp/plugin* unix socket files for the plugin GRPC connections Running steampipe commands leave behind plugin* unix socket files in $TMPDIR Apr 4, 2023
@pskrbasu
Copy link
Contributor Author

pskrbasu commented Apr 4, 2023

Findings/Reproduction:

  1. plugin* files present in $TMPDIR
  2. Cleared all existing plugin* files
  3. steampipe query "select 1"

1 plugin* file got created
Screenshot 2023-04-04 at 7 26 11 PM

  1. steampipe service start

quite some plugin* files get created
Screenshot 2023-04-04 at 7 27 24 PM

  1. steampipe service stop

Removes plugin* files but leaves 1 behind. Now we have 2 plugin* files(1 plugin* file from step 3)
Screenshot 2023-04-04 at 7 29 25 PM

  1. steampipe plugin list

1 plugin* file got created
Screenshot 2023-04-04 at 7 30 23 PM

Every successful command execution leaves behind 1 plugin* file.

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

1 participant