-
Notifications
You must be signed in to change notification settings - Fork 243
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
Import new license file to container after the license is expired #1027
Comments
Thanks, will have a look. |
Shipped in 0.7.0.6 |
Hi Freddy, The fix does not seem to work if the BC Instance inside the BC Container is stopped and you run
|
Ahh - so your point is that Import-NAVServerLicense -LicenseFile $licensefile -ServerInstance $ServerInstance -Database NavDatabase -WarningAction SilentlyContinue Doesn't work if the service tier isn't running - you need to do the data thing? /Freddy |
Probably what is failing the code is this parameter
if you remove it should work |
rather than the -restart you could insert at the same point a check that if the instance is not running it will be started (just a suggestion) |
I actually cannot make the import-navserverlicense work if I have stopped the service tier - no matter what parameter set I use:-( |
But my code worked with Instance stopped:
|
No - not on the container I am testing this on. |
You're right, it is not working on mine as well, it's a mystery how it worked in that container. Sorry about this |
Maybe a servicetier which is out-of-license isn't stopped, but just unresponsive to connections? |
Still I cannot explain what happened, Import-NavContainerLicense failed then I run my script and worked. Next time I will investigate further before to open an issue |
For anyone still strugling with outdate licenses in containers, that fail to update when using Import-NavContainerLicense. |
Thanks for adding this information. |
Hi,
I did not notice but one of my docker containers running locally had an expired license.
It took a few minutes to figure out what was the issue then I used the following command to import the new license
Import-NavContainerLicense -licenseFile "C:\Licenses\dev.flf" -containerName helloworld-dev
Unfortunately, it does not work because the BCInstance was not running, here the error retrieved:
The container was running but the instance cannot be run because the license is expired.
I've imported first the file and then invoked the script in the container to change the license and start the instance.
Here the code:
I was thinking if some extra checks maybe could be inserted in the function Import-NavContainerLicense to handle this scenario as well.
The text was updated successfully, but these errors were encountered: