NetWorker: nmc_config fails with "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed"
Summary: The NetWorker NMC configuration script nmc_config fails with "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
The following characterizes the issue:
- You are installing the NetWorker Management Console (NMC) server software on a Linux server
- The post installation
/opt/lgtonmc/bin/nmc_configfails with:
ERROR: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!
Full output:
# /opt/lgtonmc/bin/nmc_config
NetWorker services on this host are not running. Do you want to start them now [y]?
For optimum security, the NMC server must run the embedded PostgreSQL database server as a non root user. Specify a local user name that will start the database server.
If you specify a user that does not exist, the configuration process will provide you with
the option to create the user account.
Specify the user for the database server [postgres]:
Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]:
Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]?
Specify the host name of the NetWorker Authentication Service host [nw_server_hostname]:
Start the NMC server daemons at end of the configuration [y]?
Creating the installation log in /opt/lgtonmc/logs/install.log.
Performing initialization. Please wait...
ERROR: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!
Cause
This issue can appear when installing the NMC server software on a system with no existing NMC database (/nsr/nmc/nmcdb). The postgres user created during the nmc_config script fails to initialize the NMC database because of incorrect permissions set on the OS /tmp directory. This directory should have full read, write, and execute permissions for all users. The postgres user creates a lock file under /tmp, if it fails to do this, the nmcdb fails to initialize.
Resolution
- Log in to the NetWorker server as root
- Confirm that
/tmphas full read, write, execute access for all users:
ls -la / | grep /tmp
# ls -la / | grep tmp drwxrwxrwt. 51 root root 8192 Nov 14 09:41 tmp
NOTE: the above highlighted value indicates full read, write, execute permissions for all users. Any other permissions setting can result in failures.
- If the permissions are incorrect, correct them by running:
chmod 777 /tmp
Example:
[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwx------. 51 root root 8192 Nov 16 09:18 tmp
[root@nmcserver linux_x86_64]# chmod 777 /tmp
[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwxrwxrwx. 51 root root 8192 Nov 16 09:18 tmp
- Rename the existing /nsr/nmc/nmcdb:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
NOTE: If the
nmcdb is renamed you cannot pull NMC reports from prior to renaming. NMC Role configurations and NMC Reports are removed. To recover the nmcdb see NetWorker: How to Recover the NMC database?. This can be done once the process in this KB has been completed.
- Rerun
nmc_config:
[root@nmcserver linux_x86_64]# /opt/lgtonmc/bin/nmc_config NOTE ==== Install has detected the configuration file of a previous lgtonmc package. Install will attempt to read the configuration parameters in this file and present them as default values where appropriate. Please modify any value that is incorrect or needs to be changed. For optimum security, the NMC server must run the embedded PostgreSQL database server as a non root user. Specify a local user name that will start the database server. If you specify a user that does not exist, the configuration process will provide you with the option to create the user account. Specify the user for the database server [postgres]: Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]: Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]? Specify the host name of the NetWorker Authentication Service host [nmcserver.lab.emc.com]: Start the NMC server daemons at end of the configuration [y]? Creating the installation log in /opt/lgtonmc/logs/install.log. Performing initialization. Please wait... done. The installation completed successfully.
- Confirm that the NMC server service has started:
systemctl status gst
- If the NMC service is not running, start it with:
systemctl start gst
- Monitor the /opt/lgtonmc/logs/gstd.raw for startup:
Additional Information
Affected Products
NetWorkerProducts
NetWorker, NetWorker Management ConsoleArticle Properties
Article Number: 000049077
Article Type: Solution
Last Modified: 24 Jun 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.