Mideye Error Codes - Quick Troubleshooting
Fast lookup reference for common Mideye Server issues, commands, file locations, and emergency procedures.
Service Commands
Section titled “Service Commands”Linux:
# Check service statussystemctl status mideyeserver6
# Start / stop / restart servicesudo systemctl start mideyeserver6sudo systemctl stop mideyeserver6sudo systemctl restart mideyeserver6
# View recent service logsjournalctl -u mideyeserver6 -n 100 --no-pagerWindows (PowerShell):
# Check service statusGet-Service MideyeServer6
# Start / stop / restart serviceStart-Service MideyeServer6Stop-Service MideyeServer6Restart-Service MideyeServer6
# View recent logsGet-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Tail 100Quick Diagnostics
Section titled “Quick Diagnostics”Linux:
# View last 50 errorsgrep -i error /opt/mideyeserver6/log/mideyeserver.log | tail -50
# Check if service is listeningss -tlnp | grep -E "8080|1812|1813|2083"
# Test Switch connectivity and check for SSL proxyopenssl s_client -connect primary.mideye.com:20460 -showcerts </dev/null 2>/dev/null | openssl x509 -noout -subject -issuerWindows (PowerShell):
# View last 50 errorsSelect-String -Path "C:\Program Files\Mideye Server\log\mideyeserver.log" -Pattern "ERROR" | Select-Object -Last 50
# Check if service is listeningGet-NetTCPConnection -LocalPort 8080,1812,1813,2083 -ErrorAction SilentlyContinue
# Test Switch connectivityTest-NetConnection -ComputerName primary.mideye.com -Port 20460Common Error Messages → Solutions
Section titled “Common Error Messages → Solutions”| Error Message | Quick Fix | See Also |
|---|---|---|
| ”Phone or token number is invalid or missing” | Delete and manually re-type phone number (never paste) | Phone Number Issues |
| ”Failed to connect to LDAP profile” | Test connectivity: nc -zv ldap-server 389 (Linux) or Test-NetConnection ldap-server -Port 389 (Windows) | LDAP Issues |
| ”Communications link failure” | Verify database is running | Database Issues |
| ”Waiting for changelog lock” | Release lock: UPDATE DATABASECHANGELOGLOCK SET LOCKED=0; | Database Issues |
| ”Keystore file not found” | Check file exists and has correct permissions | Certificate Issues |
| ”Failed to get magic link frontend URL” | Wait 10 min or restart. Test: curl -v https://mas.mideyecloud.se | External Services |
| ”Failed to connect to primary switch” | Check for SSL proxy interception with openssl s_client | External Services |
| ”Service shows active but auth fails” | Check logs for warnings during startup | Startup Timing |
File Locations
Section titled “File Locations”| File | Location | Purpose |
|---|---|---|
| Main Config | /opt/mideyeserver6/config/application-prod.yml | Production configuration |
| Logging Config | /opt/mideyeserver6/config/logback.xml | Log levels and rotation |
| Keystore | /opt/mideyeserver6/config/keystore.p12 | TLS/SSL certificates |
| Service File | /etc/systemd/system/mideyeserver6.service | Service definition |
| Main Log | /opt/mideyeserver6/log/mideyeserver.log | All application logs |
| Error Log | /opt/mideyeserver6/log/mideyeserver.error | Errors only |
| Archived Logs | /opt/mideyeserver6/log/old/ | Rotated historical logs |
Windows
Section titled “Windows”| File | Location | Purpose |
|---|---|---|
| Main Config | C:\Program Files\Mideye Server\config\application-prod.yml | Production configuration |
| Logging Config | C:\Program Files\Mideye Server\config\logback.xml | Log levels and rotation |
| Keystore | C:\Program Files\Mideye Server\config\keystore.p12 | TLS/SSL certificates |
| Main Log | C:\Program Files\Mideye Server\log\mideyeserver.log | All application logs |
| Error Log | C:\Program Files\Mideye Server\log\mideyeserver.error | Errors only |
Default Ports
Section titled “Default Ports”| Port | Protocol | Service | Encrypted |
|---|---|---|---|
| 8080 | TCP | Web interface (HTTPS) | Yes |
| 1812 | UDP | RADIUS Authentication | No |
| 1813 | UDP | RADIUS Accounting | No |
| 2083 | TCP | RADSEC (RADIUS over TLS) | Yes |
| 20460 | TCP | Mideye Switch (outbound) | Yes (TLS) |
Common Fixes
Section titled “Common Fixes”Service Won’t Start After Upgrade
Section titled “Service Won’t Start After Upgrade”Linux:
# 1. Check service statussudo systemctl status mideyeserver6
# 2. View detailed logsjournalctl -u mideyeserver6 -n 50
# 3. Verify config files existls -la /opt/mideyeserver6/config/application-prod.ymlls -la /opt/mideyeserver6/config/logback.xmlls -la /opt/mideyeserver6/config/keystore.p12
# 4. Check file permissionssudo chown -R mideye:mideye /opt/mideyeserver6sudo chmod 660 /opt/mideyeserver6/config/*.ymlsudo chmod 660 /opt/mideyeserver6/config/*.xmlsudo chmod 660 /opt/mideyeserver6/config/*.p12
# 5. Restartsudo systemctl restart mideyeserver6Windows (PowerShell):
# 1. Check service statusGet-Service MideyeServer6
# 2. View recent logsGet-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Tail 50
# 3. Verify config files existTest-Path "C:\Program Files\Mideye Server\config\application-prod.yml"Test-Path "C:\Program Files\Mideye Server\config\keystore.p12"
# 4. RestartRestart-Service MideyeServer6Database Migration Lock Stuck
Section titled “Database Migration Lock Stuck”-- 1. Check lock status (ensure service is stopped first)SELECT * FROM DATABASECHANGELOGLOCK;
-- 2. If LOCKED=1, release itUPDATE DATABASECHANGELOGLOCK SET LOCKED=0, LOCKGRANTED=NULL, LOCKEDBY=NULL WHERE ID=1;Then restart the Mideye Server service.
LDAP Connection Timeout
Section titled “LDAP Connection Timeout”Linux:
# 1. Test connectivitync -zv ldap-server.domain.com 389
# 2. Test authenticationldapsearch -x -H ldap://ldap-server:389 \ -D "CN=Service,OU=Users,DC=domain,DC=com" \ -w password -b "DC=domain,DC=com" -s baseWindows (PowerShell):
# 1. Test connectivityTest-NetConnection -ComputerName ldap-server.domain.com -Port 389Then adjust timeout values in the LDAP Profiles page of the web interface.
Certificate Issues
Section titled “Certificate Issues”Use the Certificate Management page in the web administration interface to manage certificates. This is the safest way to update certificates and avoids the risk of breaking the keystore with command-line operations.
If the web interface is not accessible:
Linux:
# Regenerate self-signed certificatesudo /opt/mideyeserver6/bin/generate-selfsigned-tls-keystore.shsudo chown mideye:mideye /opt/mideyeserver6/config/keystore.p12sudo chmod 660 /opt/mideyeserver6/config/keystore.p12Emergency Recovery
Section titled “Emergency Recovery”Service Completely Failed
Section titled “Service Completely Failed”Linux:
# 1. Stop servicesudo systemctl stop mideyeserver6
# 2. Check what failedjournalctl -u mideyeserver6 -n 100
# 3. Verify prerequisitessystemctl status mariadb # Database running?nc -zv ldap-server 389 # LDAP accessible?
# 4. Check configuration files intactls -la /opt/mideyeserver6/config/
# 5. Fix file permissionssudo chown -R mideye:mideye /opt/mideyeserver6sudo chmod 750 /opt/mideyeserver6/configsudo chmod 660 /opt/mideyeserver6/config/*
# 6. Start servicesudo systemctl start mideyeserver6
# 7. Monitor startuptail -f /opt/mideyeserver6/log/mideyeserver.logWindows (PowerShell):
# 1. Stop serviceStop-Service MideyeServer6
# 2. Check logsGet-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Tail 100
# 3. Start serviceStart-Service MideyeServer6
# 4. MonitorGet-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -WaitSupport Data Collection
Section titled “Support Data Collection”Before contacting Mideye Support, collect:
- Mideye Server version number
- Operating system and version
- Database type and version
- Description of problem and when it started
- Error messages from Log Files page
- Service status output
- Configuration files (passwords removed)
- Steps to reproduce
- What you have tried already
- For Switch issues: output of
openssl s_client -connect primary.mideye.com:20460 -showcerts