Unable to install NetVault Server 10x or 11x on a Linux system - Error: Problem running post-install step. Installation did not complete correctly. (4041799)
Unable to install NetVault Server 10x or 11x on a Linux system - Error: Problem running post-install step. Installation did not complete correctly.
说明
When installing NetVault Server 10x or newer the process ends with:
Error: Problem running post-install step. Installation did not complete correctly.
Error running /etc/init.d/netvault-pqsql start: pg_ctl: could not start server
Examining the install.log (located in /tmp) you may also see:
Executing su -s /bin/sh netvault-pgsql -c 'LD_LIBRARY_PATH="/usr/netvault/pgsql/lib":$LD_LIBRARY_PATH "/usr/netvault/pgsql/bin/pg_ctl" status -D "/usr/netvault/db/pgsql"' Script exit code: 3
Script output: pg_ctl: no server running
Script stderr: child process exited abnormally
Error running su -s /bin/sh netvault-pgsql -c 'LD_LIBRARY_PATH="/usr/netvault/pgsql/lib":$LD_LIBRARY_PATH "/usr/netvault/pgsql/bin/pg_ctl" status -D "/usr/netvault/db/pgsql"': child process exited abnormally [12:50:20] Starting PostgreSQL database server... Installing PostgreSQL: Starting service Executing /etc/init.d/netvault-pgsql start Script exit code: 1
原因
The postgresql server could not resolve localhost from the /etc/hosts file due to the file permissions. The permissions were rw_r_____ (640) which denied the netvault-pgsql user the read permission.
解决办法
Change the permission on the hosts file to rw_r__r__ (644).