Skip to content

Mideye Logs: Debug & Interpretation

Logs are the most important diagnostic tool for troubleshooting Mideye Server. This guide explains how to read, interpret, and use log files effectively.

Mideye Server generates several types of logs:

  • Application logs — Main server operations and errors
  • Authentication logs — User authentication attempts (viewable in web interface)
  • Audit logs — Administrative actions (viewable in web interface)
  • System service logs — Service management logs (OS-level)
  • Database logs — Database server logs (external)

The recommended way to view logs is through the web administration interface:

  1. Navigate to Log Files
  2. Select log file from dropdown
  3. Use Follow mode for real-time viewing
  4. Use the Search function to find specific entries

For authentication-specific issues:

  • Authentication Logs — Shows all user authentication attempts with details
  • Audit Logs — Shows administrator actions and configuration changes
Log FileLocationPurpose
Main Application Log/opt/mideyeserver6/log/mideyeserver.logAll application events
Error Log/opt/mideyeserver6/log/mideyeserver.errorError-level messages only
Archived Logs/opt/mideyeserver6/log/old/Rotated logs
System Service Logsjournalctl -u mideyeserver6Service startup/stop
Log FileLocationPurpose
Main Application LogC:\Program Files\Mideye Server\log\mideyeserver.logAll application events
Error LogC:\Program Files\Mideye Server\log\mideyeserver.errorError-level messages only
Windows Event LogEvent Viewer → ApplicationService startup/stop

Linux:

Terminal window
# Tail main log
tail -f /opt/mideyeserver6/log/mideyeserver.log
# View error log
tail -f /opt/mideyeserver6/log/mideyeserver.error
# View system service logs
journalctl -u mideyeserver6 -f
# View recent startup
journalctl -u mideyeserver6 --since "10 minutes ago"

Windows (PowerShell):

Terminal window
# Tail main log
Get-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Wait
# View last 100 lines
Get-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Tail 100
# Search for errors
Select-String -Path "C:\Program Files\Mideye Server\log\mideyeserver.log" -Pattern "ERROR"

Mideye Server uses standard logging levels:

LevelUsageWhat to Look For
ERRORCritical failuresService failures, data loss, unrecoverable errors
WARNProblems that might cause issuesConnection failures, timeouts, degraded functionality
INFONormal operationsStartup, shutdown, configuration changes, successful operations
DEBUGDetailed troubleshootingDetailed decision flows and operations
TRACEVery detailed debuggingFull request/response details

Default Level: INFO

Changing Log Level:

Edit the logging configuration in the application configuration file to increase verbosity for specific components. Restart the service to apply changes.


Pattern: User authentication failed

WARN - Authentication failed for user [username]: Invalid password

Action:

  • Check Authentication Logs in web interface
  • Verify user account status
  • Check password policy
  • Look for repeated failures (possible brute force)

Pattern: Cannot connect to LDAP

WARN - Failed to connect to LDAP profile: [ProfileName] with error: [Connection timed out]

Action:

  • Test LDAP connectivity (see commands below)
  • Check firewall rules
  • Verify LDAP server is running
  • See LDAP Connection Issues

Pattern: Database connectivity problem

ERROR - Exception during pool initialization
ERROR - Communications link failure

Action:

  • Verify database is running
  • Test database connection
  • Check credentials in configuration
  • See Database Issues

Pattern: Invalid phone number format

WARN - Phone or token number is invalid or missing

Action:

  • Check phone number format in directory (LDAP/AD)
  • Remove hidden characters
  • Ensure international format: +[country][number]
  • See Phone Number Issues

Pattern: Cannot load magic link URL

