Skip to main content

Watchdog Web Operation Manual

Watchdog Web is used to guard the GatewayRuntime process and provides package management, runtime logs, backup recovery, tunnel client, and runtime parameter configuration. During on-site maintenance, the dashboard status is usually checked first, followed by project applications, backup recovery, or tunnel configuration.

Login

Open http://<gateway-ip>:6200 and enter your Watchdog username and password. The bundled configuration officially supports standard HTTP access by IP address; it does not require changing the address to localhost or using a browser secure context.

Watchdog Login Page

Configuration ItemsDescription
UsernameThe default account is admin, which can be modified on the "Settings" page. After modification, you need to log in with a new username.
PasswordThe default password is 111111; it is recommended to change it immediately after initial deployment.

When submitting login, the page automatically retrieves a two-minute, one-time public key challenge and uses the RSA-OAEP-SHA256 encrypted password. After successful login, Watchdog issues an eight-hour valid opaque Bearer session; Logging out will revoke the current session, and restarting Watchdog will also disable the existing session.

After logging in, first access the "Dashboard". If the browser jumps directly back to the login page, it means the session has expired, Watchdog just restarted, or the account and password are incorrect, requiring re-login.

HTTP security boundaries

one-time public key challenge only provides extra protection for login or initialization passwords. Bearer tokens, password change requests, package changes, backups, and other management data under regular HTTP still lack TLS protection; HTTPS is prioritized on public or untrusted networks.

Dashboard Inspection

Menu Path: Dashboard.

dashboard is used to confirm whether Watchdog is online, whether GatewayRuntime is running, whether the current project is correct, and whether API ports and health check policies meet expectations.

Watchdog Dashboard

AreaDescription
Top Status BannerDisplays Watchdog online status, GatewayRuntime running status, runtime, version, process ID, current item, and last error.
Number of Startup FailuresCounts the number of consecutive startup failures, which should normally be 0.
Health Check IntervalsWatchdog checks the health status of GatewayRuntime from the "Settings" page.
API PortWatchdog is used to check the API port for GatewayRuntime, and should match the actual listening port of the GatewayRuntime Web/API.
Maximum number of startup failuresAfter reaching this threshold, focus on checking package usage, runtime files, and port usage.
Action ButtonsSupports restarting gateways, stopping gateways, viewing logs, and refreshing status.
Real-time LogsBy default, the most recent logs are read and automatically scrolled to observe start, stop, and exception information.

Restart or Stop GatewayRuntime

  1. On the dashboard, click "Restart Gateway" or "Stop Gateway."
  2. Read the confirmation prompt before proceeding.
  3. After the operation is completed, observe the top status banner, process ID, and real-time log.
  4. If the status remains unchanged, click "Refresh" and then go to the "View Logs" page to read a more complete log.
Operation Impacts

Restarting or stopping GatewayRuntime interrupts acquisition, rule processing, and data forwarding. Before executing in the production environment, confirm that the upper-level system, field equipment, and data receiving end allow for short-term interrupts.

Project Management

Menu Path: Project Management.

Project management is used to upload, apply, download, and delete the GatewayRuntime package. The current project will have a "Current" label; the current project cannot be deleted or reapplied.

Watchdog Project Management

Column or OperationDescription
Check the boxAfter selecting a non-current project, you can perform batch deletion.
Project NameDisplay the package name; The currently running project displays the status point and the "Current" identifier.
Last Modification TimeThe last modification time of the project package, used to identify the order of uploads or updates.
SizePackage file size.
DownloadDownload the package locally; if the file name does not have an extension, the browser will replace it with .zip.
Applicationapplies this project as the current GatewayRuntime project.
DeleteDelete non-current items. The delete button for the current project is disabled.
UploadOpen the project upload popup.
RefreshReload the item list and current project status.

Upload Project Package

Click "Upload Project" to open the upload popup. The pop-up window supports dragging files and also clicking to select files.

Upload project popup

