Closed DrummerViking closed 3 years ago
What does ConfigMgrSetup.log say? It's at the root of C:.
somehow its failing to connect locally. this is the output:
INFO: SQL Connection failed. Connection: LAB1CM01.ONPREM.LAB MASTER, Type: Unsecure $$<Configuration Manager Setup><06-11-2021 20:33:06.376+180><thread=3292 (0xCDC)>
*** [08001][2][Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [2]. $$<Configuration Manager Setup><06-11-2021 20:34:10.942+180><thread=3292 (0xCDC)>
*** [HYT00][0][Microsoft][SQL Server Native Client 11.0]Login timeout expired $$<Configuration Manager Setup><06-11-2021 20:34:10.942+180><thread=3292 (0xCDC)>
*** [08001][2][Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. $$<Configuration Manager Setup><06-11-2021 20:34:10.942+180><thread=3292 (0xCDC)>
*** Failed to connect to the SQL Server, connection type: LAB1CM01.ONPREM.LAB MASTER. $$<Configuration Manager Setup><06-11-2021 20:34:10.942+180><thread=3292 (0xCDC)>
INFO: SQL Connection failed. Connection: LAB1CM01.ONPREM.LAB MASTER, Type: Unsecure $$<Configuration Manager Setup><06-11-2021 20:34:10.942+180><thread=3292 (0xCDC)>
*** [08001][2][Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [2]. $$<Configuration Manager Setup><06-11-2021 20:35:15.718+180><thread=3292 (0xCDC)>
*** [HYT00][0][Microsoft][SQL Server Native Client 11.0]Login timeout expired $$<Configuration Manager Setup><06-11-2021 20:35:15.718+180><thread=3292 (0xCDC)>
*** [08001][2][Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. $$<Configuration Manager Setup><06-11-2021 20:35:15.718+180><thread=3292 (0xCDC)>
*** Failed to connect to the SQL Server, connection type: LAB1CM01.ONPREM.LAB MASTER. $$<Configuration Manager Setup><06-11-2021 20:35:15.718+180><thread=3292 (0xCDC)>
INFO: SQL Connection failed. Connection: LAB1CM01.ONPREM.LAB MASTER, Type: Unsecure $$<Configuration Manager Setup><06-11-2021 20:35:15.718+180><thread=3292 (0xCDC)>
ERROR: SQL Connection failed. Connection: LAB1CM01.ONPREM.LAB MASTER, Type: Unsecure $$<Configuration Manager Setup><06-11-2021 20:35:18.762+180><thread=3292 (0xCDC)>
ERROR: Failed to connect SQL Server 'master' db. $$<Configuration Manager Setup><06-11-2021 20:35:18.821+180><thread=3292 (0xCDC)>
ERROR: Failed to connect to SQL Server lab1cm01.onprem.lab to determine if it is a cluster, or failed to run the query. $$<Configuration Manager Setup><06-11-2021 20:35:18.864+180><thread=3292 (0xCDC)>
~Could not connect or execute SQL query. $$<Configuration Manager Setup><06-11-2021 20:35:18.958+180><thread=3292 (0xCDC)>
~~===================== Failed Configuration Manager Server Setup ===================== $$<Configuration Manager Setup><06-11-2021 20:35:18.989+180><thread=3292 (0xCDC)>
<06-11-2021 20:35:32> Failed to create process of SetupWpf.exe. return value 1
Can you share the complete output from your AutomatedLab run? Also, what version of AutomatedLab are you running?
i'm running automatedlab v5.37 in PS 7.1.3 i recently cloned from your repository the sccm files and custom roles.
I already closed the whole output. i can rebuild and let you know, it has failed the last 4 times, i'm pretty sure will fail again
You could run this and share the archive with me: New-PSFSupportPackage -Include All
I think it contains personal information, i.e. hostnames and/or IPs.
i have the PSFSupportPackage. is there any private way to send it to you?
I received your email, thanks.
Could you try using an external Hyper-V switch, that is attached to a physical NIC with network connectivity? I suspect it might be something to do with using the default switch. I didn't add this capability and truthfully, I never really tested it.
issue got resolve. still using it in the "default switch" network. issue I believe was timeouts, or long waiting times on disk. I was using an external USB 3.0 drive (I expected to be slow, but not to affect like this). I tested to install in the local SSD, and the deploy finished with no errors.
I have recently clone your repository and attempted to run the script for CM-2103.ps1.
its failing to install the CM role with:
I have tried multiple times, with same error. is there something wrong that I'm doing or a bug in the code?