Unable to run setup MeshMap on local

Hey team,

I’m trying to setup MeshMap on local by following the Resources guide and the Setup guide, but I’m getting the following error -

Here’s the log I see from Meshery Server:

INFO[2022-09-02T17:13:19+05:30] Meshmap Plugin Initialized                    app=meshery
INFO[2022-09-02T17:13:19+05:30] Header subscription started                   app=meshery
INFO[2022-09-02T17:13:19+05:30] Header subscription started                   app=meshery
INFO[2022-09-02T17:13:19+05:30] View subscription started                     app=meshery
INFO[2022-09-02T17:13:19+05:30] View subscription started                     app=meshery
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
DEBU[0724] received a new mesh client, listening for events  file=events_streamer
DEBU[0724] Received a stream client...                   file=events_streamer
DEBU[0724] Waiting to receive events.                    file=events_streamer
INFO[2022-09-02T17:13:20+05:30] registration of k8s native components completed for contextID: 221ea10dfd303938a8e5bd5b637936a0  app=meshery
DEBU[0725] received new data on response channel         file=events_streamer
DEBU[0725] received new data on response channel         file=events_streamer
DEBU[0725] Flushed the messages on the wire...           file=events_streamer
DEBU[0725] Flushed the messages on the wire...           file=events_streamer
INFO[2022-09-02T17:13:23+05:30] found meshery-broker endpoint: localhost:4222 for contextId: 221ea10dfd303938a8e5bd5b637936a0  app=meshery
WARN[2022-09-02T17:13:23+05:30] nats: no servers available for connection     app=meshery code=11000 probable-cause="Endpoint might not be reachable" severity=2 short-description="Connection to broker failed" suggested-remediation="Make sure the NATS endpoint is reachable"
INFO[2022-09-02T17:13:23+05:30] skipping meshsync data handler setup for contextId: 221ea10dfd303938a8e5bd5b637936a0 due to: nats: no servers available for connection  app=meshery
ERRO[2022-09-02T17:13:27+05:30] GraphQL subscription for Addons stopped       app=meshery code=2228 probable-cause="Could be a network issue" severity=2 short-description="Addons Subscription failed.nats: no servers available for connection" suggested-remediation="Check if meshery server is reachable from the browser"

Here’s what the provider capabilities after making a request to http://localhost:9081/api/provider/capabilities looks like -

{
  "provider_type": "remote",
  "package_version": "v0.6.0-rc.6fe-1",
  "package_url": "https://github.com/layer5labs/meshery-extensions-packages/releases/download/v0.6.0-rc.6fe-1/provider-meshery.tar.gz",
  "provider_name": "Meshery",
  "provider_description": [
    "Persistent sessions",
    "Save environment configurations and user preferences",
    "Store and retrieve patterns, filters, and application defintions",
    "Retrieve performance and conformance test results",
    "RBAC support",
    "Free use"
  ],
  "provider_url": "https://meshery.layer5.io",
  "extensions": {
    "navigator": [
      {
        "title": "MeshMap",
        "on_click_callback": 1,
        "href": {
          "uri": "/meshmap",
          "external": false
        },
        "component": "/provider/navigator/meshmap/index.js",
        "icon": "/provider/navigator/img/meshmap-icon.svg",
        "link": true,
        "show": true,
        "type": "full_page"
      }
    ],
    "user_prefs": [
      {
        "component": "/provider/userpref/meshmap_userpref/index.js",
        "type": "component"
      }
    ],
    "graphql": [
      {
        "component": "meshmap",
        "path": "provider/navigator/meshmap/graphql/plugin.so",
        "type": "backend"
      }
    ],
    "account": [
      {
        "title": "Account",
        "on_click_callback": 1,
        "href": {
          "uri": "/account",
          "external": false
        },
        "component": "/provider/account/profile/index.js",
        "link": true,
        "show": true,
        "type": "full_page"
      }
    ]
  },
  "capabilities": [
    {
      "feature": "sync-prefs",
      "endpoint": "/user/preferences"
    },
    {
      "feature": "persist-results",
      "endpoint": "/results"
    },
    {
      "feature": "persist-result",
      "endpoint": "/result"
    },
    {
      "feature": "persist-smi-results",
      "endpoint": "/smi/results"
    },
    {
      "feature": "persist-smi-result",
      "endpoint": "/smi/result"
    },
    {
      "feature": "persist-metrics",
      "endpoint": "/result/metrics"
    },
    {
      "feature": "persist-smp-test-profile",
      "endpoint": "/user/test-config"
    },
    {
      "feature": "persist-performance-profiles",
      "endpoint": "/user/performance/profiles"
    },
    {
      "feature": "persist-schedules",
      "endpoint": "/user/schedules"
    },
    {
      "feature": "persist-meshery-patterns",
      "endpoint": "/patterns"
    },
    {
      "feature": "persist-meshery-filters",
      "endpoint": "/filters"
    },
    {
      "feature": "persist-meshery-applications",
      "endpoint": "/applications"
    },
    {
      "feature": "persist-meshery-pattern-resources",
      "endpoint": "/patterns/resource"
    },
    {
      "feature": "meshery-patterns-catalog",
      "endpoint": "/patterns/catalog"
    },
    {
      "feature": "meshery-filters-catalog",
      "endpoint": "/filters/catalog"
    },
    {
      "feature": "clone-meshery-patterns",
      "endpoint": "/patterns/clone"
    },
    {
      "feature": "clone-meshery-filters",
      "endpoint": "/filters/clone"
    }
  ]
}

Here’s what my local Meshery filesystem at ~/.meshery/provider/Meshery looks like after running the make prod command in my local meshery-extensions repo:

Not sure what I’m missing here :sweat_smile:

I think the only item missed here is just ensuring that you’re on HEAD on meshery/meshery.

1 Like

Solution: Checking in to master branch on meshery/meshery and re-running make dev in meshery-extensions did the trick for me.

Items to check if anyone is facing this issue (Credits: @Lee):

  1. Ensure that you have the binary go1.17.8 on your system.
  2. checkout latest meshery/meshery master
  3. checkout latest layer5labs/meshery-extensions master
  4. meshery: make ui-setup; make ui-server
  5. extensions: make dev
  6. (Re)login to Meshery Server with your user account that has access to MeshMap, which will cause Meshery Server to reload all the plugins.
1 Like