Error: While Updating Meshery Using mesheryctl system update

Hi everyone, I’d started using this doc and went as it says but when I hoped on provider selection page on meshery.layer5.io I got message I need to update using command mesheryctl system update when I execute command on local machine got this error:
A new release of mesheryctl is available: v0.6.98 → v0.6.104 https://github.com/layer5io/meshery/releases/tag/v0.6.104 Check https://docs.meshery.io/guides/upgrade#upgrading-meshery-cli for instructions on how to update mesheryctl Updating Meshery... Error: cannot update Meshery: could not install meshery server: open /home/zakisk/.meshery/manifests/meshery-v0.6.104.tgz: no such file or directory could not install meshery-operator: open /home/zakisk/.meshery/manifests/meshery-operator-v0.6.104.tgz: no such file or directory

Note: I built mesheryctl using command make make resides in meshery/mesheryctl dir.

Thank you.

Follow the guide given here : Upgrading Meshery and all of its components | Meshery

As you see the error says /home/zakisk/.meshery/manifests/meshery-v0.6.104.tgz: no such file or directory it is because you haven’t curl the latest release of cli run curl -L https://meshery.io/install | DEPLOY_MESHERY=false bash - then do mesheryctl system update it will most probably solve your issue

tried above step but still getting another error

Updating Meshery...
Error: cannot update Meshery: could not install meshery server: "meshery" has no deployed releases
could not install meshery-operator: "meshery-operator" has no deployed releases

Can you run mesheryctl system start and paste the error

zakisk@DESKTOP-9GBCNUO:~/meshery$ mesheryctl system start
Starting Meshery...

Meshery deployed on Kubernetes.
Meshery is starting...
Opening Meshery in browser.

it had opened browser but browser it wasn’t reachable.

@Suhail.Khan when I did port forwarding in order to access server exposed on WSL2 I got new error that may help you to spot issue.

@Suhail.Khan Hi I’ve managed to run meshery locally here are the step I’d done
First I’ve updated mesheryctl as you’d suggested and as I’ve send screenshots above that I wasn’t able to access endpoint started in browser by command mesheryctl system start so I saw message in command’s output that meshery deployed on Kubernetes

zakisk@DESKTOP-9GBCNUO:~/meshery$ mesheryctl system start
Starting Meshery...

Meshery deployed on Kubernetes.
Meshery is starting...
Opening Meshery in browser.

so I’ve checked running services on my cluster and found a LoadBalancer service named meshery running in list so I grabbed its url by minikube using this command minikube service meshery -n meshery --url and got its local url and it has run successfully. thank you for your support :+1:

2 Likes

You can also try mesheryctl system status there too you will get a correct I think

@Zaki_Shaikh, Will you update on the mentioned issue, is the system update subcommand working or not?

@Karan I checked meshery’s version it was 0.6.106

zakisk@DESKTOP-9GBCNUO:~/meshery$ mesheryctl version
        VERSION         GITSHA      
Client  v0.6.106        5c2a7681f  
Server  unavailable     unavailable
Unable to communicate with Meshery server.Get "http://localhost:31961/api/system/version": dial tcp 127.0.0.1:31961: connect: connection refused.See https://docs.meshery.io for help getting started with Meshery

Checking for latest version of mesheryctl...

  v0.6.106 is not the latest release. Update to v0.6.107.

it is showing that there is an update but when I updated it

zakisk@DESKTOP-9GBCNUO:~/meshery$ mesheryctl system update
A new release of mesheryctl is available: v0.6.106 → v0.6.107
https://github.com/layer5io/meshery/releases/tag/v0.6.107
Check https://docs.meshery.io/guides/upgrade#upgrading-meshery-cli for instructions on how to update mesheryctl

Updating Meshery...
... updated Meshery in the Kubernetes Cluster.
Meshery is now up-to-date

it succeeds though, but after checking version it’s not updated it was the pervious one.

zakisk@DESKTOP-9GBCNUO:~/meshery$ mesheryctl version
        VERSION         GITSHA      
Client  v0.6.106        5c2a7681f  
Server  unavailable     unavailable
Unable to communicate with Meshery server.Get "http://localhost:31961/api/system/version": dial tcp 127.0.0.1:31961: connect: connection refused.See https://docs.meshery.io for help getting started with Meshery

Checking for latest version of mesheryctl...

  v0.6.106 is not the latest release. Update to v0.6.107.

