Open PRA-TRM opened 7 months ago
now getting this error :
Have no clue what to give in this script : $databaseParams = @{
"databaseServer" = "PRAPC-T15"
"databaseInstance" = "localhost\MSSQLSERVER01"
"databasePrefix" = "$($containerName)-"
"databaseName" = "SAT"
"databaseCredential" = $dbCredential
"multitenant" = $true
Could you tell me what you are trying to do?
Hi Freddy, I have a bacpac file locally stored on my computer. wanted to execute the script so that the bacpac file is stored in SSMS and also create a connection with container created SATPROD in docker and get it running from on prem.
And you do have SQL Server installed on your computer (the docker host)?
yes
I have a connection with SQl Server. But after executing the script,
Getting error :
the user name and password credentials are also correct in SSMS
the output is : C:\Users\pra\OneDrive - TRIMIT Development A S\Documents\PowerShell\FreddyScriptImportDatabase.ps1 Reading Key Vault Password Download Database Export BcContainerHelper is version 6.0.0 BcContainerHelper is running as administrator HyperV is Enabled UsePsSession is True Host is Microsoft Windows 10 Enterprise - 10.0.19045.3693 Docker Client Version is 20.10.13 Docker Server Version is 20.10.13 Removing Session satprod Removing container satprod Removing entries from hosts Removing satprod from container hosts file Removing satprod-* from container hosts file Removing Desktop shortcuts Removing C:\ProgramData\BcContainerHelper\Extensions\satprod Starting Database Restore job from https://bcartifacts.azureedge.net/sandbox/22.5.59966.61937/nl C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\Import-BcContainerHelper.ps1 Fetching all docker images Fetching all docker volumes INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2 Using image mcr.microsoft.com/businesscentral:10.0.19041.1415 Creating Container satprod Style: sandbox Multitenant: Yes Version: 22.5.59966.61937 Platform: 22.0.61936.0 Generic Tag: 1.0.2.14 Container OS Version: 10.0.19041.1415 (2004) Host OS Version: 10.0.19045.3693 (22H2) WARNING: Host OS is Windows 10 21H1 or newer and Container OS is 2004, defaulting to process isolation. If you experience problems, add -isolatio n hyperv. Using process isolation Using locale nl-NL Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file C:\License\4804774_BC22_NL.bclicense Additional Parameters: --env customNavSettings=EnableTaskScheduler=True Files in C:\ProgramData\BcContainerHelper\Extensions\satprod\my:
at
at
+ CategoryInfo : OperationStopped: (Initialization ... satprod failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container satprod failed
And the SQL Server has enabled TCP protocol?
it was not enabled but after enabling still getting the error :
The TCP Communication to the Named instance is allowed to All Ports
It isn't in the firewall - it is the SQL Server Configuration module - TCP is not enabled by default
yes it is enable in SQL SERVER configuration module:
I think your database settings should be:
$databaseParams = @{ "databaseServer" = 'host.containerhelper.internal' "databaseInstance" = the SQL instance of the SQL Server "databasePrefix" = "$containerName-" "databaseName" = 'CRONUS' "databaseCredential" = Your credentials "multitenant" = $true or $false }
It is not working : Still getting errors after changing the script to:
$databaseParams = @{
"databaseServer" = "host.containerhelper.internal"
"databaseInstance" = "PRAPC-T15\MSSQLSERVER01"
"databasePrefix" = "$($containerName)-"
"databaseName" = "SAT"
"databaseCredential" = $dbCredential
"multitenant" = $true
}
"PRAPC-T15\MSSQLSERVER01" is not a databaseInstance - that looks like a server name + an instance. If MSSQLSERVER01 is a database instance on the SQL server on the docker host, then MSSQLSERVER01 should be the value to use.
after changing it to :
$databaseParams = @{
"databaseServer" = "host.containerhelper.internal"
"databaseInstance" = "MSSQLSERVER01"
"databasePrefix" = "$($containerName)-"
"databaseName" = "SAT"
"databaseCredential" = $dbCredential
"multitenant" = $true
}
still not working :
Haven't seen that before Is SSL required for the SQL Server?
I dont know , currently the SSL is disabled there is no certificate:
Describe the issue After running the below script getting error :
How to resolve this?
Scripts used to create container and cause the issue
NavContainerHelper is version 0.6.5.7 NavContainerHelper is running as administrator Host is Microsoft Windows 10 Enterprise - 2004 Docker Client Version is 19.03.8 Docker Server Version is 19.03.8 ...