Troubleshooting
Service Startup Failure
Symptoms
Docker container fails to start
Service process exits abnormally
Port access failure
Diagnosis Steps
Check Port Usage
netstat -tlnp | grep -E "(4567|4568|27017)"Validate Configuration Files
# Check configuration file syntax
docker-compose config
# View detailed startup logs
docker-compose up --no-daemonCheck Docker Images
docker images | grep selfserviceSolutions
Port Occupied: Modify the port in the configuration file or stop the program occupying the port
Configuration File Errors: Check JSON syntax and YAML format
Image Missing: Re-execute
docker load -i selfservice.tar
P2P Network Connection Failure
Symptoms
Unable to connect to P2P network
Certificate validation failure
Network timeout
Diagnosis Steps
Check P2P Configuration
cat pango.confValidate Certificate Expiry
CERT_EXPIRED=$(grep routecertexpired pango.conf | cut -d'=' -f2)
CURRENT_TIME=$(date +%s)
if [ $CURRENT_TIME -gt $CERT_EXPIRED ]; then
echo "Certificate expired, needs update"
fiTest Network Connectivity
ping -c 3 x08.a867744.comSolutions
Certificate Expired: Obtain a new Self Service certificate and update
pango.confNetwork Issues: Check firewall and network connectivity
Configuration Errors: Confirm correctness of
t2trepeaterand other parameters
Application Service Connection Failure
Symptoms
Self Service node cannot access application service
API call timeout or failure
Connection refused
Diagnosis Steps
Check Application Service Configuration
grep "remoteService" config.jsonTest Application Service Connectivity
REMOTE_SERVICE=$(grep -o '"remoteService": "[^"]*"' config.json | cut -d'"' -f4)
curl -v $REMOTE_SERVICEValidate Network Connectivity
# Test TCP connection
telnet $(echo $REMOTE_SERVICE | sed 's|http://||' | cut -d':' -f1) $(echo $REMOTE_SERVICE | sed 's|.*:||' | cut -d'/' -f1)Solutions
Application Service Not Running: Start the application service
Address Misconfiguration: Modify the
remoteServiceaddress inconfig.jsonFirewall Blocking: Adjust firewall rules or network security groups
Database Connection Issues
Symptoms
MongoDB connection failure
Database authentication errors
Abnormal data operations
Diagnosis Steps
Check MongoDB Status
# View MongoDB logs
docker logs mongodb-service
# Enter container to check connection
docker exec -it mongodb-service mongosh
# Test database connection
docker exec mongodb-service mongosh --eval "db.runCommand({connectionStatus: 1})"Validate Configuration
grep -A 10 '"mongo"' config.jsonSolutions
Incorrect Password: Ensure password consistency between
config.jsonanddocker-compose.ymlContainer Startup Failure: Inspect MongoDB container logs for startup issues
Network Problems: Ensure network connectivity between containers
Self Service Registration Failure
Symptoms
Self Service fails to register in MarsApp
Service status abnormal
Diagnosis Steps
Check Service Key
curl http://127.0.0.1:4567/getServiceKeyView Registration Logs
# Check registration logs, look for:
# - Registration messages (info level)
# - Latest successful registration time (info level)
grep -E "(register|auth|key)" data/logs/$(date +%Y-%m-%d)-self.logValidate Service Status
curl http://localhost:4567/health | grep -o '"status":[0-9]*'Solutions
Service Key Mismatch: Ensure consistency between Self Service and MarsApp key values
Configuration Errors: Check
pango.confconfigurationCertificate Expired: Update
routecertandroutecertexpiredparametersRegistration Configuration Reset: After deleting the MarsApp and reinstalling, the Self Service can be re-registered
No Response After Successful Self Service Registration
Symptoms
No response after sending messages
Message transmission interrupted
Diagnosis Steps
Self Service Node to Application Service Connection
REMOTE_SERVICE=$(grep -o '"remoteService": "[^"]*"' config.json | cut -d'"' -f4)
curl -v $REMOTE_SERVICEView Message Processing Logs
# Monitor logs, check for:
# - Incoming messages (non-registration messages, info level)
# - Application service API call info including endpoints, parameters, and return values (debug level)
tail -f data/logs/$(date +%Y-%m-%d)-self.log | grep -E "(request|response|message)"Solutions
No Response from Application Service: Ensure application service is running properly, confirm API endpoint correctness
Self Service Network Issues: Check network stability, may require restarting the Self Service node
Improper Timeout Configuration: Adjust client timeout settings
Message Format Errors: Verify API call data format and endpoint paths
Registration Configuration Reset: After deleting the MarsApp and reinstalling, the Self Service can be re-registered
Last updated