Skip to content

Service Management

This document describes how to manage backend services through CueMate's main window, including viewing service status, restarting services, viewing logs, and other operations.

1. Service Overview

NOTE

CueMate uses a microservices architecture. All backend services run in Docker containers. Under normal circumstances, all 6 services should be in "Running" status.

CueMate includes 6 backend service containers, all running in Docker containers:

No.Service NameContainer NamePortDescription
1Backend API Servicecuemate-web-api3001Business logic, user authentication, data management
2LLM Router Servicecuemate-llm-router3002LLM request routing, streaming response handling
3Knowledge Base Retrieval Servicecuemate-rag-service3003Vector retrieval, semantic search
4Main Window Servicecuemate-web3004Provides main window access
5Vector Databasecuemate-chroma8000Vector data storage
6Speech Recognition Servicecuemate-asr10095Real-time speech-to-text

IMPORTANT

Service Dependencies:

  • Main Window depends on API Service
  • API Service depends on LLM Router Service and Knowledge Base Retrieval Service
  • Knowledge Base Retrieval Service depends on Vector Database
  • Desktop Client depends on Speech Recognition Service

When restarting services, pay attention to the dependency order. Dependent services should be started first.

2. View Service Status

2.1 Enter Docker Monitor Page

Top Dropdown Menu

Click "Docker Monitor" in the top dropdown menu to enter the service status viewing page.

Enter Docker Monitor Page

2.2 View Service Statistics

The top of the page displays service operation overview:

Container Statistics

  • Total Containers: Total number of all service containers in the system
  • Running: Number of currently running services (green)
  • Stopped: Number of stopped or abnormally exited services (orange)

Normal Status: All 6 services should display as "Running".

2.3 View Service List

The service list shows detailed information for each container:

Container List

No.FieldDescription
1Container NameName of the service container, e.g., cuemate-web-api
2ImageDocker image version used
3StatusRunning (green) / Stopped (orange) / Exited (red)
4PortService port mapping information
5SizeDisk space occupied by container
6ActionsOperation buttons like restart, view logs

3. Restart Services

3.1 Restart Single Service

When a service is abnormal, you can restore it by restarting:

Restart Container

Restart Steps:

  1. Find the service to restart in the container list
  2. Click the "Restart" button in that service row
  3. Click "Confirm" in the confirmation dialog
  4. Wait for restart to complete (usually a few seconds to tens of seconds)
  5. Check if service status returns to "Running"

Notes:

  • Restarting a service will cause brief interruption
  • Configuration and data will not be lost after restart
  • If service is still abnormal after restart, check service logs to troubleshoot

Common Restart Scenarios:

  • Service status shows "Exited" or "Stopped"
  • Service responds slowly or not at all
  • Configuration updates require restart to take effect
  • System prompts to restart service

4. View Service Logs

4.1 View Container Logs

Click the "Logs" button in the service list to open the log viewer:

Container Logs

Log Viewer Features:

  • Display real-time service operation logs
  • View error and exception information
  • Copy log content for analysis
  • Refresh to get latest logs

Log Operations:

Log Operations

  • Refresh: Get the latest log content
  • Copy: Copy logs to clipboard
  • View Details: View complete container information

4.2 View System Logs

Go to the Log Management page to view more detailed system logs:

Top Dropdown Menu

Click "Log Management" in the top dropdown menu to view:

  • Log files categorized by service
  • Filter by level (DEBUG, INFO, WARN, ERROR)
  • View historical logs by date
  • Clean up and export log files

For detailed usage, please refer to the Log Management page.

5. Service Troubleshooting

5.1 Service Won't Start

Symptoms:

  • Service status shows "Exited" or "Stopped"
  • Stops immediately after restart

Troubleshooting Steps:

  1. Go to Docker Monitor page
  2. Click "Logs" button for the abnormal service
  3. View error messages in the logs
  4. Identify the problem cause based on error information

