Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License Issue #2720

Closed
AmandaTest opened this issue Oct 3, 2022 · 18 comments
Closed

License Issue #2720

AmandaTest opened this issue Oct 3, 2022 · 18 comments

Comments

@AmandaTest
Copy link

AmandaTest commented Oct 3, 2022

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Error message after importing latest bc license

Script:
Import-BCContainerLicense -LicenseFile "C:\ProgramData\BcContainerHelper\Extensions<container name>\my\license.flf" -containerName s -debug
Docker restart

BcContainerHelper is version 4.0.5
BC Version (insider 21.0.46392.0)
NavContainerHelper is running as administrator
Host is Microsoft Windows 11 Enterprise
Docker Client Version is 20.10.9
Docker Server Version is 20.10.9
Screenshot 2022-08-09 145543

@AmandaTest
Copy link
Author

I tried changing the system date to an earlier date as someone else suggested on an earlier post, but still had the same issue.

@freddydk
Copy link
Contributor

freddydk commented Oct 3, 2022

Very strange that it writes: NavContainerHelper is running as administrator
I don't think this is containerhelper or docker related.
Are you saying that you can create the container just fine - and then when you want to replace the license - it fails?

@AmandaTest
Copy link
Author

Yes. The container was originally created with the old license and I just want to replace the existing license in the container with our new one.

@SBalslev
Copy link
Contributor

SBalslev commented Oct 4, 2022

Can you share the license with me on email? I'd like to understand why your license is triggering universal code enforcement already.

@SBalslev
Copy link
Contributor

SBalslev commented Oct 4, 2022

You can check the license to see if it has the First Registration Date set to October 3rd 2022 or later, if so, the universal code enforcement is expected to be in effect.
The mitigation then is to unpublish all Microsoft extensions and republish them using the signed extensions from the DVD.
We realize the apps on the demo db are not the signed versions and are working on changing this, so you don't have to do the republishing for the demo to work.

@hhoutaptean
Copy link

hhoutaptean commented Oct 4, 2022

Hi, we also experience this issue, as a workaround we moved back to our v20 license (created before October 3rd). When can we expect this will be resolved in the insider artifacts for extensions published by Microsoft? Our license will expire on October 18th.

@kasperdj
Copy link

kasperdj commented Oct 4, 2022

We have same issue - details on HodorNV/ALOps#572

@mtaanquist
Copy link
Contributor

I have run into the same issue with a freshly pulled developer license. Setting up the container provides no errors, it's only on sign-in. It is the same issue for Sandbox, Sandbox as OnPrem, and OnPrem.

Script:

New-BcContainer -accept_eula -artifactUrl (Get-BCArtifactUrl -type Sandbox -country DK -version 21) -licenseFile "C:\BC 21 DEV.flf" -isolation process -updateHosts -assignPremiumPlan -auth NavUserPassword -enableTaskScheduler -doNotExportObjectsToText -alwaysPull -runSandboxAsOnPrem -multitenant $false

Output:

BcContainerHelper is version 4.0.5
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.17
Docker Server Version is 20.10.17
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.20348.1006
10.0.20348.1006: Pulling from businesscentral
Digest: sha256:dd0b1d1db383ead44004660d33194592eeb1a86af357d495ae9f0b42487ba8b8
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.20348.1006
mcr.microsoft.com/businesscentral:10.0.20348.1006
Using image mcr.microsoft.com/businesscentral:10.0.20348.1006
Creating Container bcserver
Style: onprem
Multitenant: No
Version: 21.0.46256.47310
Platform: 21.0.46384.47270
Generic Tag: 1.0.2.13
Container OS Version: 10.0.20348.1006 (ltsc2022)
Host OS Version: 10.0.22000.1042 (21H2)
Using process isolation
Using locale da-DK
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\BC 21 DEV.flf
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:10.0.20348.1006
05903a7ce314bcc9a0772937823be714bc21c970369335b9f18f84d262ac107b
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/21.0.46256.47310/dk
Using installer from C:\Run\210-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\21.0.46256.47310\platform\ServiceTier\Program Files
c:\dl\sandbox\21.0.46256.47310\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\21.0.46256.47310\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\21.0.46256.47310\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\21.0.46256.47310\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\21.0.46256.47310\platform
c:\dl\sandbox\21.0.46256.47310\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\21.0.46256.47310\dk\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\21.0.46256.47310\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\21.0.46256.47310\dk\Extensions
Copying Applications
C:\dl\sandbox\21.0.46256.47310\platform\Applications
Copying Applications.DK
C:\dl\sandbox\21.0.46256.47310\dk\Applications.DK
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/21.0.46256.47310/dk
Using installer from
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\21.0.46256.47310\platform\ServiceTier\Program Files
c:\dl\sandbox\21.0.46256.47310\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\21.0.46256.47310\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\21.0.46256.47310\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\21.0.46256.47310\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\21.0.46256.47310\platform
c:\dl\sandbox\21.0.46256.47310\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\21.0.46256.47310\dk\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\21.0.46256.47310\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\21.0.46256.47310\dk\Extensions
Copying Applications
C:\dl\sandbox\21.0.46256.47310\platform\Applications
Copying Applications.DK
C:\dl\sandbox\21.0.46256.47310\dk\Applications.DK
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 261 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.2.33 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.2.33 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.18.16.1 in container hosts file
Starting Container
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint B4A62EE195764DFC968C26D78340BC9954772CEE
DNS identity bcserver
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to True
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating mt as SQL User and add to sysadmin
Creating SUPER user
WARNING: The password that you entered does not meet the minimum requirements.
It should be at least 8 characters long and contain at least one uppercase
letter, one lowercase letter, and one number.
Assign Premium plan for MT
Container IP Address: 172.18.21.185
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Setting bcserver to 172.18.21.185 in host hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

