*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

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

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

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

#1

Post by Knappe » 08 Aug 2018 14:31

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
Starter
Starter
Posts: 53
Joined: 08 May 2015 08:46
Status: Offline

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

#2

Post by Knappe » 16 Aug 2018 12:31

.
.
.
is this forum still supported ?

Post Reply

Return to “Jails”