OpsCenter Install/Upgrade "Permission denied" on a Linux/Unix Server even when "Run As Root"

OpsCenter Install/Upgrade "Permission denied" on a Linux/Unix Server even when "Run As Root"

Article: 100046249
Last Published: 2019-09-12
Ratings: 0 0
Product(s): NetBackup

Problem

OpsCenter upgrade fails with error: Veritas NetBackup OpsCenter database upgrade has failed for latest version

Error Message

Veritas NetBackup OpsCenter database upgrade has failed for latest version.Please contact Veritas NetBackup OpsCenter support for upgrading Veritas NetBackup OpsCenter

Cause

OpsCenter fails to install/upgrade with a "Permission denied ERROR", even though the source /var and /tmp has full permissions.

"nonexec" flag was set in /etc/fstab for /var/tmp and /tmp which was blocking executable to execute.

 

OpsCenter throws below error when upgrade is run on Linux/Unix:

The database upgrade is in progress. This may take some time based on the database size.

You can see the progress and current status in /var/tmp/installOpsCenterServer-RKNtv2/db/log/dbManager_<timestamp>_.log file.

Veritas NetBackup OpsCenter database upgrade has failed for latest version. Please contact Veritas NetBackup OpsCenter support for upgrading Veritas NetBackup OpsCenter

 

OpsCenter Install Logs:

13:20:23  exec LANG=C sh /var/symantec/OpsCenterTmp/predbupgrade.sh install 812 8200 2>&1

13:20:49  Entering : predbupgrade.sh install 812 8200

/var/symantec/OpsCenterTmp/predbupgrade.sh: line 22: /var/symantec/OpsCenterTmp/jre/bin/java: Permission denied

dbupgrade install - DB service is stopped

Stopping Veritas NetBackup OpsCenter Services

Stopping Veritas NetBackup OpsCenter WebServer Service

Stopping Veritas NetBackup OpsCenter Server Service

Stopping Veritas NetBackup OpsCenter Database Server Service

Failed to stop OpsCenter Database Server Service

Veritas NetBackup OpsCenter Database Server Service failed to stop

Stopping Veritas NetBackup OpsCenter Authentication Service

Veritas NetBackup OpsCenter Authentication is already stopped

/var/symantec/OpsCenterTmp/predbupgrade.sh: line 61: /var/symantec/OpsCenterTmp/jre/bin/java: Permission denied

/var/symantec/OpsCenterTmp/predbupgrade.sh: line 32: /var/symantec/OpsCenterTmp/jre/bin/java: Permission denied

dbupgrade install - Failed to stop DB service

 

[root@OpsCenter82 var]# ls -lrt

total 94

drwxr-xr-x.  2 root root  4096 Mar 10  2016 yp

drwxr-xr-x.  2 root root  4096 Mar 10  2016 preserve

drwxr-xr-x.  2 root root  4096 Mar 10  2016 nis

drwxr-xr-x.  2 root root  4096 Mar 10  2016 local

drwxr-xr-x.  2 root root  4096 Mar 10  2016 gopher

.

.

.

drwx------   3 root root  4096 Aug  8 15:22 VRTS

drwxrwxrwt   2 root root  4096 Aug  8 15:26 VRTSat_lhc

drwxr-xr-x   4 root root  4096 Aug  8 15:26 VRTSat

drwxr-xr-x   3 root root  4096 Aug  8 15:27 VRTSpbx

drwxr-xr-x. 13 root root  4096 Sep  1 03:06 log

drwxrwxrwx   4 root root  4096 Sep  5 14:46 symantec

drwxrwxrwt.  6 root root  2048 Sep  9 03:38 tmp

 

Solution

1.Remove noexec from the fstab line for /tmp and /var

2. Save the fstab

3. Reboot the machine so that /tmp and /var is remounted with noexec removed.

4. Complete the client install/upgrade

5. (Optional) Add noexec back to /tmp and /var and reboot the machine, if noexec is desired for security purposes.

 

Was this content helpful?