I was working on trying to installation my Sentinel location from the
default to a custom location. I backed up everything from the original
install and went through the process of uninstalling and reinstalling
7.3 for the time being. Once I have everything running and the Web UI
was working, I was set to restore the backup, however errors started
coming up during the restore that was something like this:

df: `/var/opt/novell/sentinel/3rdparty/mongodb/data': No such file or
directory
df: no file systems processed
/idm/opt/novell/sentinel/bin/si_db.sh: line 170: * 5 / 100 : syntax
error: operand expected (error token is "* 5 / 100 ")
Feb 26, 2016 9:04:22 AM com.mongodb.DBTCPConnector initDirectConnection
WARNING: Exception executing isMaster command on /127.0.0.1:27017
java.io.IOException: couldn't connect to [/127.0.0.1:27017]
bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.go(DBPort.java:88)
at com.mongodb.DBPort.findOne(DBPort.java:143)
at com.mongodb.DBPort.runCommand(DBPort.java:148)
at
com.mongodb.DBTCPConnector.initDirectConnection(DB TCPConnector.java:548)
at
com.mongodb.DBTCPConnector.isMongosConnection(DBTC PConnector.java:372)
at com.mongodb.Mongo.isMongosConnection(Mongo.java:62 7)
at com.mongodb.DB.wrapCommand(DB.java:294)
at com.mongodb.DB.command(DB.java:272)
at com.mongodb.DB.command(DB.java:256)
at com.mongodb.DB.command(DB.java:313)
at com.mongodb.DB.command(DB.java:211)
at
com.mongodb.DB$AuthenticationCredentials.authentic ate(DB.java:870)
at com.mongodb.DB.authenticateCommandHelper(DB.java:6 41)
at com.mongodb.DB.authenticate(DB.java:601)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.waitForDatabaseReady(MongoReconfig.ja va:401)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:224 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:214 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.reconfigReplicaSet(MongoReconfig.java :582)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.main(MongoReconfig.java:828)

Feb 26, 2016 9:04:22 AM com.mongodb.DBTCPConnector initDirectConnection
WARNING: Exception executing isMaster command on /127.0.0.1:27017
java.io.IOException: couldn't connect to [/127.0.0.1:27017]
bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.go(DBPort.java:88)
at com.mongodb.DBPort.findOne(DBPort.java:143)
at com.mongodb.DBPort.runCommand(DBPort.java:148)
at
com.mongodb.DBTCPConnector.initDirectConnection(DB TCPConnector.java:548)
at
com.mongodb.DBTCPConnector.checkMaster(DBTCPConnec tor.java:527)
at
com.mongodb.DBTCPConnector.innerCall(DBTCPConnecto r.java:277)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.jav a:257)
at
com.mongodb.DBApiLayer$MyCollection.__find(DBApiLa yer.java:310)
at com.mongodb.DB.command(DB.java:274)
at com.mongodb.DB.command(DB.java:256)
at com.mongodb.DB.command(DB.java:313)
at com.mongodb.DB.command(DB.java:211)
at
com.mongodb.DB$AuthenticationCredentials.authentic ate(DB.java:870)
at com.mongodb.DB.authenticateCommandHelper(DB.java:6 41)
at com.mongodb.DB.authenticate(DB.java:601)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.waitForDatabaseReady(MongoReconfig.ja va:401)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:224 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:214 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.reconfigReplicaSet(MongoReconfig.java :582)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.main(MongoReconfig.java:828)

Feb 26, 2016 9:04:22 AM com.mongodb.DBPortPool gotError
WARNING: emptying DBPortPool to /127.0.0.1:27017 b/c of error
java.io.IOException: couldn't connect to [/127.0.0.1:27017]
bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.call(DBPort.java:74)
at
com.mongodb.DBTCPConnector.innerCall(DBTCPConnecto r.java:286)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.jav a:257)
at
com.mongodb.DBApiLayer$MyCollection.__find(DBApiLa yer.java:310)
at com.mongodb.DB.command(DB.java:274)
at com.mongodb.DB.command(DB.java:256)
at com.mongodb.DB.command(DB.java:313)
at com.mongodb.DB.command(DB.java:211)
at
com.mongodb.DB$AuthenticationCredentials.authentic ate(DB.java:870)
at com.mongodb.DB.authenticateCommandHelper(DB.java:6 41)
at com.mongodb.DB.authenticate(DB.java:601)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.waitForDatabaseReady(MongoReconfig.ja va:401)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:224 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.getMongoClient(MongoReconfig.java:214 )
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.reconfigReplicaSet(MongoReconfig.java :582)
at
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig.main(MongoReconfig.java:828)

Feb 26, 2016 9:04:22 AM
com.novell.sentinel.analytics.store.mongo.config.M ongoReconfig
getMongoClient
SEVERE: com.mongodb.MongoException$Network: can't call something :
/127.0.0.1:27017/alerts

Now, during the restoration I allowed the system to restore itself even
with those errors. Once it was done, I setup to check if everything is
in place. Everything was working fine. Today, I was trying to stop and
start the server to chown the directories under novell instead of root.
Used the command service sentinel stop and start to have sentinel
running, when it was starting a similar error came up when starting
Sentinel. Again, I allowed Sentinel to go through its course and it was
working fine the WEB UI comes up and everything.

The original installation was going through default, but how our server
was setup was having one custom location with 1TB of space for saving
events. So, the original installation was a band-aid configuration where
the /var/opt/novell/sentinel folder was being moved to our custom
installation /idm and was laid out like this: /idm/novell/sentinel. We
used a symbolic link to allow the sentinel service to see the 1TB of
space. Understandably, Sentinel is not kind to symbolic links that in
this solution was working but it is difficult to handle how the sentinel
was behaving because of this configuration. Now, it is in a custom
location where all of the folder /opt - /etc - /var are in one location
and it much easier to handle.

What I want to know is does this error affect the installation it is
going now? How can I fix the error similar above? I want to know if the
backup is trying to find a location that does not exist anymore, or was
there errors during the backup phase that this came up? I was thinking
there could be a config file I can modify to fix the issue, but I may
not know where to look. By the looks of the error it seems to be a
script issue, or the backup is trying to find the original location.


--
dominique122
------------------------------------------------------------------------
dominique122's Profile: https://forums.netiq.com/member.php?userid=10786
View this thread: https://forums.netiq.com/showthread.php?t=55443