Configuration itemsDescription
Project filesupports .zip and .db. ZIP usually comes from Studio exports or release packages, while DB is used to directly upload project databases.
Upload RegionDrag files into the area and upload immediately; After successful upload, the list will automatically refresh.

After uploading, it is recommended to check three things: whether the project name meets expectations, whether the file size is obviously abnormal, and whether the last modification date is the same as the current upload.

Application Project

  1. Find the target project in the project list.
  2. Click "Apps".
  3. Confirm the operation in the confirmation box.
  4. After waiting for the operation to complete, refresh the list and dashboard.
  5. On the "Log View" page, confirm whether GatewayRuntime is starting as a new project.
Pre-application check

The application project will change the current running project of GatewayRuntime. Before running, it is recommended to create a backup in "Backup Management" or confirm that Studio/Field already has rollable project packages.

Download and Delete Projects

OperationsUsage ScenariosNotes
DownloadSend the current project back to Studio, retain the field version, and back up before troubleshooting.Downloading is a package and is not equivalent to running logs or Watchdog configurations.
DeleteClean up historical project packages and free up disk space.The current project cannot be deleted; Batch deletion will only select non-current items.

Log View

Menu Path: Log View.

Log view is used to read Watchdog runtime logs. Compared to real-time dashboard logs, this page is suitable for viewing more rows, exporting logs, and continuously monitoring the startup process.

Watchdog Log View

Configuration ItemsDescription
Number of entriesControl the number of log rows to be read this time, with options of 50, 100, 200, or 500. When troubleshooting startup failure, it is recommended to choose 200 or 500.
Automatic refreshAutomatically refresh page logs after activation; It can remain on during extended inspections.
ExportRefresh the current logs and export to watchdog-logs-time.txt.
Refreshmanually reread the log.
Line NumberLog Stream displays line numbers, making it easier to locate the same anomaly with colleagues.

Common inspection sequence:

  1. First, check the dashboard for the last error and the number of startup failures.
  2. Open "View Logs" and choose between 200 or 500 lines.
  3. Click "Refresh" to start viewing from the most recent restart or application of the project.
  4. After detecting port usage, package corruption, runtime missing, plugin missing, etc., return to the corresponding page to handle it.

Backup Management

Menu Path: Backup Management.

Backup management is used to create, restore, and delete current project backups. The bottom of the page will display the current number of backups and the maximum number of backups configured in "Settings."

Watchdog Backup Management

Column or OperationInstructions
Create a backupCreate a backup for the current project, which must be confirmed before execution.
Check the boxSelect Backup to perform batch deletion.
Backup NameBackup file name, usually used to identify dates and items.
Creation timeBack up creation time.
SizeBackup file size.
RestoreRestore the backup to the current item and requires warning confirmation.
DeleteDelete a single backup, which requires warning confirmation.
Batch deleteDelete multiple selected backups.
Maximum Number of BackupsMaximum number of backups from "Set > Backup Policy". When set to 0, the automatically cleaned backup is not kept.
ScenariosRecommended
Before uploading a new project,create a backup and keep the current runnable version.
Before restoring the backup,confirm whether the current project still needs to be retained; if necessary, create a new backup first.
Backup count reaches the limitAfter creating a new backup, the earlier backup will be cleaned up according to the limit; It is recommended to download or migrate important versions first.
Running abnormally after restorationImmediately review the logs and restore to the previous confirmed run-ready backup.
Recovery affects

Restoring backup will change the current GatewayRuntime project content. Before resuming, please ensure that the on-site version, plugin, and runtime environment corresponding to the backup are all available.

Tunnel Management

Menu Path: Tunnel Management.

Watchdog tunnel client actively connects to the Studio Broker, exposing the internal GatewayRuntime service to a specified external address. This page offers both card and table views, with status automatically refreshing every 10 seconds, and you can also manually click "Refresh".

Watchdog Tunnel Management

Area or OperationInstructions
Enable the Tunnelglobal switch to control the Watchdog tunnel client functionality.
Add a clientOpen the configuration drawer and add a client configuration.
Card/TableSwitch client-side display mode. Table views support batch deletion.
Activate allActivate all configured clients.
Disable allDisable all clients.
RefreshInstantly refresh client status and configuration.
ConfigurationOpen the tunnel configuration drawer.
Client StatusDisplays client name, connection status, tunnel ID, source address, external address, and number of active connections.

