NetWorker: nmc_config mislykkes med "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"

Summary: NetWorker NMC-konfigurasjonsskriptet nmc_config mislykkes med "/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

Følgende beskriver problemet:
  • Du installerer NMC-serverprogramvaren på en Linux-server
  • Etter installasjonen /opt/lgtonmc/bin/nmc_config mislykkes med FEIL: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!

Full utdata:
# /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

Dette problemet kan oppstå når du installerer NMC-serverprogramvaren på et system uten eksisterende NMC-database (/nsr/nmc/nmcdb). Postgres-brukeren som ble opprettet under nmc_config-skriptet, initialiserer ikke NMC-databasen på grunn av feil tillatelser angitt i OS/tmp-katalogen. Denne katalogen skal ha full lesing, skriving og utfør tillatelser for alle brukere. Postgres-brukeren oppretter en .lock-fil under /tmp. Hvis den ikke gjør dette, vil ikke nmcdb initialiseres.

Resolution

1. Logg på NetWorker-serveren som rot
2, a. Bekreft at /tmp har full lesing, skriving, utfør tilgang for alle brukere:
ls -la/| grep /tmp
 
Eksempel:
# ls -la / | grep tmp
drwxrwxrwt.  51 rotrot 8192 14. nov 09:41 tmp
 
MERK: Verdien ovenfor som er uthevet, indikerer full lesing, skriving, utfør tillatelser for alle brukere. Hvis du har andre tillatelsesinnstillinger, må dette endres.

2, b. Hvis tillatelsene er feil, må du korrigere dem ved å kjøre:
chmod 777 /tmp

Eksempel:
[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
3. Gi nytt navn til eksisterende /nsr/nmc/nmcdb:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
 
MERK: Hvis nmcdb får nytt navn, vil du ikke kunne hente NMC-rapporter fra før du endrer navn. NMC Role-konfigurasjoner for ekstern godkjenning vil også ha blitt fjernet. Hvis du vil gjenopprette nmcdb, kan du se NetWorker: Slik gjenoppretter du NMC-databasen. Dette kan gjøres når prosessen i denne kb-en er fullført.

4. Kjør nmc_config på nytt: 
[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.
5. Bekreft at GST-tjenesten har startet:
systemctl status gst
 
6. Hvis NMC-tjenesten ikke kjører, starter du den med:
systemctl start gst
 
6. Overvåk /opt/lgtonmc/logs/gstd.raw for oppstart:

Additional Information

Affected Products

NetWorker

Products

NetWorker, NetWorker Management Console
Article 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.