You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to update from version From 1.4.12.24074 (x64) to 1.5.1.28104 (x64) via Windows Updates and manual attempts do not work.
I believe it is due to an expiring cert. When I attempt to connect using connect-eflowvm, I was getting an X509 expiry error.
I have ran the provided script - details below:
Check for admin privilege first before proceeding...
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "Ensure to tun this PowerShell module in Administrator mode!" -ForegroundColor "Red"
return
}
try
{
Invoke-EflowVmCommand "ls -la"
Write-Host "Connection to EFLOW VM successful."
}
catch [Exception]
{
Write-Host "Error caught while invoking VM command"
$e = $_.Exception
Write-Host $e.Message.ToString()
}
I then got this immediately after running:
PS C:\WINDOWS\system32> E:\MccScripts\CertFixScript.ps1
Stopping WSSDAgent service
Restarting WSSDAgent service
Remove-Item : Cannot find path 'C:\Users\username.wssd\nodectl' because it does not exist.
At E:\MccScripts\CertFixScript.ps1:17 char:1
& : The term 'E:\ProgramFiles\Azure IoT Edge\eflowi-9b08aec6-a8ac-4359-a2ee-0392b4fa4763\nodectl.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At E:\MccScripts\CertFixScript.ps1:19 char:3
E:\Program Files\Azure IoT Edge\eflowi-9b08aec6-a8ac-4359-a2ee-0392b4fa4763\nodectl.exe compute vm list -o tsv --query "[*].name" failed to execute [Error: rpc error: code = Unavailable desc = connection error: desc = "transp
ort: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "NodeAgent")"] at line 4349
Error caught while invoking VM command
Failed to retrieve virtual machine name.
I attempted to connect again using connect-eflowvm and got this:
E:\Program Files\Azure IoT Edge\eflowi-9b08aec6-a8ac-4359-a2ee-0392b4fa4763\nodectl.exe compute vm list -o tsv --query "[*].name" failed to execute [Error: rpc error: code = Unavailable desc = connection error: desc = "transp
ort: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "NodeAgent")"] at line 4349
[11/20/2024 12:52:54] Exception caught!!!
Failed to retrieve virtual machine name. at line 3060
Would you be so kind to assist with this please?
The text was updated successfully, but these errors were encountered:
Attempting to update from version From 1.4.12.24074 (x64) to 1.5.1.28104 (x64) via Windows Updates and manual attempts do not work.
I believe it is due to an expiring cert.
When I attempt to connect using connect-eflowvm, I was getting an X509 expiry error.
I have ran the provided script - details below:
Check for admin privilege first before proceeding...
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "Ensure to tun this PowerShell module in Administrator mode!" -ForegroundColor "Red"
return
}
Write-Host "Stopping WSSDAgent service"
Stop-Service wssdagent
Remove-Item -Force -Path "HKLM:SOFTWARE\Microsoft\WssdAgent\v0.10.8-alpha.10\CertificateInternal"
Remove-Item -Force -Path "HKLM:SOFTWARE\Microsoft\WssdAgent\v0.10.8-alpha.10\IdentityInternal"
Write-Host "Restarting WSSDAgent service"
Start-Service wssdagent
Start-Sleep 10
Remove-Item -Recurse -Force -Path "$env:UserProfile.wssd\nodectl"
& "E:\ProgramFiles\Azure IoT Edge\eflowi-9b08aec6-a8ac-4359-a2ee-0392b4fa4763\nodectl.exe" security login --loginpath "$env:Programdata\wssdagent\nodelogin.yaml" --identity
Start-Sleep 15
Copy-Item -Path "$env:UserProfile.wssd\nodectl\cloudconfig" -Destination "$env:Programdata\azure iot edge\protected.wssd\cloudconfig" -Force
Remove-Item -Recurse -Force -Path "$env:UserProfile.wssd\nodectl"
try
{
Invoke-EflowVmCommand "ls -la"
Write-Host "Connection to EFLOW VM successful."
}
catch [Exception]
{
Write-Host "Error caught while invoking VM command"
$e = $_.Exception
Write-Host $e.Message.ToString()
}
I then got this immediately after running:
PS C:\WINDOWS\system32> E:\MccScripts\CertFixScript.ps1
Stopping WSSDAgent service
Restarting WSSDAgent service
Remove-Item : Cannot find path 'C:\Users\username.wssd\nodectl' because it does not exist.
At E:\MccScripts\CertFixScript.ps1:17 char:1
& : The term 'E:\ProgramFiles\Azure IoT Edge\eflowi-9b08aec6-a8ac-4359-a2ee-0392b4fa4763\nodectl.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At E:\MccScripts\CertFixScript.ps1:19 char:3
Copy-Item : Cannot find path 'C:\Users\username.wssd\nodectl\cloudconfig' because it does not exist.
At E:\MccScripts\CertFixScript.ps1:21 char:1
Remove-Item : Cannot find path 'C:\Users\username.wssd\nodectl' because it does not exist.
At E:\MccScripts\CertFixScript.ps1:23 char:1
[11/20/2024 12:25:20] Exception caught!!!
ort: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "NodeAgent")"] at line 4349
Error caught while invoking VM command
Failed to retrieve virtual machine name.
I attempted to connect again using connect-eflowvm and got this:
ort: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "NodeAgent")"] at line 4349
[11/20/2024 12:52:54] Exception caught!!!
Would you be so kind to assist with this please?
The text was updated successfully, but these errors were encountered: