PDA

View Full Version : PostgreSQL on NetHunter 3 Won't Start



kill_chain
2016-03-22, 21:49
I am hoping someone might be able to point me in the right direction with this:

I have installed NetHunter on my Nexus 9 (v). I've actually been using it for a few weeks now without issue until I noticed that I can't start up PostgreSQL. Everything else seems to work fine except that service.

I try:


service postgresql start

And get back:


[....] Starting PostgreSQL 9.4 database server: main[....] The PostgreSQL server failed to start.
Please check the log output: 2016-03-22 21:41:54 UTC [3019-1] FATAL: could not create shared memory
segment: Function not implemented 2016-03-22 21:41:54 UTC [FAIL-2] DETAIL: Failed system call
was shmget(key=5432001, seize=40, 03600). ... failed!

Googling around I found a solution for a simlilar problem was to adjust my max shared memory (shmmax) settings, but that didn't fix my problem.

Any ideas?

Thank you

kill_chain
2016-03-30, 19:30
Oh hey kill_chain, let me Google that for you (http://lmgtfy.com/?q=kali+segment%3A+Function+not+implemented). Derp.

The Problem:
From the first two Google results it looks like this is probably an issue with the kernel being flashed. Sure enough I checked Settings > System > About tablet and it listed the Google kernel under the kernel version. What happened was even though Kali seemed to install properly the kernel did not get flashed.

The Solution:
The fix is to go to the NetHunter builds here: https://idlekernel.com/nethunter/nightly/. Go into the latest version, then into kernel-only. Next, download the kernel and use TWRP to flash it.

PostgreSQL now starts without issue.