Tunnel Configuration Drawer

Click "Configuration" to open the tunnel configuration drawer.

Tunnel Configuration Drawer

Configuration ItemsDescription
Enable TunnelControl the global tunnel switch after saving. The top of the page switch also syncs this value.
Client ConfigurationDisplays the currently saved client. Each client can be expanded and edited.
Add a clientAdd a client form to the drawer.
SaveVerify the client name, server address, port, source address, and external address before saving.

Add Client Configuration

Click "Add Client" or "Add Client" in the drawer, and fill out the client form.

Add Client Configuration

Configuration ItemsDescription
Client NameMust be unique within the same Watchdog; verification will be repeated before saving.
Enableto control whether the client is included in the activation scope.
Tunnel server addressthe IP or domain name of the server where Studio Broker is located. Watchdog must be accessible from the field network.
Tunnel server portStudio Broker listening port, range 1-65535, should match the tunnel port saved in Studio Web's "Intranet Tunneling", commonly 7789; Other values are only filled in if Studio Broker is indeed changed to another port.
Authentication Tokenis consistent with Studio Broker's authentication token. This value is used for client-side connections to the broker; both case and space must be consistent.
access keymatches the access key for Studio Broker. When the Studio side enters the access key, Watchdog must enter the same value to bind the endpoint; When secondary verification is not used, both ends remain empty for easy troubleshooting.
Source addressservice address to be exposed on the network where Watchdog operates, for example, 127.0.0.1:6100. If GatewayRuntime and Watchdog are not on the same machine, you should enter the gateway address accessible by Watchdog.
External addressStudio Broker side external listening address, for example, 0.0.0.0:8889. External visitors will access this port on the Studio server.
Reconnection interval (seconds)Wait time for automatic reconnection after disconnection, minimum 1 second. If network jitter is frequent, increase the volume appropriately to avoid rapid reconnections.
DeleteDelete the current client configuration; Connected clients will be disabled before being deleted.

Steps for Tunnel Joint Debugging

  1. Save the broker configuration and start the service on the "Intranet Tunneling" page in Studio Web.
  2. Enable tunnels in "Tunnel Management" on Watchdog Web.
  3. Add a client, fill in the Studio Broker address, port, and authentication token; When using the access key on the Studio side, enter the same access key here.
  4. Enter the source address, for example, the GatewayRuntime Web/API address 127.0.0.1:6100.
  5. Enter the external address, for example 0.0.0.0:8889.
  6. After saving the configuration, click "Activate."
  7. Go back to Studio Web's "Intranet Tunneling > Endpoint Information" to see if bound endpoints appear.
  8. Use an external network to access the external address and confirm access to GatewayRuntime Web or call the API.

Settings

Menu path: Settings.

The settings page is divided into four groups according to the left navigation: Account Security, Gateway Operation, Backup Policy, and Security. After modifying the parameters, you need to click "Save" at the bottom of the page for persistence; Clicking "Reset" will restore the value read when the page was opened this time.

Watchdog Settings

