Skip to content

Increase docker shared memory size #1896

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Conversation

TG1999
Copy link
Contributor

@TG1999 TG1999 commented Jun 6, 2025

https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device

Fixes: #1897

 ERROR:  could not resize shared memory segment "/PostgreSQL.638321836" to 16777216 bytes: No space left on device
db_1                        | 2025-06-06 08:41:21.323 GMT [120] STATEMENT:  SELECT DISTINCT "vulnerabilities_packagev2"."id", "vulnerabilities_packagev2"."type", "vulnerabilities_packagev2"."namespace", "vulnerabilities_packagev2"."name", "vulnerabilities_packagev2"."version", "vulnerabilities_packagev2"."qualifiers", "vulnerabilities_packagev2"."subpath", "vulnerabilities_packagev2"."package_url", "vulnerabilities_packagev2"."plain_package_url", "vulnerabilities_packagev2"."is_ghost", "vulnerabilities_packagev2"."risk_score", "vulnerabilities_packagev2"."version_rank", EXISTS(SELECT 1 AS "a" FROM "vulnerabilities_advisoryv2" U0 INNER JOIN "vulnerabilities_advisoryv2_affecting_packages" U1 ON (U0."id" = U1."advisoryv2_id") WHERE U1."packagev2_id" = ("vulnerabilities_packagev2"."id") LIMIT 1) AS "is_vulnerable" FROM "vulnerabilities_packagev2" WHERE ("vulnerabilities_packagev2"."name" = '11xiaoli' AND "vulnerabilities_packagev2"."namespace" = '' AND "vulnerabilities_packagev2"."qualifiers" = '' AND "vulnerabilities_packagev2"."subpath" = '' AND "vulnerabilities_packagev2"."type" = 'npm' AND NOT EXISTS(SELECT 1 AS "a" FROM "vulnerabilities_advisoryv2" U0 INNER JOIN "vulnerabilities_advisoryv2_affecting_packages" U1 ON (U0."id" = U1."advisoryv2_id") WHERE U1."packagev2_id" = ("vulnerabilities_packagev2"."id") LIMIT 1) AND NOT "vulnerabilities_packagev2"."is_ghost" AND "vulnerabilities_packagev2"."version_rank" > 2) LIMIT 21

Getting this in logs

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999 TG1999 force-pushed the increase-docker-shared-memory-size branch from 14837db to df61a07 Compare June 6, 2025 08:48
@TG1999 TG1999 merged commit 702575b into main Jun 6, 2025
10 checks passed
@TG1999 TG1999 deleted the increase-docker-shared-memory-size branch June 6, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgres error: could not resize shared memory segment
1 participant