Loading
Error ComplianceMigration - FNMS 2019 R2 + SQL Server 2017 - Flexera Signed Security Certificate for SQL Server 2017

Hi,

I've trouble installing FNMS 2019 R2 using a SQL Server 2017.

We've copied the .cer file to the SQL server and running the SQL script included in the zip file

 

 

  1. USE master;Create CERTIFICATE Flexera FROM FILE = 'C:\Temp\FlexeraCodeSigning.cer'; GO CREATE LOGIN FlexeraLogin FROM CERTIFICATE Flexera;GOGRANT UNSAFE ASSEMBLY TO FlexeraLogin;GOCREATE USER FlexeraUser FOR LOGIN FlexeraLogin;GO

 

 

Running this script without any error.

Next step is the DB migration scripts. Running the Compliance part (mgsDatabaseUpdate.exe -i ComplianceMigration.xml -nsu -dFNMSCompliance - S Server) we've got the following error:

 

 

  1. There was an error while attempting to run 'cm-migr1300-CompliancePreCLRInstall.sql'.An error occurred in the Microsoft .NET Framework while trying to load assembly id 65538. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:

 

 

 

 

 

  1. Running cm-migr1300-ComplianceSchema.sql...100% Running cm-migr1300-CompliancePreCLRInstall.sql...50% There was an error while attempting to run 'cm-migr1300-CompliancePreCLRInstall.sql'. An error occurred in the Microsoft .NET Framework while trying to load assembly id 65538. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'sqlproceduresclr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A) System.IO.FileLoadException: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) File steps for Migration from 12.4 to 13.0 failed.Update failed at 15.01.2020 09:27:32.Check all displayed messages and log file ComplianceMigration.log for errors before proceding with FlexNet Manager Platform installation.

 

 

 

Could anybody please tell me how to check that the .cer stuff was activated right and how to solve this issue.

Question: Do we have to replace the "FlexeraLogin" or "FlexeraUser" with our service account?

 

Thanks and Best,

Dennis


  • ChrisG (Flexera Software)

    I could be barking up the wrong tree here entirely, but I wonder if the following line of thinking might explain what you are seeing:

    • It appears you had some earlier version of FNMS installed, and you are trying to upgrade to FNMS 2019 R2.
    • However before doing the upgrade of FNMS, I'm guessing you have upgraded SQL Server to 2017. I'm assuming SQL Server was upgraded, since FNMS versions prior to the 2019 R2 release did not support SQL Server 2017.
    • I would not be surprised if this resulted in some sort of inconsistency: you now have an FNMS database from a pre-2019 R2 version installed on SQL Server 2017, which is not a configuration that I would expect to work.

    Do you now have a way to try running the database migration scripts with the database hosted on a version of SQL Server that is supported by the FNMS version you are upgrading from? I'm thinking that this may be enough to get the DB migration done, after which you can then move the DB to a SQL Server 2017 instance where it will hopefully operate successfully (since an FNMS 2019 R2 database is supported on a SQL Server 2017 instance).

    Expand Post
    Selected as Best
  • ChrisG (Flexera Software)

    I could be barking up the wrong tree here entirely, but I wonder if the following line of thinking might explain what you are seeing:

    • It appears you had some earlier version of FNMS installed, and you are trying to upgrade to FNMS 2019 R2.
    • However before doing the upgrade of FNMS, I'm guessing you have upgraded SQL Server to 2017. I'm assuming SQL Server was upgraded, since FNMS versions prior to the 2019 R2 release did not support SQL Server 2017.
    • I would not be surprised if this resulted in some sort of inconsistency: you now have an FNMS database from a pre-2019 R2 version installed on SQL Server 2017, which is not a configuration that I would expect to work.

    Do you now have a way to try running the database migration scripts with the database hosted on a version of SQL Server that is supported by the FNMS version you are upgrading from? I'm thinking that this may be enough to get the DB migration done, after which you can then move the DB to a SQL Server 2017 instance where it will hopefully operate successfully (since an FNMS 2019 R2 database is supported on a SQL Server 2017 instance).

    Expand Post
    Selected as Best
    • Hi Chris,

      customer is running FNMS 2017 R2 on Windows Server 2012 R2 Std and SQL Server 2014 SP2. They build up a new infrastrucre with Windows Server 2016 Std and SQL Server 2017. We've copied the DBs from the old to the new system and started the migration scripts to update from 2017 R2 to the latest 2019 R2.

       

      1. Do you now have a way to try running the database migration scripts with the database hosted on a version of SQL Server that is supported by the FNMS version you are upgrading from?

       

      Would it be okay to copy the DBs on the current sql server, migrate and move the DBs to the new SQL2017 server or is a full installation requiered (db migration + application update)?

      Expand Post
      • ChrisG (Flexera Software)

        "

         

        @dennis_reinhardt  wrote:

         

        Would it be okay to copy the DBs on the current sql server, migrate and move the DBs to the new SQL2017 server or is a full installation requiered (db migration + application update)?

         

        "

        Yes, it would be fine to copy the databases to the current SQL Server instance (running on SQL Server 2014 SP2), run the DB migration scripts on the databases hosted there, and then copy the migrated databases back to the SQL Server 2017 instance. You do not need a full installation of the FNMS application server components in order to run the database migration scripts.

        Expand Post
    • Hi @ChrisG  

      Thanks for your help. As recommended by you I first migrated the DBs on the old system and then copied them to SQL Server 2017 and continued the installation. Setup is done and system is running. Thanks!

       

      If it is still an bug that should be reported so that the manual can be completed or a KB article can be created ?!

       

      Best,

      Dennis

      Expand Post
  • Dear all,

    we have detected the same problem while performing a tech refresh to SQL Server 2019. Even if all documented prerequisites were fulfilled, the assembly error appeared. Unfortunately, the workaround as described with the TRUSTWORTHY setting was prohibited by IT security as an insecure measure. Instead we were able to solve that by setting the assembly as trusted using sys.sp_add_trusted_assembly (compare https://nielsberglund.com/2017/07/23/sql-server-2017-sqlclr---whitelisting-assemblies/) .

    Hope that helps.

    Best regards,

    André

    Expand Post
    • Ran into the same issue migrating a FNMS 2020 R1 to 2021 R1 in a demo environment. Just removing the old user/login/certificate and re-registering them did not work for me. I have a feeling I need to remove the assembly as well and then have the migration scripts re-register it under the new user/login/certificate.

10 of 13

Related  Product Forums


                     â†’ Flexera One



                      â†’ Snow Atlas



                      â†’ FlexNet Manager



                      â†’ Snow License Manager



                       â†’ App Broker


       Need help finding an answer?


        Ask a Question →


Loading
Error ComplianceMigration - FNMS 2019 R2 + SQL Server 2017 - Flexera Signed Security Certificate for SQL Server 2017