turbot / steampipe

Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.
https://steampipe.io
GNU Affero General Public License v3.0
6.82k stars 263 forks source link

`Error: Unrecognized remote plugin message` when using workspace with install_dir #3882

Closed johnsmyth closed 1 day ago

johnsmyth commented 11 months ago

Describe the bug Error: Unrecognized remote plugin message when using a workspace with install_dir.

Steampipe version (steampipe -v) Steampipe v0.21.0-beta.0

To reproduce I created a new empty folder and set is as my install dir. There are no plugins installed there:

MacBook-Pro:~ jsmyth$ mkdir ~/sp3
MacBook-Pro:~ jsmyth$ STEAMPIPE_INSTALL_DIR=~/sp3 steampipe plugin list

No apparent issues when running from the install dir:

MacBook-Pro:~ jsmyth$ STEAMPIPE_INSTALL_DIR=~/sp3 steampipe query
Welcome to Steampipe v0.21.0-beta.0
For more information, type .help
> select * from steampipe_connection_state
+------+-------+------+-------------+---------------+-------+--------+-------------+-------------+--------------+---------------------+>
| name | state | type | connections | import_schema | error | plugin | schema_mode | schema_hash | comments_set | connection_mod_time |>
+------+-------+------+-------------+---------------+-------+--------+-------------+-------------+--------------+---------------------+>
+------+-------+------+-------------+---------------+-------+--------+-------------+-------------+--------------+---------------------+>
> 

But I added a workspace:

workspace "sp3" {
  install_dir =  "~/sp3"
}

and when i use the workspace, it blows up with an error abou plugin architecture (despite the fact that I have no plugins in that install dir):

MacBook-Pro:~ jsmyth$ STEAMPIPE_WORKSPACE=sp3 steampipe query
Welcome to Steampipe v0.21.0-beta.0
For more information, type .help
> 
Error: Unrecognized remote plugin message: 
This usually means
  the plugin was not compiled for this architecture,
  the plugin is missing dynamic-link libraries necessary to run,
  the plugin is not executable by this process due to file permissions, or
  the plugin failed to negotiate the initial go-plugin protocol handshake

Additional notes about plugin:
  Path: /usr/local/bin/steampipe
  Mode: -rwxr-xr-x
  Owner: 501 [jsmyth] (current: 501 [jsmyth])
  Group: 20 [staff] (current: 20 [staff])
  MachO architecture: CpuAmd64 (current architecture: amd64)
github-actions[bot] commented 9 months ago

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[bot] commented 8 months ago

This issue was closed because it has been stalled for 90 days with no activity.

github-actions[bot] commented 6 months ago

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[bot] commented 3 months ago

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[bot] commented 1 month ago

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[bot] commented 1 day ago

This issue was closed because it has been stalled for 90 days with no activity.