View Categories

Terminal Gateway not connecting or session won’t open

Pro

Messages and fixes #

MessageCause and fix
Terminal Gateway is not installedMikroWizard can’t reach the gateway. It also shows this when the gateway is installed but stopped, unreachable, or its token doesn’t match. See Check the gateway below, or install it.
Your Terminal Gateway container is outdated and does not support WebBoxUpdate the gateway: see Update the Terminal Gateway.
PAM access is not enabled for this userThe user has no PAM seat. See Give a user PAM access.
No terminal policy is set for this device groupSet a terminal policy for the group on the user.
Device is not assigned to any groupAdd the device to a device group.
You do not have access to this device’s groupGive the user access to a group that contains the device.
No credential found for this deviceEdit the device and enter its username and password (or SSH key).
SSH service is disabled on this device (/ip service)Enable the service on the MikroTik router, or use another protocol.
WebBox is only supported on MikroTik devicesUse RDP or VNC for desktops.

Check the gateway #

MikroWizard checks the gateway’s health address (by default http://127.0.0.1:8201/health) with the token from server-conf.json (terminal_gateway_enabled, terminal_gateway_url, terminal_gateway_token).

  1. Is the container running?
sudo docker ps --filter name=mikrowizard-terminal-gateway
  1. Check its health with the installer (download it first, see the install article):
sudo bash install.sh --status
  1. Read its log:
sudo docker logs --tail 100 mikrowizard-terminal-gateway
  1. Restart it: sudo bash install.sh --restart.

The session opens but stays blank or disconnects #

The browser connects to the gateway through the web interface at /terminal-ws/ (and agents at /agent/). If you put your own reverse proxy in front of MikroWizard, make sure it passes these paths and WebSocket connections through.

For MikroTik SSH and WebBox, the router must accept the user’s RADIUS login: see RADIUS login not working.