Skip to content

Troubleshooting

Diagnosing and resolving common issues in RecordPlatform.

Quick Reference

SymptomLikely CauseSolution
Service won't startMissing dependencyCheck prerequisites
401 UnauthorizedJWT expired/invalidAuth issues
File upload failsStorage node downStorage issues
Blockchain timeoutNode unreachableBlockchain issues

Topics

Common Issues

  • Startup problems
  • Authentication errors
  • Storage failures
  • Blockchain connectivity
  • Performance issues

Diagnostic Commands

Check Service Health

bash
# Backend health (includes downstream service status)
curl http://localhost:8000/record-platform/actuator/health

Note: platform-storage and platform-fisco are Dubbo providers without embedded HTTP servers, so they do not expose /actuator/health endpoints directly. Their health is reflected in the backend's /actuator/health response (e.g., the s3Storage component). You can also monitor them via the OTel Collector Prometheus endpoint at localhost:8889.

Check Logs

bash
# View recent errors (default LOG_PATH is ./log relative to each service's working directory)
tail -f log/backend/error.log

# Search for specific error
grep -r "Exception" log/

Override LOG_PATH environment variable to change the log directory (e.g., LOG_PATH=/var/log/recordplatform).

Check Dependencies

bash
# Nacos status
curl http://localhost:8848/nacos/v1/console/health/liveness

# MySQL connection
mysql -h <mysql-host> -u <mysql-user> -p -e "SELECT 1"

# Redis connection
redis-cli -h <redis-host> ping

# RabbitMQ status
rabbitmqctl status

Getting Help

If you can't resolve an issue:

  1. Check the Common Issues guide
  2. Review application logs for detailed error messages
  3. Verify all prerequisites are running
  4. Check configuration for correct values

Released under the Apache 2.0 License.