Troubleshooting Guide
Comprehensive troubleshooting guide for RAILWISE products, covering common issues, diagnostic methods, solutions, and escalation paths.
Troubleshooting Guide
Section titled “Troubleshooting Guide”Overview
Section titled “Overview”This guide provides troubleshooting methods for common issues with RAILWISE products (CLI, WorkWise, TSM, OS). Follow the diagnostic steps to quickly locate and resolve problems.
CLI Troubleshooting
Section titled “CLI Troubleshooting”Issue 1: Installation Failure
Section titled “Issue 1: Installation Failure”Symptom: npm install fails with permission or network errors
Diagnosis:
# Check Node.js versionnode --version # Should be v18+
# Check npm versionnpm --version # Should be v10+
# Check networkping registry.npmjs.orgSolutions:
| Cause | Solution |
|---|---|
| Permission error | Use sudo (macOS/Linux) or run as Administrator (Windows) |
| Network timeout | Use mirror: npm install -g @railwise/cli --registry=https://registry.npmmirror.com |
| Node.js version too low | Upgrade Node.js to v18+ |
Issue 2: Command Not Found
Section titled “Issue 2: Command Not Found”Symptom: railwise: command not found
Diagnosis:
# Check npm global directorynpm config get prefix
# Check PATHecho $PATH # macOS/Linux# or$env:PATH # PowerShellSolution:
# Add npm global directory to PATHexport PATH="$PATH:$(npm config get prefix)/bin"Issue 3: Data Query Returns Empty
Section titled “Issue 3: Data Query Returns Empty”Symptom: railwise data list returns no results
Diagnosis:
# Check workspace initializationls ~/railwise-workspace/
# Check data directoryls ~/railwise-workspace/data/
# Check project configurationrailwise config get projectSolution:
# Import sample datarailwise data import --sample
# Or connect to remote data sourcerailwise config set api.url https://api.railwise.example.comWorkWise Troubleshooting
Section titled “WorkWise Troubleshooting”Issue 1: Installation Failure
Section titled “Issue 1: Installation Failure”Symptom: Installation fails or application cannot start
Diagnosis:
- Check system requirements
- Check disk space
- Check GPU compatibility
Solutions:
| Cause | Solution |
|---|---|
| Missing dependencies | Install Visual C++ Redistributable (Windows) |
| GPU compatibility | Start with --disable-gpu flag |
| Disk space insufficient | Free up disk space or change installation path |
Issue 2: Blank Interface After Startup
Section titled “Issue 2: Blank Interface After Startup”Symptom: Interface is blank or unresponsive after startup
Solution:
# Disable GPU accelerationWorkWise --disable-gpu
# Or reset configurationWorkWise --reset-configIssue 3: Cannot Connect to TSM Server
Section titled “Issue 3: Cannot Connect to TSM Server”Symptom: Cannot connect to TSM server or data sync fails
Diagnosis:
- Check network connection
- Confirm server address and port are correct
- Check firewall settings
Solution:
# Test connectioncurl http://tsm-server:8080/api/v1/health
# Check firewallsudo ufw statussudo ufw allow 8080TSM Troubleshooting
Section titled “TSM Troubleshooting”Issue 1: Service Startup Failure
Section titled “Issue 1: Service Startup Failure”Symptom: Docker containers fail to start
Diagnosis:
# Check port occupancysudo lsof -i :8080
# Check logsdocker-compose logs tsm-serverSolutions:
| Cause | Solution |
|---|---|
| Port conflict | Change port mapping in docker-compose.yml |
| Configuration error | Check .env file configuration |
| Database connection failure | Check database container status |
Issue 2: Database Connection Failure
Section titled “Issue 2: Database Connection Failure”Symptom: Application cannot connect to database
Diagnosis:
# Check database container statusdocker-compose ps postgres
# Test database connectiondocker-compose exec tsm-server npx pg-ping --host postgres --port 5432Solution:
# Restart database containerdocker-compose restart postgres
# Check database logsdocker-compose logs postgresIssue 3: Instrument Communication Failure
Section titled “Issue 3: Instrument Communication Failure”Symptom: Total station cannot connect or data acquisition fails
Diagnosis:
- Check instrument power status
- Check network connection
- Check instrument remote mode
Solution:
# Test network connectionping 192.168.1.100
# Check instrument status in TSM interface# System Management > Instrument Management > Test ConnectionOS Troubleshooting
Section titled “OS Troubleshooting”Issue 1: Cannot Login
Section titled “Issue 1: Cannot Login”Symptom: Login fails or account not activated
Solutions:
| Cause | Solution |
|---|---|
| Wrong username/password | Reset password or contact administrator |
| Account not activated | Contact administrator to activate |
| Account locked | Wait for auto-unlock or contact administrator |
Issue 2: Missing Features
Section titled “Issue 2: Missing Features”Symptom: Some features are not visible or inaccessible
Diagnosis:
- Check current role permissions
- Confirm correct project is selected
- Check if feature is enabled
Solution:
- Confirm current role permissions in
Personal Center > Permissions - Contact administrator to apply for permissions
- Confirm correct project is selected
Issue 3: Report Generation Failure
Section titled “Issue 3: Report Generation Failure”Symptom: Report generation fails or times out
Diagnosis:
- Check if selected monitoring points have data
- Check if time range is reasonable
- Check if template configuration is correct
Solution:
- Confirm selected monitoring points have data
- Narrow time range
- Try other templates
- Contact technical support if problem persists
Escalation Path
Section titled “Escalation Path”If the above solutions cannot resolve the issue, please escalate through the following channels:
| Level | Channel | Response Time | Applicable Scenario |
|---|---|---|---|
| Level 1 | Documentation / FAQ | Immediate | Common issues |
| Level 2 | Community Forum | 24 hours | General questions |
| Level 3 | Technical Support Email | 48 hours | Complex issues |
| Level 4 | Phone Support | 4 hours | Urgent issues |
| Level 5 | On-site Support | Negotiated | Critical issues |
Contact Information:
- Technical Support Email: support@railwise.cn
- Phone Support: 400-XXX-XXXX (Working hours 9:00-18:00)
- Community Forum: GitHub Discussions
Diagnostic Tools
Section titled “Diagnostic Tools”CLI Diagnostic
Section titled “CLI Diagnostic”# Comprehensive diagnosisrailwise doctor
# Verbose diagnosisrailwise doctor --verbose
# Check specific modulerailwise doctor --module dataTSM Diagnostic
Section titled “TSM Diagnostic”# Service health checkcurl http://tsm-server:8080/api/v1/health
# Database connection checkdocker-compose exec tsm-server npm run db:check
# Instrument communication checkdocker-compose exec tsm-server npm run instrument:checkRelated Documents
Section titled “Related Documents”RailWise · Smart Monitoring — Engineering Surveying and Safety Monitoring Digital Solutions
