Running PostgreSQL in iocage-managed jail on FreeBSD 10.2-RELEASE
📅 Aug 22, 2015
⌛ 1 minute
Got the dreaded could not create shared memory segment error again after upgrading my jail (now managed by iocage, but I had the same issue using ezjail previously) with PostgreSQL to FreeBSD 10.2-RELEASE. Here's how I fixed it this time:
iocage set allow_sysvipc=1 JAILNAME iocage stop JAILNAME iocage start JAILNAME
iocage restart JAILNAME did not work, a stop and start was necessary for me. After that, PostgreSQL started without problems.
The full error message this time - using the latest release of PostgreSQL and FreeBSD - was:
FATAL: could not create shared memory segment: Function not implemented DETAIL: Failed system call was shmget(key=5432001, size=48, 03600). pg_ctl: could not start server Examine the log output.