Insight Discovery not accessible or not scanning due to "Fatal error by loading credential list"

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible


Problem

Unable to access the Insight Discovery tool or the service is not running anymore. Similar errors like the following can be seen in the terminal when attempting to run it or in <Discovery_home>/logs/<Instance_name>_<date>_<time>_discovery/<date>-<time>_discovery-0000000000.log

10/28/2021 10:29:20 AM : Fatal error by loading credential list
10/28/2021 10:29:20 AM : Exceptions:
10/28/2021 10:29:20 AM : The input stream is not a valid binary format. The starting contents (in bytes) are: A3-20-B4-00-3F-DD-F7-79-4E-33-24-4B-29-14-CA-AD-97 ...
   at Insight.Discovery.Tools.ObjectSerializer.DeserializeObject[T](String file, SerializeType sType) in C:\SourceCode\discovery_repo\DiscoTools\ObjectSerializer.cs:line 125
   at Insight.Discovery.InfoClasses.CredentialList.Load(String password, String appPath) in C:\SourceCode\discovery_repo\InfoClasses\CredentialList.cs:line 119
10/28/2021 10:29:20 AM : Fatal error by loading credential list
10/28/2021 10:29:20 AM : Exceptions:
10/28/2021 10:29:20 AM : Binary stream '145' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.
   at Insight.Discovery.Tools.ObjectSerializer.DeserializeObject[T](String file, SerializeType sType) in C:\SourceCode\discovery_repo\DiscoTools\ObjectSerializer.cs:line 125
   at Insight.Discovery.InfoClasses.CredentialList.Load(String password, String appPath) in C:\SourceCode\discovery_repo\InfoClasses\CredentialList.cs:line 119
10/28/2021 10:29:20 AM : Could not load credentials, execution aborted.
10/28/2021 10:29:20 AM : Error loading credentials.known.
10/28/2021 10:29:20 AM : Exceptions:
10/28/2021 10:29:20 AM : Attempting to deserialize an empty stream.
   at Insight.Discovery.Tools.ObjectSerializer.DeserializeObject[T](String file, SerializeType sType) in c:\SourceCode\discovery_repo\DiscoTools\ObjectSerializer.cs:line 125
   at Insight.Discovery.InfoClasses.AssetHistoryList.Load(String appPath) in c:\SourceCode\discovery_repo\InfoClasses\AssetHistoryList.cs:line 155


Cause

The credential list which is need for scanning or to access the tool is not loadable.

Workaround

  1. Move the file called credentialstore away from the Discovery folder.

  2. Access the Discovery tool again and recreate the credentials.

    • If you have a backup of the credentialstore file that used to work, you could restore it to the Discovery folder before accessing the Discovery tool again.


DescriptionInsight Discovery not accessible or not scanning due to "Fatal error by loading credential list"
ProductInsight Discovery

Last modified on Jan 6, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.