When inserting a word in mssql with trailing space like "service desk", the word is inserted as it is. However, when inserting the same word in mysql, the word "service desk " is trimmed as "servicedesk".
Also, non English characters (characters with dot / double dot on top of words) might be taken differently across databases. Hence inserting those words could also cause this issue.
At times while restoring data duplicate entry error may occur and the restore process is stopped. The error contains the name of the table which has the duplicate entry i.e., Table name = word occurrences. This table has to be ignored while restoring the data.
Please wait ! Restoring in Progress...................
0-----------------------50------------------------100(%)
============QUERY = INSERT INTO ComponentDefinition (COMPONENTID, COMPONENTNAME, MANUFACTURERNAME, COMPONENTTYPEID, PARTNO, COMMENTS) VALUESnull
java.sql.BatchUpdateException: null, message from server: "Duplicate entry 'SATELLITE A100' for key 2"
at com.mysql.jdbc.Statement.executeBatch(Statement.java:1057)
at com.adventnet.servicedesk.tools.RestoreSDBackup.restoreTableData(RestoreSDBackup.java:404)
Step 3: On opening the restoredata.bat file, edit the below entry
%JAVA% %JAVA_OPTS% -Xms128m -Xmx512m -cp %CLASS_PATH% com.adventnet.servicedesk.tools.RestoreDialog %1 %2 to %JAVA% %JAVA_OPTS% -Xms128m -Xmx512m -cp %CLASS_PATH% -Dsdp.restore.error.ignoretables=Errortable name com.adventnet.servicedesk.tools.RestoreDialog %1 %2
NOTE: Replace Error table name with the table name with the duplicate entry (ie) in our case the table name = wordoccurrences
Example:
%JAVA% %JAVA_OPTS% -Xms128m -Xmx512m -cp %CLASS_PATH% -Dsdp.restore.error.ignoretables=wordoccurrences com.adventnet.servicedesk.tools.RestoreDialog %1 %2
The ServiceDesk Plus database file namely ibdata file would have got corrupted.
While taking backup Connection Reset or Communication link failure error while taking the backup.
Try performing a backup again.
Note: You will not be able to start ServiceDesk Plus when you have appended this keyword to Startdb.bat script. After performing the backup remove the entry from the file.
Zip the mysql folder under C:\AdventNet\ME\ServiceDesk and upload to us.
When Backup Scheduling is enabled in ServiceDesk Plus under Admin -> Backup Scheduling -> Edit Scheduling, and at the specified time if the application is unable to perform the backup for various reasons, an exception is thrown and this exception is send as an email configured under Backup Scheduling.
The mail sent will look like this:
Dear Admin,
ServiceDesk Plus database seems to be corrupted, So please contact your database Administrator [OR]
ServiceDesk support for further assistance to recover your data forward this mail and support file -> support tab to support@servicedeskplus.com
java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(Unknown Source) at com.adventnet.servicedesk.tools.SDBackUp.createBuildInfoXml(SDBackUp.java:838) at com.adventnet.servicedesk.tools.SDBackUp.initBackup(SDBackUp.java:174) at com.adventnet.servicedesk.tools.SDBackUp.process(SDBackUp.java:77) at com.adventnet.servicedesk.setup.task.ScheduledBackupTask.executeTask(ScheduledBackupTa
If the server crashed on received this email, contact your DBA to update the following sql query update Task_Input SET OPERATIONAL_STATUS = 4 where SCHEDULE_ID = (select SCHEDULE_ID from schedule where SCHEDULE_NAME = 'BackupSchedule')
The above sql query will stop your backup scheduling.
NOTE: In very rare cases the server may get crashed and in all the cases if you study first 2 lines of the Error Trace on the email, you yourself will be able to troubleshoot the error.
Below are some of the most common Error traces listed along with the solutions.
java.io.IOException: The system cannot find the path specified at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(Unknown Source) at com.adventnet.servicedesk.tools.SDBackUp.createBuildInfoXml(SDBackUp.java:838) at com.adventnet.servicedesk.tools.SDBackUp.initBackup(SDBackUp.java:174) at........
Under Admin -> Backup Scheduling -> Edit Scheduling, the location mentioned for the backup maybe invalid.
Make sure you have mentioned the correct location for the backup.
java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(Unknown Source) at com.adventnet.servicedesk.tools.SDBackUp.createBuildInfoXml(SDBackUp.java:838) at com.adventnet.servicedesk.tools.SDBackUp.initBackup(SDBackUp.java:174) at........ java.io.FileNotFoundException: C:\AdventNet\ME\ServiceDesk\backup\backup_info.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at com.adventnet.servicedesk.tools.SDBackUp.addToZip(SDBackUp.java:421) at com.adventnet.servicedesk.tools.SDBackUp.endBackup(SDBackUp.java:298) at..........
Check if the folder name mentioned in location under Admin -> Backup Scheduling -> Edit Scheduling is like 'folder name' i.e. name with space (use the folder name without any space). Also, if this folder is shared, make sure the folder have all the read and write permissions.
java.io.IOException: There is not enough space on the disk at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(Unknown Source) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source) at.........
The location mentioned under Admin -> Backup Scheduling -> Edit Scheduling may not have enough disk space.
Make sure the disk have enough disk space. As of now ServiceDesk Plus does not provide an automated way of deleting the older backup so you can retain the last 5 to 10 backups and delete the rest manually.
java.sql.SQLException: Login failed for user 'administrator'. Reason: The password of the account has expired. at
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781) at ........
The error occurs only in installation using MSSQL database. The password for the account 'administrator' in the SQL server would have got expired.
Configure a new password from the installation folders Adventnet\ME\ServiceDesk\bin and run the script Changedbserver.bat to change the password.
NOTE: You will find the application connected to the database because of an existing open connection to the SQL Server. But while restarting ServiceDesk Plus with an expired password, you will be unable to start the application.
java.lang.Exception: Unable to get the data from [aaaaccadminprofile] table at com.adventnet.servicedesk.tools.SDBackUp.dumpTable(SDBackUp.java:492) at com.adventnet.servicedesk.tools.SDBackUp.dumpTable(SDBackUp.java:511) at......... java.lang.Exception: Unable to get the data from [acboxconfig] table at com.adventnet.servicedesk.tools.SDBackUp.dumpTable(SDBackUp.java:492) at com.adventnet.servicedesk.tools.SDBackUp.startBackup(SDBackUp.java:240) at......
This error occurs when ServiceDesk Plus is configured using MSSQL database and the database is set with case sensitive mode in the SQL server.
Change the 'COLLATION' in the MSSQL server for the database for ServiceDesk Plus as CASE-INSENSITIVE. You can use the following query to update the same in MSSQL on the query editor:
ALTER DATABASE MyDatabase COLLATE SQL_Latin1_General_CP1_CI_AS;
NOTE: 'MyDatabase' in the query you have to replace with the database name. In most cases it is be 'servicedesk'.
java.io.IOException: The device is not ready at java.io.WinNTFileSystem.createFileExclusively(Native Method at java.io.File.createNewFile (Unknown Source) at com.adventnet.servicedesk.tools.SDBackUp.createBuildInfoXml(SDBackUp.java:838) at .....
The error occurs
When the location mentioned under Admin -> Backup Scheduling -> Edit Scheduling is being used by another application for a similar kind of backup or may be for some other purpose at the time scheduled for the backup to run in ServiceDesk Plus. The folder gets locked up such that ServiceDesk Plus will not be able to access it.
Please make sure you configure the location which is not used by any other application.
java.sql.SQLException: No operations allowed after connection closed. Connection was closed due to the following exception: ** BEGIN NESTED EXCEPTION **
java.sql.SQLException MESSAGE: Communication link failure: java.net.SocketException, underlying cause: Software caused
connection abort: recv failed ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Software caused connection abort: recv failed STACKTRACE:
java.net.SocketException: Software caused......
The error occurs with installations configured using MSSQL database. While the scheduled backup is being performed, due to some network issue if the connection between the ServiceDesk Plus and MSSQL server is closed, the backup process stops and ServiceDesk Plus triggers an error email.
Try running a manual backup on executing backupdata.bat script under Adventnet\ME\ServiceDesk\bin and if you are able to take a complete backup, you can discard the error you received. So the next time a scheduled backup runs, it should complete without any issues.
NOTE: When the application looses connection with MSSQL database, it will retry automatically to connect back to MSSQL. But the scheduled backup process will not retry and hence once a connection is closed the backup process will be stopped and you will receive an error mail.
java.io.IOException: The specified network name is no longer available at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(Unknown Source) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source) at......
This error usually occurs when the location field mentioned under Admin -> Backup Scheduling -> Edit Scheduling is on a network drive, and that drive is unreachable from the server (ServiceDesk Plus) at that particular time when scheduled backup is suppose to run.
Make sure the path mentioned in the location field is correct and reachable from the ServiceDesk Plus server. Also, make sure the network folder has full read and write permission and path is specified with a format as below: \\machine_name\drive$\folder_name
Off late all the upgrade related issue is handled in our environment. We recommend you to revert to the old build and send us the data for further analysis.
Instruction to revert to the old build.
Go to [ServiceDesk Plus-Home]\bin directory and execute restoredata.bat. Choose the backup file while prompted.
Example:
cmd> [ServiceDesk Plus Home]\bin
cmd> restoreData.bat
And locate the backup file.
updatemanager.log under Servicedesk[home]/server/default/log.