WARN - Failed to get magic link frontend URL from: [https://mas.mideyecloud.se/...]
INFO - frontEndBaseUrl: [null]

Action:

  • Test MAS connectivity: curl -v https://mas.mideyecloud.se
  • Check proxy configuration
  • Wait for retry (10 minutes) or restart service
  • See External Service Issues

Pattern: Cannot reach Mideye Switch

WARN - Failed to connect to primary switch: [Connection refused]
INFO - Trying secondary switch

Action:

  • Test Switch connectivity: nc -zv primary.mideye.com 20460
  • Check for SSL proxy interception (verify certificate with openssl s_client)
  • Check firewall and proxy settings
  • See External Service Issues

Pattern: SSL/TLS certificate issues

ERROR - Failed to initialize SSL context from keystore
ERROR - SSL handshake failed

Action:


Pattern: Database migration problems

INFO - Waiting for changelog lock....
ERROR - Validation Failed: ...

Action:

  • Check for stuck migrations: SELECT * FROM DATABASECHANGELOGLOCK;
  • Release lock if stuck: UPDATE DATABASECHANGELOGLOCK SET LOCKED=0;
  • See Database Issues

Common error codes found in logs:

CodeDescriptionSee Also
11002Invalid phone number formatPhone Number Issues
19002Approver has no phone numberPhone Number Issues
19003Approver phone number invalid formatPhone Number Issues
503LDAP connection failed (HTTP response)LDAP Connection Issues

Linux:

Terminal window
grep "username" /opt/mideyeserver6/log/mideyeserver.log
# With context lines
grep -C 5 "username" /opt/mideyeserver6/log/mideyeserver.log

Windows:

Terminal window
Select-String -Path "C:\Program Files\Mideye Server\log\mideyeserver.log" -Pattern "username" -Context 5

Linux:

Terminal window
# Logs from specific time range
awk '/2026-02-19 10:30/,/2026-02-19 11:00/' /opt/mideyeserver6/log/mideyeserver.log

Linux:

Terminal window
# All connection problems
grep -iE "connection.*fail|connection.*refused|connection.*timeout" \
/opt/mideyeserver6/log/mideyeserver.log
# LDAP connection issues
grep -i "ldap.*fail" /opt/mideyeserver6/log/mideyeserver.log
# Switch connection issues
grep -i "switch" /opt/mideyeserver6/log/mideyeserver.log

Windows:

Terminal window
# All connection problems
Select-String -Path "C:\Program Files\Mideye Server\log\mideyeserver.log" -Pattern "connection.*fail|timeout"
# Switch issues
Select-String -Path "C:\Program Files\Mideye Server\log\mideyeserver.log" -Pattern "switch"

Linux:

Terminal window
grep -i error /opt/mideyeserver6/log/mideyeserver.log | \
awk '{for(i=1;i<=NF;i++) if($i ~ /error/i) print $(i+2)}' | sort | uniq -c | sort -rn

Log files are automatically rotated:

  • Daily rotation — New log file each day
  • Default retention — 30 days of logs
  • Archived toold/ subdirectory within the log folder

Linux:

Terminal window
ls -lh /opt/mideyeserver6/log/old/
less /opt/mideyeserver6/log/old/mideyeserver.2026-02-18.log

Windows:

Terminal window
Get-ChildItem "C:\Program Files\Mideye Server\log\old\"

  1. Navigate to Log Files
  2. Select the relevant log file
  3. Use the download or export function
  4. Include the time range covering the issue

Linux:

Terminal window
# Collect recent logs
tail -1000 /opt/mideyeserver6/log/mideyeserver.log > /tmp/mideye-logs.txt
journalctl -u mideyeserver6 --since "1 hour ago" > /tmp/mideye-systemd.txt

Windows:

Terminal window
# Collect recent logs
Get-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Tail 1000 | Out-File C:\temp\mideye-logs.txt
  1. Application logs — Recent entries showing the problem
  2. Error logs — If error-specific log exists
  3. System service logs — Service startup/failure events
  4. Configuration — Sanitized config files (remove passwords)
  5. Screenshots — Of the web interface showing the issue

Always sanitize passwords and sensitive data before sharing logs!

Remove: database passwords, LDAP passwords, shared secrets, API keys, certificate passwords.


Linux:

Terminal window
# Monitor authentication failures
tail -f /opt/mideyeserver6/log/mideyeserver.log | grep -i "authentication.*fail"
# Monitor external service connections
tail -f /opt/mideyeserver6/log/mideyeserver.log | grep -iE "switch|mas|shield"
# Monitor errors only
tail -f /opt/mideyeserver6/log/mideyeserver.log | grep -i error

Windows:

Terminal window
# Monitor errors
Get-Content "C:\Program Files\Mideye Server\log\mideyeserver.log" -Wait | Select-String "ERROR"

When contacting support with log-related questions:

  1. Specify time range — Exact timestamps of problem occurrence
  2. Include context — What was being done when problem happened
  3. Provide full error messages — Include surrounding log lines
  4. Sanitize sensitive data — Remove passwords, secrets, PII
  5. Note frequency — Is it one-time or recurring?
  6. Include environment info — OS version, database type