Container Total Physical Memory is 31.6Gb
Container Free Physical Memory is 7.7Gb

Initialization took 136 seconds
Ready for connections!
Reading CustomSettings.config from bcserver
Creating Desktop Shortcuts for bcserver
Container bcserver successfully created
Health check returns False, restarting container
Removing Session bcserver
bcserver
Waiting for container bcserver to be ready

Initializing...
Setting host.docker.internal to 192.168.2.33 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.2.33 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.18.16.1 in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Container IP Address: 172.18.22.25
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Setting bcserver to 172.18.22.25 in host hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

Container Total Physical Memory is 31.6Gb
Container Free Physical Memory is 8.0Gb

Initialization took 41 seconds
Ready for connections!

Use:
Get-BcContainerEventLog -containerName bcserver to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bcserver to get debug information about the container
Enter-BcContainer -containerName bcserver to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bcserver to remove the container again
docker logs bcserver to retrieve information about URL's again

In the event log on the server:

Category: Microsoft.Dynamics.Framework.UI.WebBase.ClientExceptionStateProcessingStrategy
EventId: 0
ConnectionId: 0HML60AA2QGUK
RequestId: 0HML60AA2QGUK:00000009
RequestPath: /BC/csh
TransportConnectionId: -Vu0ze85t2QWm9cTApUdSA

Sorry, we can’t sign you in because the following apps don’t meet our Universal Code requirement :

_Exclude_AnonymizedDataSharing_ by Microsoft
_Exclude_APIV1_ by Microsoft
_Exclude_APIV2_ by Microsoft
_Exclude_Bank Deposits by Microsoft
_Exclude_Connectivity Apps by Microsoft
_Exclude_Email Logging Using Graph API by Microsoft
_Exclude_Microsoft Dynamics 365 - SmartList by Microsoft
_Exclude_PlanConfiguration_ by Microsoft
_Exclude_ReportLayouts by Microsoft
AMC Banking 365 Fundamentals by Microsoft
Base Application by Microsoft
Business Central Cloud Migration - Previous Release by Microsoft
Business Central Intelligent Cloud by Microsoft
C5 2012 Data Migration by Microsoft
Company Hub by Microsoft
Email - Outlook REST API by Microsoft
Email - SMTP API by Microsoft
Email - SMTP Connector by Microsoft
Intelligent Cloud Base by Microsoft
Intrastat Core by Microsoft
Late Payment Prediction by Microsoft
OIOUBL by Microsoft
Payment and Reconciliation Formats (DK) by Microsoft
Payment Links to PayPal by Microsoft
Payroll Data Import Definitions (DK) by Microsoft
Recommended Apps by Microsoft
Sales and Inventory Forecast by Microsoft
Send To Email Printer by Microsoft
Shopify Connector by Microsoft
Simplified Bank Statement Import by Microsoft
System Application by Microsoft
Tax File Formats (DK) by Microsoft
Troubleshoot FA Ledger Entries by Microsoft
Universal Print Integration by Microsoft
VAT Group Management by Microsoft
WorldPay Payments Standard by Microsoft


You must either upgrade the apps to meet the requirement or license the non-Universal Code module that grants an exception to the requirement.

For more information, see https://aka.ms/bcUniversalCode.

@freddydk
Copy link
Contributor

freddydk commented Oct 4, 2022

Just posted an announcement on Yammer describing this problem.
https://www.yammer.com/dynamicsnavdev/#/Threads/show?threadId=1944761703292928

@AmandaTest
Copy link
Author

You can check the license to see if it has the First Registration Date set to October 3rd 2022 or later, if so, the universal code enforcement is expected to be in effect. The mitigation then is to unpublish all Microsoft extensions and republish them using the signed extensions from the DVD. We realize the apps on the demo db are not the signed versions and are working on changing this, so you don't have to do the republishing for the demo to work.
Yes. It is set to October 3/2022 and expires 1/1/2023

@freddydk
Copy link
Contributor

freddydk commented Oct 4, 2022

@AmandaTest - you cannot remove the apps and install them from the artifacts.
The apps on the artifacts are not signed wither.
If you have your old license - then you might be able to use that?

@AmandaTest
Copy link
Author

Well the license is good for 13 days, so I've reverted to that for now. Thanks for posting on yammer.> @AmandaTest - you cannot remove the apps and install them from the artifacts.

The apps on the artifacts are not signed wither.

If you have your old license - then you might be able to use that?

@freddydk
Copy link
Contributor

freddydk commented Oct 5, 2022

We will have a solution before that.

@quadfin
Copy link

quadfin commented Oct 13, 2022

Is there any update on this issue?
It is blocking my ability to release my products for BC21.
(I cannot view the Yammer thread because Yammer does not respond when I try to sign up. frustrating...)

@freddydk
Copy link
Contributor

@quadfin if you download a new developer license, you should be good.

@freddydk
Copy link
Contributor

On the yammer topic - I think the requests are processed once weekly.
You could try and email dyn365bep at microsoft dot com and see if that is faster.

@freddydk
Copy link
Contributor

@AmandaTest - you can download a new developer license which should work.

@AmandaTest
Copy link
Author

@AmandaTest - you can download a new developer license which should work.

Yes. We did. It's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants