Troubleshooting
This guide covers common issues you might encounter when using Acusight.Authentication Issues
Browser shows “Your connection is not private”
Cause: Self-signed TLS certificate (expected for local development) Solution:- Chrome: Click “Advanced” → “Proceed to <IP> (unsafe)”
- Firefox: Click “Advanced” → “Accept the Risk and Continue”
crypto.subtle error on login page
Cause: Browser accessed over plain HTTP (not localhost)
Solution: Use https://<SERVER_EXTERNAL_IP> instead of http://. The OIDC PKCE flow requires a secure context, which is only available over HTTPS or http://localhost.
OIDC redirect fails or returns invalid_request
Cause: Zitadel OIDC app missing HTTPS redirect URIs
Solution: Wipe the platform-init state and re-initialize:
Login page shows “Failed to fetch” or network error
Cause: Core service not running or unreachable Solution:- Check core service is running:
docker compose ps core - Check core logs:
docker compose logs core - Verify
SERVER_EXTERNAL_IPis correct in.env
Device Provisioning Issues
409 DEVICE_EXISTS when provisioning
Cause: A device with the same Docker daemon ID is already registered
Solution: Delete the existing device and re-provision:
401 INVALID_TOKEN when provisioning
Cause: Provisioning token is invalid, expired, or already used (single-use)
Solution: Create a new provisioning token in the dashboard or via API.
Agent logs show “connection refused”
Cause:SERVER_EXTERNAL_IP not set or incorrect
Solution:
- Check
.envfile has correct IP - Rebuild core:
docker compose up --build -d core - Verify connectivity:
curl http://<IP>:8080/metrics
Setup script fails with “Failed to pull image”
Cause: Edge device cannot reach Docker Hub or image registry Solution:- Pre-load the image manually (see Device Provisioning Guide)
- Or configure a local registry mirror
Container Management Issues
Portainer shows “Agent not available”
Cause: Portainer Edge Agent not connected Solution:- Check if edge agent is running on device:
docker ps | grep portainer-agent - Verify edge key was received during provisioning
- Check device firewall allows outbound connections to Portainer
Portainer agent hangs inside container
Cause: Normal behavior - waits forportainer_env file that doesn’t exist in cloud mode
Solution: This is harmless and can be ignored. The core platform doesn’t use the agent for functionality.
Data Pipeline Issues
Images not appearing in batches
Cause: Data service not receiving notifications Solution:- Check core service logs:
docker compose logs core | grep upload - Check data service logs:
docker compose logs data - Verify Redis is running:
docker compose ps redis
Batch stuck in “collecting” status
Cause: Batch timeout not triggered or auto-close disabled Solution:- Manually close the batch via API:
- Check batch configuration settings
MinIO shows “Access Denied”
Cause: Incorrect credentials or bucket permissions Solution:- Verify MinIO credentials in
.env - Check bucket exists:
docker compose exec minio mc ls local/ - Ensure bucket policy allows access
Networking Issues
Cannot access services from edge devices
Cause: Firewall blocking ports Solution: Ensure these ports are open on the host machine:| Port | Service | Required For |
|---|---|---|
| 8080 | Core API | Device provisioning, heartbeats, uploads |
| 443 | Caddy HTTPS | Browser access |
| 9000 | Portainer | Container management (optional) |
Browser cannot connect to https://<IP>
Cause: Caddy not running or port 443 blocked
Solution:
- Check Caddy status:
docker compose ps caddy - Check Caddy logs:
docker compose logs caddy - Verify port 443 is not used by another service
Performance Issues
Slow image uploads
Cause: Network latency or image size Solution:- Use LAN mode if devices can reach MinIO directly
- Compress images before upload
- Check network bandwidth
High memory usage
Cause: Large number of batches or images in memory Solution:- Increase container memory limits in
docker-compose.yml - Configure pagination for large queries
- Archive old batches
Debugging Commands
Getting Help
If you can’t resolve your issue:- Check logs: Most issues leave traces in service logs
- Search issues: GitHub Issues
- Open an issue: Include logs, steps to reproduce, and environment details