Skip to content

FIX: creating template1 database in /usr/local/pgsql/data/base/1 … FATAL: could not create shared memory segment: Function not implemented

April 13, 2016

When starting initdb on postgresql into FreeBSD jail , with normal (default) config the error message appears and exits the init proccess:

The error message: creating template1 database in /usr/local/pgsql/data/base/1 … FATAL:  could not create shared memory segment: Function not implemented

This is because of sysvipc kernel security.

To Fix this, in the host machines edit two files:

  1. Append to /etc/rc.conf:
    jail_sysvipc_allow=”YES”
  2. Append to /etc/sysctl.conf:
    security.jail.sysvipc_allowed=1
Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: