Skip to main content

Exact error:

C:\ifsroot-test\main.ps1 : Error found in Exception calling "EndExecute" with "1" argument(s): "Command '(bash
install-k8s.sh ifscloud.jfrog.io https docker )' has timed out.". Please
check logs for details.
At line:1 char:1
+ .\main.ps1
+ ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) dWrite-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,main.ps1

 

Tried a few different things to no effect. Does anyone have any suggestions?

This looks like part of the 'KUBERNETES' step.
The error indicates that a timeout occurred while sending the following command to ifs-remote:

bash install-k8s.sh ifscloud.jfrog.io https docker

Please confirm that you can ping your ifs-remote server from your Windows Management server.
Also, please confirm that you can ping ifscloud.jfrog.io from within your ifs-remote server.

Best regards, Ben


Can ping both no problem. Running the command manually seems to point to this being the source of the timeout:

 

unable to recognize "/var/snap/microk8s/current/args/cni-network/cni.yaml": Get "https://127.0.0.1:16443/api?timeout=32s": net/http: TLS handshake timeout
unable to recognize "/var/snap/microk8s/current/args/cni-network/cni.yaml": Get "https://127.0.0.1:16443/api?timeout=32s": net/http: TLS handshake timeout
Unable to connect to the server: net/http: TLS handshake timeout
Unable to connect to the server: net/http: TLS handshake timeout
127.0.0.1       api.snapcraft.io already exists in /etc/hosts)

 

Many thanks,

Alex


Does it work if you run these first?

.\main.ps1 -resource 'DISABLEAPPARMORPROFILE'
.\main.ps1 -resource 'FIREWALL' -status 'DISABLE'

 


Hi @durette 

Yes, I had the same issue and its fixed after disabling the firewall on the remote-server. Thank you for your help. 

 

.\main.ps1 -resource 'DISABLEAPPARMORPROFILE'

.\main.ps1 -resource 'FIREWALL' -status 'DISABLE'

 

Regards, 

Suraj 


Reply