and I am running server on the machine in other terminal but it is showing that server isn’t available then I started meshery service as well using minikube service meshery -n meshery.

PS C:\Windows\system32> minikube service meshery -n meshery
|-----------|---------|-------------|---------------------------|
| NAMESPACE |  NAME   | TARGET PORT |            URL            |
|-----------|---------|-------------|---------------------------|
| meshery   | meshery | http/9081   | http://192.168.49.2:31961 |
|-----------|---------|-------------|---------------------------|
* Starting tunnel for service meshery.
|-----------|---------|-------------|------------------------|
| NAMESPACE |  NAME   | TARGET PORT |          URL           |
|-----------|---------|-------------|------------------------|
| meshery   | meshery |             | http://127.0.0.1:59594 |
|-----------|---------|-------------|------------------------|
* Opening service meshery/meshery in default browser...
! Because you are using a Docker driver on windows, the terminal needs to be open to run it.

it was still showing that server is unavailable, so there are two problem one is after updating it is not updating and server is seen unreachable while it is running

@Karan Release packages are downloaded though for new version

zakisk@DESKTOP-9GBCNUO:~/.meshery/manifests$ la -lh
total 22M
-rw-r--r-- 1 zakisk zakisk 7.1K Jul  3 20:33 meshery-operator-v0.6.104.tgz
-rw-r--r-- 1 zakisk zakisk 6.8K Jul  8 18:34 meshery-operator-v0.6.106.tgz
-rw-r--r-- 1 zakisk zakisk 6.8K Jul 14 18:54 meshery-operator-v0.6.107.tgz
-rw-r--r-- 1 zakisk zakisk  22M Jul  1 09:51 meshery-v0.6.104.tar.gz
-rw-r--r-- 1 zakisk zakisk  16K Jul  3 20:33 meshery-v0.6.104.tgz
-rw-r--r-- 1 zakisk zakisk  16K Jul  8 18:33 meshery-v0.6.106.tgz
-rw-r--r-- 1 zakisk zakisk  16K Jul 14 18:54 meshery-v0.6.107.tgz

as output suggests that they are partially downloaded (by seeing their size)

@Zaki_Shaikh Was this a running deployment, because if you wish to update a running Meshery deployment with the images you just pulled, you’ll also have to execute:

mesheryctl system restart

@Karan I did what you’d told but I do think that it is really an issue

  1. I checked version
       VERSION         GITSHA      
Client  v0.6.106        5c2a7681f  
Server  unavailable     unavailable
Unable to communicate with Meshery server.Get "http://localhost:31961/api/system/version": dial tcp 127.0.0.1:31961: connect: connection refused.See https://docs.meshery.io for help getting started with Meshery

Checking for latest version of mesheryctl...

  v0.6.106 is not the latest release. Update to v0.6.108.
  1. then updated mesheryctl
A new release of mesheryctl is available: v0.6.106 → v0.6.108
https://github.com/layer5io/meshery/releases/tag/v0.6.108
Check https://docs.meshery.io/guides/upgrade#upgrading-meshery-cli for instructions on how to update mesheryctl

Updating Meshery...
... updated Meshery in the Kubernetes Cluster.
Meshery is now up-to-date
  1. then restarted it
Meshery deployments will be deleted from your cluster. Are you sure you want to continue [y/n]? y
Restarting Meshery...
Stopping Meshery resources...
Deleting Meshery Namespace...
Meshery resources are stopped.
Starting Meshery...

Meshery deployed on Kubernetes.
Meshery is starting...
Opening Meshery (http://localhost:30637) in browser.
  1. and checked version but it is still as it was.
        VERSION         GITSHA      
Client  v0.6.106        5c2a7681f  
Server  unavailable     unavailable
Unable to communicate with Meshery server.Get "http://localhost:30637/api/system/version": dial tcp 127.0.0.1:30637: connect: connection refused.See https://docs.meshery.io for help getting started with Meshery

Checking for latest version of mesheryctl...

  v0.6.106 is not the latest release. Update to v0.6.108.

Please be aware that mesheryctl is not updated when running the system update command. mesheryctl needs to be updated using whatever mechanism it is that you originally used to install it whether that was bash, homebrew, scoop, or direct download. Send word if the docs don’t make this clear - Upgrading Meshery and all of its components | Meshery

@Lee I don’t know that what mistake I was making but after some time it was updated as usual. Thank you