Troubleshooting

Reading Application Logs

Find errors in storage/logs and Laravel log channels.

Apr 10, 2026·7 min read· Beginner

Senddera is a Laravel application. Most operational errors land in storage/logs/laravel.log. Knowing where to look cuts troubleshooting time from hours to minutes.

Primary log file

cd /var/www/senddera
tail -f storage/logs/laravel.log

Reproduce the issue (send test email, run campaign) and watch new lines. For a one-time dump of the last 200 lines:

tail -n 200 storage/logs/laravel.log

Log levels and .env

APP_DEBUG=false
LOG_CHANNEL=stack
LOG_LEVEL=debug

Keep APP_DEBUG=false in production — never expose stack traces to visitors. Temporarily set LOG_LEVEL=debug while diagnosing, then return to info or warning.

What to search for

SymptomSearch terms
Queue stuckqueue, ProcessCampaign, MaxAttemptsExceeded
SMTPSwift_Transport, SMTP, Connection could not be established
DNS / HTTPGuzzle, cURL error
PermissionsPermission denied, storage/framework
DatabaseSQLSTATE, Deadlock

Worker and web server logs

  • Supervisorstorage/logs/worker.log (path from your config)
  • PHP-FPM/var/log/php8.3-fpm.log or journal: journalctl -u php8.3-fpm -f
  • Nginx/var/log/nginx/error.log for 502/504 during long imports
  • Mail server — if using local Postfix, /var/log/mail.log

Failed queue jobs

php artisan queue:failed
php artisan queue:failed --id=UUID  # details for one job
php artisan queue:retry all         # after fixing root cause

Failed job payloads often include the exact SMTP response or PHP exception message.

Enable more detail (short term)

If logs are empty, confirm storage/logs is writable by the web and worker user:

sudo chown -R www-data:www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

Log rotation

laravel.log can grow large on busy sites. Use logrotate or truncate after archiving:

gzip -c storage/logs/laravel.log > ~/laravel-$(date +%F).log.gz
: > storage/logs/laravel.log

Related guides

Run your email marketing on your own server

Full source code, no subscriber tax, unlimited sending. One-time $74 license, lifetime updates.

Get Senddera — $74 one-time