GroupingConfiguration ItemsDescription
Account SecurityUsernameWatchdog Login Username.
Account SecurityChange PasswordOpen the password change popup.
Gateway runtimeStart gateway automaticallyWhether Watchdog starts GatewayRuntime automatically after Watchdog starts. The bundled configuration enables this option so collection resumes automatically after a power outage or service restart.
Gateway runtimeStartup argumentsCommand-line arguments appended when Watchdog starts GatewayRuntime. Enter them only when a listening address, environment option, or runtime option is required; otherwise leave this field blank.
Gateway runtimeAPI portGatewayRuntime API port in the range 1-65535. The bundled configuration commonly uses 6100. Watchdog requests http://localhost:<api-port>/api/health/health locally. This is not the Watchdog login port; an incorrect value may cause the dashboard to report that the gateway has stopped and trigger a restart.
Gateway runtimeHealth check intervalInterval in seconds between GatewayRuntime status checks; minimum 1. The bundled value is 30 seconds. A shorter interval detects failures sooner but calls the API more frequently.
Gateway runtimeAPI check timeoutTime in seconds to wait for a GatewayRuntime API response; minimum 1. The bundled value is 60 seconds. Increase it when the network is slow or the gateway takes longer to start.
Gateway runtimeMaximum startup failuresNumber of consecutive startup failures before manual intervention is required; minimum 0. The bundled value is 3. A smaller value surfaces startup problems sooner, while a larger value may delay alarms.
Backup policyMaximum backupsMaximum number of backups retained on the backup management page; minimum 0. The bundled value is 10. With 0, a newly created backup is immediately cleaned up, so this is not suitable as a retention policy.
SecurityAllowed originsWeb origins allowed to access the Watchdog API across origins. Separate multiple origins with commas, for example http://a.com,http://b.com. Leave blank to allow all origins; for public-network deployments, enter only trusted Web origins.

Click "Change Password" to open the password change pop-up window.

Change Password Popup

Configuration ItemsDescription
Old PasswordCurrent Login Password.
New passwordThe new password to set.
Confirm the passwordEnter the new password again, but it must match the new password.
Settings Recommendations

After modifying API ports, health check intervals, maximum boot failure counts, and other operating parameters, it is recommended to return to the dashboard to observe at least one health check cycle and confirm that the status reads normally.

Studio Integration Process

ObjectiveOperation Order
Publish a new project from StudioCreate or import a project in Studio → Configure Watchdog services and test connections → Upload project → Watchdog Project Management Confirm project → Watchdog dashboard and logs confirm running status.
Confirm target projects from On-site ReturnWatchdog Project Management → Studio, select "Download from Gateway", select Watchdog and Project → Studio, then check the project name and plugins.
Remote Access to the Internal Network GatewayStudio Launch Broker → Watchdog Configuration and activate the tunnel client → Studio View Endpoint → External Access Address.
Guaranteed before releaseWatchdog backup management Create backup → Studio upload project → Watchdog application project → Watchdog log confirmed successfully.

Common Issues

PhenomenaHandling Suggestions
Login FailureCheck Username, Password, and Watchdog Service Port; If you forget your password, you need to reset the configuration according to the on-site maintenance process.
localhost is normal but IP cannot accessCheck if Watchdog is listening at 0.0.0.0:6200, whether remote management and normal HTTP switches are enabled, and allow the firewall port.
Page prompt importKey ErrorClear browser and proxy cache and republish the complete frontend static resource; The current page does not rely on subtle.importKey; the dynamic resources required for login must be able to load properly.
Prompt login challenge invalidResubmit login to obtain a new challenge; The challenge expires in two minutes and can only be used once.
Watchdog restarts and returns to the login pageMemory Bearer session is invalid; log in again.
The dashboard shows that the gateway has stoppedchecks whether the current project exists, whether the API port is correct, whether runtime files are intact, and reviews the logs.
The number of startup failures continues to increasePrioritize viewing port occupancy, missing plugins, project database exceptions, and runtime missing information in the logs.
Project upload failureCheck whether the file format is .zip or .db, whether the file is corrupted, and whether disk space and service permissions are normal.
No status changes after applying the projectRefreshing project management and dashboard; If still unchanged, check the logs to confirm whether the application action failed.
Abnormal project after backup restorationRestore to the previous confirmed runtime backup and check the runtime and plugin versions of the recovery target.
Tunnel shows as inactivatedConfirm that global "Enable Tunnel" is enabled and check if the client has been saved.
The tunnel is connected but not accessibleCheck whether the source address is accessible on the Watchdog machine, whether the external address port is occupied, and whether the firewall is allowing access.
Studio side cannot see endpointsCheck whether Studio Broker is running and whether authentication tokens are consistent; When entering the access key on the Studio side, make sure the Watchdog access keys are exactly the same; When not using secondary verification, both ends should be left empty.