Question

Kubernetes Timeout during install main.ps1

  • 6 September 2023
  • 2 replies
  • 103 views

Userlevel 2
Badge +8

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: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,main.ps1

 

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


2 replies

Userlevel 5
Badge +12

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

Userlevel 2
Badge +8

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

Reply