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

Error: out of shared memory (SQLSTATE 53200) during cli launch when high number of aws.spc connections #2756

Closed
ndemouron opened this issue Nov 16, 2022 · 3 comments · Fixed by #2790
Labels
bug Something isn't working

Comments

@ndemouron
Copy link

Error: out of shared memory (SQLSTATE 53200) during cli launch when high number of aws.spc connections on macos ventura arm with Steampipe v0.17.1

To be reproduce with more than 70 aws connections, all regions.
Launching in debug with
STEAMPIPE_LOG=trace steampipe query
show these messages:

2022-11-15 20:39:10.154 UTC [TRACE] steampipe: executeConnectionUpdateQueries: num updates 73
2022-11-15 20:39:10.155 UTC [TRACE] steampipe: executing 73 update queries
> 2022-11-15 20:39:34.168 UTC [TRACE] steampipe: all update queries executed
2022-11-15 20:39:34.169 UTC [TRACE] steampipe: executing 71 comment queries
2022-11-15 20:39:48.578 UTC [TRACE] steampipe: executeUpdateQueries returned error: ERROR: out of shared memory (SQLSTATE 53200)

Error: out of shared memory (SQLSTATE 53200)

Without debug, stuck with
⠏ Initializing...
then
Error: out of shared memory (SQLSTATE 53200)

fixed by the team by increasing the max_locks_per_transaction from 64 to 6400
in a dedicated .conf file in ~/.steampipe/db/14.2.0/data/postgresql.conf.d

> show max_locks_per_transaction
+---------------------------+
| max_locks_per_transaction |
+---------------------------+
| 64                                           |
+---------------------------+
@ndemouron ndemouron added the bug Something isn't working label Nov 16, 2022
@GonzoMG
Copy link

GonzoMG commented Nov 23, 2022

I'm currently getting the same error on the latest version. Is there a way to install a prior version?

@GonzoMG
Copy link

GonzoMG commented Nov 23, 2022

Not sure if this will fix your particular instance but I was able to get mine working properly once I did the following:
brew upgrade (during this postgres gets upgraded as well)
brew install steampipe
And because I'm a big chicken, installed my plugins one at a time.

And.... Happy happy joy joy!

Y'all have a great Thanksgiving!

@sshvetsov
Copy link

Been having the same problem after upgrading to 1.17.1. @ndemouron, huge thanks for describing the fix.

kaidaguerre pushed a commit that referenced this issue Nov 24, 2022
kaidaguerre pushed a commit that referenced this issue Nov 24, 2022
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
3 participants