Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Maven connector is unhealthy - issue with Lucene



  • Here are the full details of the issue we are having with the Maven connector. Is this a FIPS issue? Servers are probably hardened more than most where I work, but this was not a problem until we upgraded to 5.1.7.

    Message

    The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.

    Details

    System.TypeInitializationException: The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception. ---> System.SystemException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
    at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
    at System.Security.Cryptography.MD5.Create()
    at Lucene.Net.Store.FSDirectory..cctor() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
    at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
    at System.Security.Cryptography.MD5.Create()
    at Lucene.Net.Store.FSDirectory..cctor()
    --- End of inner exception stack trace ---
    at Lucene.Net.Store.FSDirectory..cctor()
    --- End of inner exception stack trace ---
    at Inedo.ProGet.Feeds.Maven.MavenConnector.Search(String searchTerm)
    at Inedo.ProGet.Feeds.Maven.MavenFeed.Search(String searchTerm)
    at Inedo.ProGet.WebApplication.UnifiedFeedBrowsing.Feeds.MavenFeedDataFactory.GetPackagesAsync(Feed feed, String searchTerm, Int32 count)
    at Inedo.ProGet.WebApplication.Pages.Feeds.BrowseFeedPage.<GetPackagesAsync>d__10.MoveNext()
    

    Product: ProGet
    Version: 5.1.7



  • Your server is configured to disable the use of .NET's MD5 processing libraries, which means ProGet cannot read or write Maven index files.

    You can disable this at the server level: https://www.schneider-electric.com/en/faqs/FA282064/

    You can also edit the configuration file;
    https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/enforcefipspolicy-element


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation