Invoke-RestMethod "http://localhost:8079/api/http/routers" error - Docker update installation fix

Project: https://github.com/Sitecore/MVP-Site

Context/Resolution:

Everything was fine with my Docker instance till yesterday and all of a sudden, the traefik container wouldn't start or cm/cd will not start as a result failing the traefik container. I did all the Docker clearing and restart rituals without any success! Then, I reverted all my code changes thinking there is some startup issue but didn't have any success either. Though one update I did to my machine yesterday was this MSBUILD installation  but remember the containers failing even before  that! Finally, noticed there is a new Docker update (4.4.4) released just yesterday. 


And, Docker Desktop Update available for install:


Installed  it halfheartedly and restarted my machine to find that running up.ps1 was successful now! So, if there is a docker update available, install it and that too if your Docker containers working fine so far wouldn't startup all of a sudden! Don't ask me the logic behind!

Error:

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Creating mvp-site_mssql_1 ... done

Creating mvp-site_redis_1 ... done

Creating mvp-site_solr_1  ... done

Creating mvp-site_mssql-init_1 ... done

Creating mvp-site_solr-init_1  ... done

Creating mvp-site_id_1         ... done

Creating mvp-site_cm_1         ... done

Creating mvp-rendering         ... done


ERROR: for cd  Container "651b0a760afa" is unhealthy.

ERROR: Encountered errors while bringing up the project.

Waiting for CM to become available...

Invoke-RestMethod : Unable to connect to the remote server

At C:\MVP-Site\up.ps1:38 char:19

+ ...   $status = Invoke-RestMethod "http://localhost:8079/api/http/routers ...

+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc

   eption

    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand


Comments

Popular Posts