...
The "NetWorker Backup and Recover Server" service (NSRD) will not start.Oracle Java Runtime Environment (JRE) is installed and may have been recently upgraded.The NetWorker server's daemon.raw will contain the following error upon service startup: nwserver_hostname nsrctld NSR critical JAVA_HOME enrivonment variable might not be set correctly: Unable to execute java 'C:\Program Files\Java\jre1.8.0_121\bin\java.exe'. Ensure that JAVA_HOME is set to 64-bit JRE directory. Location: Linux: /nsr/logs/daemon.rawWindows: ..\Program Files\EMC NetWorker\nsr\logs\daemon.raw NetWorker: How to use nsr_render_log
The NetWorker server software check's for the required Java version on a host when starting the "NetWorker Backup and Recover Server" (nsrd) service. When the process does not detect the minimum required Java version on the host, the process will fail to start. This issue arises when Java was installed but has been removed, or the Java version was upgraded and now the JAVA_HOME system environment variable path does not match the current Java version.
Update the JAVA_HOME system environmental variable path to reflect the new Java version path. Confirm the Java version being used: CLI (Linux/Windows): Run the command java -versionExample: # java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) GUI (Windows): Open Control Panel-->Java-->Java Control Panel Opens-->Java-->View: Update the JAVA_HOME system environmental variable: Linux: a. If there are any NetWorker services running, stop them: nsr_shutdown b. Confirm the updated java installation path: find / -name jre [root@nwserver ~]# find / -name jre /etc/alternatives/jre /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre /usr/lib/jvm/jre /usr/lib/jvm-exports/jre Note: if multiple version paths are outputted, ensure that you use the active Java version's installation path. The active version will be outputted by the java -version commandc. Open the /nsr/authc/conf/installrc file using a text editing tool: vi /nsr/authc/conf/installrc d. This file should only contain the JAVA_HOME environmental variable, update the path to the updated Java jre path collected in the step 2. [root@nwserver ~]# vi /nsr/authc/conf/installrc JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre Note: Optionally, instead of specifying the current JAVA install path you could set the JAVA_HOME variable to JAVA_HOME=/usr/java/latest. Ensure that there is a soft link to the JAVA jre directory. If this is done you will only need to update the soft link when java is updated. [root@nwserver ~]# ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre /usr/java/latest [root@nwserver ~]# ls -l /usr/java/latest lrwxrwxrwx. 1 root root 64 Jun 3 16:58 /usr/java/latest -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre e. Start the NetWorker server services: /etc/init.d/networker start Windows: a. Log in to the target host with a user that has administrator privileges.b. If there are any running NetWorker services, stop them by running the following command: net stop nsrexecd /y c. Browse to Control Panel-->System-->Advanced System Settings.d. On the Advanced tab, click Environment Variables... e. In the System Variables section, click New.f. In the Variable name field, type JAVA_HOME.g. In the Variable value field, type the path to the Java directory. For example, C:\Program Files\Java\jre1.8.0_xx h. Click OK.i. Click OK to close the Environment Variables window, and then click OK to close the System Properties window. j. Reboot the NetWorker server for the system variable to take effect. The NetWorker server services should automatically start once the host has come back up: tasklist | findstr nsrnote: allow the system a few minutes to start all services and bring all the NetWorker databases online.