On this page
Studio Site Management
The Site management page maintains Watchdog connections, gateway access, runtime status and backup operations. Management connectivity and business data synchronization are configured and verified separately.
For the illustrated installation, enrollment, deployment and data workflow, follow Center and edge deployment.
This page covers connections, remote maintenance and batch program updates across sites. Projects owns local validation, deployment and retrieval; Watchdog owns project application, logs and process supervision at one site.
Before connecting
Prerequisites
- Confirm that the Studio server can reach Watchdog Web and obtain its host, port and valid account.
- Enable the required remote-management and deployment permissions before uploads, restores or process controls.
- Identify the target site before applying a project or backup, especially when sites have similar names.
Page entry
Menu path: Studio Web > Site management.
| Area or Actions | Instructions |
|---|---|
| Add site | Open the site configuration drawer. |
| Gateway UI | Open the site’s Gateway Web interface with its separate Gateway account. |
| Site operations | Open the site’s Watchdog from its operation menu. |
| Card View | Displays service name, address, Watchdog status, and TGateway status. |
| List View | Displays Watchdog services in a tabular format, suitable for multi-gateway management. |
| Generate enrollment code | Create a ten-minute, single-use code for an edge-initiated site connection. |
| Data synchronization | Connect both Gateways, select an edge forwarding group, then configure and enable its data link; optional TLS can issue the certificates. |
| Site selection | Select card/table checkboxes for batch actions, including on phones. Filtering, changing views and refreshing preserve valid selections. |
| Batch test | Test the selected sites and report successes and failures. |
| Batch update gateway program | Download and verify the official package for the target platform. Check all selected sites and allow for restarting running gateways. |
| Test | Immediately test the connection from Studio to Watchdog. |
| Backup | Open the backup drawer of the target Watchdog. |
| Edit | Change the service name, address, port, username, and password. |
| Delete | Delete the Watchdog connection configuration saved in Studio without deleting items or backups on the target gateway. |
Use the site’s operation menu to open Watchdog through Site operations, or to edit or delete the connection. Gateway and Watchdog use separate accounts.
Meaning of Status
| Status | Explanation | Handling Suggestions |
|---|---|---|
| Watchdog Online | Studio can access the Watchdog API and read states. | You can continue uploading projects, downloading projects, or viewing backups. |
| Watchdog offline | Studio cannot access Watchdog services. | Check addresses, ports, firewalls, account passwords, and whether services are running. |
| Gateway Running | Watchdog detects that TGateway is running. | It is still recommended to back up before uploading or restoring data. |
| Gateway stopped | Watchdog is online but TGateway is not running. | View logs or launch the gateway in the Watchdog Web dashboard. |
| Gateway unknown | Watchdog offline or status read failure. | First, restore the Watchdog connection. |
Connect and test a site
Enroll a site
- Add a site and choose Edge connects to center. Enter the reachable center hostname, local Watchdog and Gateway ports, and Watchdog credentials.
- Save and select Generate enrollment code from the site’s operation menu.
- Open Watchdog → Tunnel management → Connect to center. Enter the center HTTP/HTTPS URL and code.
- Verify that both management tunnels are connected and bound, then test the site and open its gateway UI from Studio.
The code expires after ten minutes and can be used once. Regenerating it, editing or deleting the site, or restarting Studio revokes an unused code. No management package needs to be transferred. LAN deployments can use direct connections. TLS is optional; see Management certificates for private-CA trust and renewal.
Add or edit a site
Click Add site, or select Edit from an existing site’s operation menu.
| Configuration Items | Description |
|---|---|
| Service Name | The name displayed in Studio is recommended to include site or production line information. |
| Region / Group | Group sites by region, production line, or organization. |
| Maintenance connection | Choose a direct LAN connection or an edge-initiated connection to the center. |
| Reachable center host | For edge-initiated connections, enter a center domain or IP reachable by the site and maintenance browser. |
| Service Address | the IP or domain name of the Watchdog service, with the port entered in the “Service Port” section. Regular HTTP IPs are officially supported, for example, entering 192.168.1.20. |
| Service Port | The port used by Studio to access Watchdog Web/API, range 1-65535. Bundled Watchdog commonly used 6200; If the Watchdog port has been modified on site, fill in the actual port. Enter the Watchdog port here, do not enter the TGateway Web/API port, and do not repeatedly enter the port in the service address. |
| Username | Watchdog login account. |
| Password | Watchdog login password. |
| Site Gateway port | The Gateway Web/API listening port at the site, used to open its UI and configure reverse mappings. |
| Use HTTPS | Match the existing protocol of the remote service; this option does not enable a remote HTTPS listener. |
| Save | Add or update connection configurations. |
| Cancel | Close the drawer without saving. |
After saving, it is recommended to click “Test” immediately. A successful test only means Studio can access Watchdog; Whether the target TGateway can run properly depends on the gateway status and Watchdog logs.
Studio uses the saved Watchdog account to log in automatically and encrypts the login password. It handles login verification for connection tests, status updates, project transfers, and backup management. After a Watchdog restart, Studio logs in again and retries once.
Connection Test
| Test Results | Explanation |
|---|---|
| Success | Studio has connected to Watchdog and read version and other status information. |
| Failures | Issues with address, port, network, account password, or Watchdog service status. |
Check in order when tests fail:
- Can the browser or server access
http://<watchdog-address>:<port>? - Can Watchdog Web log in with the same account and password?
- Whether the firewall allows Watchdog ports.
- Whether the Watchdog service is activated.
- If accessed through the tunnel, confirm that both Studio Broker and Watchdog Client have been successfully bound.
Back up and transfer projects
Back up and restore site connections
Before backing up or moving the site connections saved in Studio, stop Studio and save both Data/watchdog_configs.json and Data/studio_credentials.key from its runtime directory. To restore them, place both files in the destination Studio’s Data directory before starting the service. Keep the key with the connection configuration so that saved passwords and site access details can be restored.
If the key is lost or the saved connections cannot be decrypted, stop Studio and move the original Data/watchdog_configs.json to a backup location. Start Studio and add the sites again with their Watchdog credentials. For sites using Edge connects to center, generate a new enrollment code and enroll again from Watchdog.
Backup Management
Click “Backup” in the Watchdog card or list operation to open the backup drawer.
| Columns or Operation | Instructions |
|---|---|
| Create Backup | Back up the current project on the target Watchdog. |
| Name | Name of the backup on the target Watchdog. |
| Backup Type | Project Backup, Project with Gateway Program Package, or Project and Gateway Program Snapshot, based on the actual contents. |
| Project | Project recorded in the backup; an initial snapshot may have no project. |
| Creation time | Back up creation time. |
| Size | Backup Size. |
| Restore | Restore the project represented by the selected backup; another project’s backup switches the current project. |
| Delete | Delete the backup on the target Watchdog. |
Before confirming restoration, check the site, backup name, project, and scope. Project backups keep the installed program; project program packages overwrite their packaged program files; complete snapshots restore the project and the entire gateway program. On-site caches remain unchanged.
The backup panel shows the name, type, project, creation time, size, and actions. Long names wrap. In a narrow window, scroll horizontally to inspect the columns; Restore and Delete remain fixed on the right.
Allow a maintenance window for program restoration and check the scope in the confirmation dialog.
After restoring, verify the gateway and business data path. The Studio local copy is unchanged; download the project again when needed.
Linking with Project Upload
When uploading a project from “Projects”, the target gateway list comes from the Watchdog services saved on this page.
| Upload fields | Relationship with Watchdog |
|---|---|
| Target gateway | A site saved in Site management. |
| Also Update Gateway Program | Off by default: upload project data using the matching gateway installed on the target. Enable it to install the Studio bundled gateway only when its platform matches the target OS and CPU. |
Use the project deployment checks for backup, platform matching and data acceptance. This page maintains the target connection; an online test still needs to be followed by collection and forwarding checks on the site TGateway.
Integration with Project Download
When clicking “Download from Gateway” in “Projects”, the source gateway also comes from the Watchdog services saved on this page.
| Download field | Description |
|---|---|
| Source gateway | Select a Watchdog site to load its project list. |
| Project List | Select the project you want to download back to Studio. |
| Local Project Name | Defaults to the selected remote name. Rename the local copy without changing the site project. |
| Overwrite Local Project with This Name | Checks the local target name for conflicts; stop that local project before overwriting. |
Downloading supports site configuration retrieval, fault reproduction, and version comparison. The current project returns its latest live content; non-current projects return saved content. Stop a same-name local project before overwriting it; its local identity, creation time, and Web port are retained. Open and edit the downloaded project in Studio, validate it locally, and upload it again. See Projects for project content and overwrite rules.
Web responsibilities and data synchronization
Watchdog Web responsibilities
| Tasks | Recommended Entry |
|---|---|
| Saving Multiple Watchdog Connections | Studio Web > Site management |
| Upload Studio Projects | Studio Web > Projects |
| Download Live Projects to Studio | Studio Web > Projects |
| Observe Target Run Logs | Watchdog Web > Logs View |
| Create Current Project Backup | Watchdog Web > Backup Management or Studio Site management backup drawer |
| Modify Watchdog Running Parameters | Watchdog Web > Settings |
| Configure Watchdog Tunnel Client | Watchdog Web > Tunnel Management |
Configure center-edge data synchronization
At the site, select Data synchronization. Enter the center Gateway management URL and separate credentials for both Gateways. Gateway and Watchdog accounts are independent; passwords are cleared when the panel/page closes.
- Choose GatewayMqtt or SyncBridge and enter the center data host/port reachable from the site. Management URLs and data ports are separate endpoints.
- Optionally enable Use TLS; it is off by default. Studio issues and installs the data certificates. The center retains the CA signing key and server certificate; the site receives the public CA, and SyncBridge also receives a per-site client certificate with its private key.
- Select Connect both Gateways to sign in, check the plugins and read the edge’s enabled forwarding groups. Create a group at the edge first if none exists, then reconnect.
- Select the edge forwarding group. Its existing variable scope and trigger remain; this does not automatically include every edge variable.
- Select Configure and enable. Studio saves center and edge settings and checks the real data link. GatewayMqtt applies the center variable plan after the first snapshot. The panel reports each stage; completed stages remain after a failure so that you can repair and retry.
GatewayMqtt deploys a GatewayMqttCollectServer at the center and a MqttClientProducer at the edge. Sites sharing a center address/data port share the listener, preserving existing sources and credentials. Repeating the operation reuses objects and passwords. External-Broker deployments use GatewayMqttCollectClient in the Gateway plugin editor.
SyncBridge deploys HubServer and EdgePublisher for the selected configuration and current values. TLS uses mutual certificate verification; non-TLS retains identity/token validation. Automatically issued private certificates do not publish online revocation information, so that lookup is disabled while chain, validity, hostname and Peer identity checks remain. New links have reverse writes/RPC disabled.
All sites sharing a listener must use the same TLS mode. To change it, use a different data port or maintain the whole link in Gateway. Manage issued certificates in each Gateway; conflicting names, expired certificates and invalid purposes are rejected rather than overwritten. Studio management HTTPS trust remains separate from data TLS.
Both configurations saved confirms persistence at both ends. Data connection confirmed additionally requires the first MQTT snapshot and applied variable plan, or a connected SyncBridge Peer with its applied configuration revision. MQTT conflicts/type changes stop automatic application for review in the center collector’s debug plan. Check fresh values afterwards; management connectivity does not prove data synchronization, and current-value synchronization does not prove complete history backfill.
Verify the connection
- Test the saved site and confirm Watchdog is online with a readable version.
- Check TGateway status; inspect Watchdog logs if stopped or unknown.
- Open the backup drawer and confirm that the list belongs to the intended site.
- Confirm that this site is available in project upload/download selectors with the correct host and name.
An online management test still requires the project deployment checks on the target TGateway and data path.
Batch update gateway programs
- Select sites in the card or table view and choose Batch update gateway program. Mobile cards also support selection.
- Wait for the current release and site states. Check the site names, latest gateway version, and target platform. Each batch requires online sites with the same platform; update different platforms in separate batches.
- Confirm the update. Studio downloads the complete official site package for that platform, verifies it, and uploads its gateway program to Watchdog. The site platform can differ from the Studio computer.
- Review every site’s result. Open each updated gateway and check its version, project, collection, and forwarding. Resolve partial failures using their individual errors.
On a phone, select the checkbox at the upper-left of each site card before choosing a batch action. Filtering and changing views preserve valid selections. Check every target name in the update panel before submitting.
Leaving Sites closes the update panel and prevents an unfinished confirmation from submitting. Updates already submitted continue running. When you return, refresh site states and check the actual gateway version and operation before submitting another update.
This updates the gateway program while retaining the Watchdog host, current project, configuration, databases, scripts, custom nodes, rules, certificates, and PluginCache. Running gateways restart; manually stopped gateways remain stopped. Watchdog creates a safety backup before replacement. To roll back, confirm the Project and gateway program snapshot scope in the backup list.
Download or verification failure does not submit files to sites. The target Watchdog owns program replacement, health checks, and recovery. Verify the actual business data path after completion.
If checking for updates fails, check the network connection from Studio to the download service, then choose Check for Updates in the same panel. Your selected sites remain unchanged. No release package is available means the catalog was loaded successfully but has no release. A missing platform package is reported only after the catalog loads successfully.
If the catalog request times out, check again later. For repeated timeouts or HTTP 502 errors, record the time and complete error message and ask the download service maintainer to inspect upstream request logs. A failed catalog query does not submit a program to any site.
Frequently Asked Questions
| Phenomena | Handling Suggestions |
|---|---|
| Test failure after adding a service | Remove a duplicated port from the host field and verify the separate port and credentials. |
| HTTP IP addresses cannot be saved or accessed | current version allows HTTP IPs. Check whether Watchdog is listening to 0.0.0.0:6200 and enable remote management, standard HTTP permissions, and firewall ports. |
| Connection test returns 401 | Check Watchdog account and password; After Watchdog reboots, Studio logs in again, and a persistent 401 usually means credentials are invalid. |
| Connection test returns 403 | Check Watchdog RemoteManagementEnabled; Upload, recovery, and process control also require RemoteDeploymentEnabled. |
| Watchdog is online but the gateway stops | open the Watchdog web dashboard to view the last errors and logs. |
| Backup drawer is empty | The target Watchdog has no backup, or the backup list failed to read; You can check again on Watchdog Web. |
| Upload target list is empty | Add and save a site in Site management first. |
| Gateway abnormality after restoring backup | Check Watchdog logs, and restore to the previous backup or re-upload the project if necessary. |








