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 #113

Closed
risharde opened this issue May 17, 2021 · 1 comment
Closed

Postgresql out of memory error when dropping chado database #113

risharde opened this issue May 17, 2021 · 1 comment

Comments

@risharde
Copy link
Contributor

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

Closing this issue as documentation has moved to the tripal_doc repository. See tripal/tripal_doc#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants