This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

after restart (host boot, jail start/stop) postgesql fails to start

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Knappe
experienced User
experienced User
Posts: 76
Joined: 08 May 2015 08:46
Status: Offline

after restart (host boot, jail start/stop) postgesql fails to start

Post by Knappe »

installed postgresql96-server in a new jail.

The start of postgresql inside the jail fails with the error message
sql postgres[3879]: [2-1] FATAL: could not create shared memory segment: Function not implemented
sql postgres[3879]: [2-2] DETAIL: Failed system call was shmget(key=5432001, size=48, 03600).
For error correction, the parameter "jail_sysvipc_allow="YES" must be specified on the host in the "/etc/sysctrl.conf beforehand (see here)
Created commands

Code: Select all

echo 'jail_sysvipc_allow="YES"' >> /etc/sysctl.conf
echo 'jail_sysvipc_allow="YES"' >> /etc/rc.conf
(both type=postinit) in the System / Advanced / Command Script Tab.
This is executed and placed correctly in the "/etc/sysctl.conf" and "/etc/rc.conf".

But that doesn´t work because postgresql inside the jail won´t start.

If i use

Code: Select all

jail -m -n sql allow.sysvipc=1
on the host, postgresql could executed without any problems.
But the command is only valid until the next start of the jail, so I couldn`t use it during boot on the host.

Any help is appreciated.

Knappe
experienced User
experienced User
Posts: 76
Joined: 08 May 2015 08:46
Status: Offline

Re: after restart (host boot, jail start/stop) postgesql fails to start

Post by Knappe »

.
.
.
is this forum still supported ?

Post Reply

Return to “Jails”