Unable to test Meshery UI fix locally on Windows 11 (WSL2) — hitting permissions page after server starts

Hi! I’m working on a UI fix for issue #8772 (theme preference resetting on page refresh) and trying to test it locally on Windows 11 with WSL2, but I’m stuck at the testing stage.

Environment:

  • Windows 11

  • WSL2 + Ubuntu

  • Node v18.x, npm

  • Go v1.26.0

What I tried:

  1. Started Meshery server in one WSL terminal using make server — server started successfully and is listening on port 9081

  2. Started the UI dev server in a second WSL terminal using npm run dev inside ui/

  3. Opened http://localhost:9081 in the browser

What I’m seeing:

Instead of a provider selection screen or the app, I’m getting a “You don’t have the necessary permissions to view this page” screen, with fields showing “No roles found” for Organization Role(s) and Provider Role(s). There’s a “Switch Organization” dropdown but it’s empty.

Also tried http://localhost:9081/provider and http://localhost:9081/user/login — both show “site cannot be reached.”

What I was trying to do:

Test that my fix works correctly — specifically toggling the theme to Light, refreshing the page, and confirming it stays Light (for Local Provider users). The build itself passes fine (npm run build completes with no errors).

Any help appreciated!

First, visit http://localhost:9081/provider? and select a provider. Once authenticated, access the UI at http://localhost:3000.

Also, please follow the UI contributor guide and use the recommended make targets (make ui-setup, make server, make ui):

1 Like

Thanks @KhushamBansal
Its working now!