ATStatus
ATStatus WikiLoading documentation...

Self-Test

The Self-Test feature runs diagnostic checks on your ATStatus installation to identify configuration issues, connectivity problems, and potential errors.

When to Run Self-Test

Run the self-test after installation, after configuration changes, or when troubleshooting issues. It's a quick way to verify everything is working correctly.

Running Self-Test

  1. Log in to the Admin Panel
  2. Navigate to Self-Test in the sidebar
  3. Click Run All Tests
  4. Review the results

Test Categories

The self-test checks multiple aspects of your installation:

🗄️ Database

  • Database connection
  • Schema integrity
  • Read/write permissions

📧 Email (SMTP)

  • SMTP server connection
  • Authentication
  • Send capability (optional test email)

🔔 Notifications

  • Discord webhook connectivity
  • Webhook URL validity
  • Notification queue status

🔒 Security

  • Session secret configured
  • HTTPS/SSL status
  • Cookie security settings

⚙️ Configuration

  • Required environment variables
  • File permissions
  • Disk space

Understanding Results

StatusIconMeaning
PassTest completed successfully
Warning⚠️Works but may need attention
FailTest failed, action required
Skipped⏭️Test not applicable or disabled

Common Issues & Fixes

Database Connection Failed

Possible Causes:
  • Incorrect DATABASE_URL in .env
  • Database file permissions (SQLite)
  • Database server not running (PostgreSQL/MySQL)

SMTP Test Failed

Possible Causes:
  • Wrong SMTP credentials
  • Firewall blocking SMTP ports
  • Need app password instead of regular password
  • See SMTP Configuration Guide

Discord Webhook Failed

Possible Causes:
  • Invalid webhook URL
  • Webhook deleted in Discord
  • Network connectivity issues

Session Secret Warning

Possible Causes:
  • Using default session secret
  • Secret too short
  • Set a strong, random SESSION_SECRET in .env

Running Individual Tests

You can run specific tests instead of all tests:

  1. Go to Self-Test page
  2. Find the test category you want
  3. Click the Run button next to that test

Sending Test Notifications

From the Self-Test page, you can send test notifications to verify your setup:

  • Test Email - Sends a test email to a specified address
  • Test Discord - Sends a test message to your Discord webhook
Pro Tip

Use test notifications after any configuration changes to verify everything still works. It's better to catch issues during setup than during an actual incident.

Still Having Issues?

If self-test identifies problems you can't resolve:

  1. Check the specific error message carefully
  2. Review the relevant configuration guide
  3. Check the Troubleshooting page
  4. Verify environment variables are set correctly
  5. Check server/network logs for more details
Self-Test Best Practices
  • Run after initial installation
  • Run after any configuration changes
  • Run periodically to catch issues early
  • Fix warnings before they become failures
  • Document any known issues or exceptions