Common Causes:

  • Port occupied: Log shows "Address already in use"
  • Dependent service not started: Log shows connection failure
  • Configuration error: Log shows configuration file error
  • Insufficient resources: Log shows memory or disk space insufficient

5.2 Slow Service Response

Symptoms:

  • Main window loads slowly
  • API requests timeout
  • Operation response delay

Troubleshooting Steps:

  1. Go to Docker Monitor page
  2. Check if all services are running
  3. Restart the slow service
  4. Check logs for any exception errors

Common Causes:

  • Insufficient memory causing service lag
  • Slow database queries
  • Network connection issues
  • Too many concurrent requests

5.3 Frequent Service Restarts

Symptoms:

  • Service status changes repeatedly
  • Stops immediately after starting

Troubleshooting Steps:

  1. View service logs to locate crash cause
  2. Check if system resources are sufficient
  3. Check if dependent services are normal

Common Causes:

  • Memory leak causing service crash
  • Improper health check configuration
  • Dependent service connection failure
  • Uncaught exceptions in code

6. System Configuration

6.1 Basic Settings

Go to the System Settings page to configure system parameters:

Top Dropdown Menu

Click "System Settings" in the top dropdown menu to configure:

  • System language and timezone
  • Interface theme (light/dark)
  • Default LLM selection
  • Account information

For detailed configuration methods, please refer to the System Settings page.

6.2 Model Configuration

Go to the Model Settings page to configure AI models:

  • Add and manage LLM models
  • Configure API Keys
  • Test model connections
  • Set default model

6.3 Voice Settings

Go to the ASR Settings page to configure speech recognition:

  • Select microphone device
  • Select speaker device
  • Test speech recognition effect

7. Data Backup and Recovery

7.1 Data Storage Location

CueMate's data is stored at the following location:

macOS System:

~/Library/Application Support/cuemate-desktop-client/data/
├── sqlite/          # SQLite database
├── chroma/          # Vector database
└── logs/            # Log files

7.2 Backup Data

Important data includes:

  • SQLite database: Position information, interview records, user data
  • Vector database: Interview questions, knowledge base data
  • Configuration files: Model configuration, system settings

Backup Recommendations:

  • Regularly backup the cuemate-desktop-client/data folder
  • Always backup data before upgrading
  • Use Time Machine or other backup tools for automatic backup

7.3 Restore Data

If data is lost or corrupted, you can restore from backup:

  1. Quit CueMate application
  2. Copy the backed-up data folder back to its original location
  3. Restart CueMate application
  4. Data will be automatically restored after login

8. Version Updates

8.1 Online Updates

Use the version management feature on the License Management page to update:

  1. Go to License Management page
  2. Click "Version Management" button in the top right corner
  3. View available version list
  4. Select target version to view changelog
  5. Click "Update to This Version" to execute update

For detailed update process, please refer to the Version Upgrade documentation.

8.2 Update Notes

  • Data is automatically backed up before update
  • Do not close the application during update
  • Update failures will automatically rollback
  • Recommended to update during off-peak hours

9. FAQ

9.1 How to check current version?

Go to the System Settings page and view the current version number in the "Software Version" field.

9.2 How to handle service exceptions?

  1. Go to Docker Monitor page
  2. Check which services have abnormal status
  3. Click "Logs" button to view error messages
  4. Try restarting the abnormal service
  5. If issue persists, check Troubleshooting documentation

9.3 How to clean up log files?

Go to Log Management page:

  1. Select log files to clean up
  2. Click "Clean" button to clear log content
  3. Or use "Clean Today's Logs" for batch cleanup

9.4 Where is data stored?

All data is stored in ~/Library/Application Support/cuemate-desktop-client/data/ directory:

  • You can choose whether to keep this folder when uninstalling
  • Recommended to regularly backup this folder
  • After reinstallation, data in this folder will be automatically recognized

10. Get Help

If you encounter issues that cannot be resolved:

Released under the GPL-3.0 License.