Skip to content

Explorer Reports "View Template Not Found"

Overview

After deployment, templates may not exist. This document helps resolve such issues and complete the initialization of view templates.

As shown in the following figure:

Sync Commands

Option 1: Sync via the Launcher UI

Log in to the Launcher management interface in the browser, click Configuration in the top-right corner, and select the following options to sync.

Note: After clicking sequentially, wait a few minutes for the sync to complete. If the above method does not succeed, you can choose Option 2 to manually execute the sync operation.

Option 2: Execute via Command Line

  1. Enter the inner container under the forethought-core Namespace:
kubectl exec -ti -n forethought-core <inner_pod_name> -- /bin/bash
  1. If you need to modify Explorer or view templates, edit the corresponding template files in the /config/cloudcare-forethought-backend/data_package/dataflux-template directory.

  2. Execute the following sync command to copy templates and other data from the data package to the working directory, and then automatically send an update task (sync from the working directory to the database):

curl 'http://0.0.0.0:5000/api/v1/inner/upgrade/tasks/execute_task_func' \
-H 'Content-Type: application/json' \
--data-raw $'{"script_name": "data_package_task", "func_name": "distribute_data_package", "funcKwargs": {"keys": ["dataflux_template"], "is_force": true}}' \
--compressed

Feedback

Is this page helpful?