Hi Dojo,
We have a question related to SLTaskbarUtility. Currently we are using the command line options of this tool to install multiple application packages unattended (one at a time). We are able to successfully install the packages, however we see the following error when installing SRM and PA application packages:
Failed to detect needsRestart for upgrade PA-1.2.2_CU2-20210623110000.dmapp: ICSharpCode.SharpZipLib.Zip.ZipException: Data descriptor signature not found
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.ReadDataDescriptor()
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.CompleteCloseEntry(Boolean testCrc)
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.BodyRead(Byte[] buffer, Int32 offset, Int32 count)
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.CloseEntry()
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry()
at Skyline.DataMiner.Net.Upgrade.UpgradeHelper.DetectWhetherUpgradeNeedsRestart(String filePath)
at Skyline.DataMiner.Net.Upgrade.AgentToUpgradeInfo.UploadUpgradeFile_Local()
Please could you let us know what is the reason of this issue and how we can be solved it?
Thanks
SLNet is trying to determine if DataMiner needs to restart after installing the application package. It looks like it's failing to read a file from the package because the signature is invalid or not found. Could this be because the SRM and PA packages were manually created/edited with a different ZIP library (not SharpZipLib)? How are the SRM and PA packages built?
If the authors of the SRM/PA package know in advance if a DataMiner restart is needed after installation, you can try to update the SRM/PA application packages to include an empty file in the root directory of the application package named 'RestartNeeded.txt' or 'NoRestartNeeded.txt'. This will tell SLNet that a restart is (or isn't) required, which may fix your issue.
Thanks for the information Jens!
I will create an internal task to further check your remarks with the teams responsible of these apps.