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

Postgresql out of memory error when dropping chado database #1

Open
laceysanderson opened this issue Oct 19, 2022 · 1 comment
Open
Labels
good first issue Good for newcomers TOPIC: Developer Hint Documentation of troubleshooting and small tips for developers.

Comments

@laceysanderson
Copy link
Member

Originally contributed by @risharde:

While testing on this specific environment, I encountered this unexpected error which does not occur with the Docker version that was created by @laceysanderson

Environmental details:
Virtualization: Oracle Virtualbox
OS: CENTOS 7 (64-bit)
MEM ALLOCATION: 2 GB
Drupal: 9.1.8
Tripal: 4.x
Branch: 4-tv4-tripal_importer
Postgresql: 10
PHP: 7.2

Error output:

Tripal Job Launcher
Running as user 'admin'
-------------------
2021-05-17 16:50:35: Job ID 44.
2021-05-17 16:50:35: Calling: tripal_chado_drop_schema(chado)
 [error]  Message: Job execution failed: SQLSTATE[53200]: Out of memory: 7 ERROR:  out of shared
memory
HINT:  You might need to increase max_locks_per_transaction.: drop schema
chado cascade; Array
(
)

Resolution:
Edit the postgresql.conf file within the Postgresql data directory and adjust max_locks_per_transaction
The current max_locks_per_transaction (when defaulted / commented is 10)
Uncommenting / Allowing max_locks_per_transaction = 64 within the config file suffered same error
Adjusting max_locks_per_transaction = 128 resolved this issue.

NOTE: YOU MUST RESTART POSTGRESQL AFTER YOU HAVE MADE THIS CHANGE.

@laceysanderson
Copy link
Member Author

It would definitely be good to have a troubleshooting section to the docs with tips like these! This tip is applicable to all environments not just the specific one mentioned by @risharde

@laceysanderson laceysanderson added good first issue Good for newcomers TOPIC: Developer Hint Documentation of troubleshooting and small tips for developers. labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers TOPIC: Developer Hint Documentation of troubleshooting and small tips for developers.
Projects
None yet
Development

No branches or pull requests

1 participant