yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
493 stars 90 forks source link

Mac OS "No space left on device" on local tests #157

Open mdavydau opened 5 years ago

mdavydau commented 5 years ago

Get FATAL on local tests.

FATAL:  could not create shared memory segment: No space left on device

DETAIL:  Failed system call was shmget(key=1, size=56, 03600).

HINT:  This error does *not* mean that you have run out of disk space.  It occurs either if all available shared memory IDs have been taken, in which case you need to raise the SHMMNI parameter in your kernel, or because the system's overall limit for shared memory has been reached.

    The PostgreSQL documentation contains more information about shared memory configuration.

child process exited with exit code 1
java 11
spring boot 2.1.3.RELEASE
        <dependency>
            <groupId>ru.yandex.qatools.embed</groupId>
            <artifactId>postgresql-embedded</artifactId>
            <version>${postgresql-embedded.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>de.flapdoodle.embed</groupId>
                    <artifactId>de.flapdoodle.embed.process</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>de.flapdoodle.embed</groupId>
            <artifactId>de.flapdoodle.embed.process</artifactId>
            <version>2.0.5</version>
        </dependency>

Quick Fix:

Stop local postgres and run tests – issue disappears.