Project

General

Profile

Bug #502

Can Not Create Shared Memory Segment in FreeNAS Jail

Added by Daniel Curtis over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Start date:
12/18/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I cam across a problem while setting up a PostgreSQL database server inside of a FreeNAS jail. The problem occurred after I installed the package and went to initialize the database.

  • I initialized the database with the following command:
    service postgresql initdb
    
    • However the process failed with the following error
      creating template1 database in /usr/local/pgsql/data/base/1 ... FATAL:  could not create shared memory segment: Function not implemented
      DETAIL:  Failed system call was shmget(key=1, size=48, 03600).
      child process exited with exit code 1
      initdb: removing data directory "/usr/local/pgsql/data" 
      
  • After searching around a bit I found that I needed to add the following sysctl value during the jail's creation:
    allow.sysvipc=true
    
    • Or from the shell, alternatively:
      warden set flags <jail_name> allow.sysvipc=true
      

Resources

#1

Updated by Daniel Curtis over 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis over 9 years ago

  • Status changed from Resolved to Closed
#3

Updated by Daniel Curtis about 9 years ago

  • Target version set to 5
#4

Updated by Daniel Curtis about 9 years ago

  • Category set to Network Attached Storage
  • Target version changed from 5 to FreeNAS 9.x
#5

Updated by Daniel Curtis about 9 years ago

  • Category changed from Network Attached Storage to Jails / Containers

Also available in: Atom PDF