Ahsay Know Issue:
Cannot run program ifconfig: java.io.IOException: No such file or directory (backup jobs are failing on CentOS 7) (3175)
Product Version:
AhsayOBM: Pre-7.3.2.0
OS: CentOS 7 or above
Problem Description:
When performing a backup of any type on a CentOS 7 computer, the following messages are displayed:
# ./usr/local/obm/bin/RunBackupSet.sh Backupset_Name
Using APP_HOME: : /usr/local/obm
Using BACKUP_SET : Backupset_Name
Using BACKUP_TYPE : FILE
Using SETTING_HOME :
Using DELTA_MODE :
Using DEBUG_MODE : NO-DEBUG
[YYYY/MM/DD hh:mm:ss] Start [ Linux distribution (AhsaySupport), AhsayOBM x.x.x.x ]
java.io.IOException: Cannot run program "ifconfig" (in directory "/"): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.ahsay.obc.bv.a(Unknown Source)
at com.ahsay.obc.bv.a(Unknown Source)
at com.ahsay.obc.bv.a(Unknown Source)
at com.ahsay.obc.bv.a(Unknown Source)
at com.ahsay.afc.util.A.a(Unknown Source)
at com.ahsay.afc.util.ComputerInfo.genUniqueID(Unknown Source)
at com.ahsay.afc.util.ComputerInfo.getInstance(Unknown Source)
at com.ahsay.obc.core.bset.rpc.x.e(Unknown Source)
at com.ahsay.obc.core.bset.rpc.x.<init>(Unknown Source)
at com.ahsay.obc.kV.j(Unknown Source)
at com.ahsay.obc.kV.p(Unknown Source)
at com.ahsay.obc.kV.o(Unknown Source)
at com.ahsay.obc.kV.B(Unknown Source)
at com.ahsay.obc.kV.b(Unknown Source)
at com.ahsay.obc.kV.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
Cause:
Utilities such as ifconfig / netstat have been marked as deprecated for CentOS 7, and the 'net-tools' package is no longer part of the @core group so will not be installed by default.
Resolution:
To resolve the issue, enter the following command in terminal to install the net-tools package on the affected client computer:
>yum install net-tools
Comments
0 comments
Article is closed for comments.