Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 9807

Re : Bizarre Solutions Search Results

$
0
0
Trying this, but something is wrong.  That path you give is where I run the backupdata.bat and updatemanager.bat from, excepting we have it installed on E: instead of C:.  But when I try to run the reindexdata.bat, it says,"The system cannot find the path specified." and then just ends.  No indication of what path it is looking for and not finding.  If I enter a fully-qualified path to run it, it still gives the same message.  Triple-checking that the service is stopped, it isn't running.

I reran it after removing the "@echo off" statement at the beginning and it looks like possibly something is getting confused, although it very well could be me as I don't know much about batch scripting or Java and what all the implications are.

Through this file and setcommonenv.bat, it's setting this value:
JAVA=.\..\jre\bin\java
Relative to where the reindexData.bat file is, this should translate to "E:\ManageEngine\ServiceDesk\jre\bin\java," which is a valid location. 

However, reindexdata.bat also moves itself up a level from the \bin directory (cd ..) and sets a %SERVER_HOME% variable to be "." So it looks like everything should be running relative to this path:
E:\ManageEngine\ServiceDesk

Running the with @echo off removed gives a clearer indication of all this. 

After setting more values, by the time it gets down to running this command:
%JAVA%  %JAVA_OPTS% -Xms128m -Xmx512m -cp %CLASS_PATH% -Dtier-type=BE -Dtier-id=BE1 com.manageengine.servicedesk.lucene.tools.ReIndexData %1

It interpolates everything in what looks like 2 different locations.  The output is:
E:\ManageEngine\ServiceDesk> .\..\jre\bin\java -Ddb.home=.\..\mysql (...more flags...) -cp .\server\default\lib\AdventNetPersistence.jar;.\server\default\deploy\jboss-jca.sar; (...and so on...).

It looks like it's trying to execute the Java command by going up to E:\ManageEngine\jre\bin\java, which is an invalid path.  Either that, or maybe the paths to the ".\server\default\lib..." files are not correctly located.  Since the \bin, \jre, and \server folders are all on the same level within the \ServiceDesk folder, I would expect them both to be given the same relative path info, or perhaps the \server folder would be given relative to the \java folder, but this is where my inexperience might be showing and maybe something is going on not seen.

As always, any help clarifying this would be appreciated.  The issue still persists, although only technicians have noticed it.  I guess the employees aren't actually searching for their own solutions.

Viewing all articles
Browse latest Browse all 9807

Trending Articles