[GH-ISSUE #1517] Errors at server boot (from cron) #1196

Closed
opened 2026-02-27 11:15:48 +03:00 by kerem · 1 comment
Owner

Originally created by @stefaweb on GitHub (Jul 5, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1517

Impacted versions

  • Modoboa: 1.10.5
  • installer used: Yes
  • Webserver: Nginx
  • Debian Strecth
  • MariaDB 10.1.x

Steps to reproduce

Boot or reboot the server. Repetitive.

Current behavior

When I boot the server, I receive few minutes later 3 mails from the server. They comes from cron.

Subjet:

$PYTHON $INSTANCE/manage.py generate_rights
$PYTHON $INSTANCE/manage.py handle_mailbox_operations
$PYTHON $INSTANCE/manage.py modo manage_dkim_keys

Seems that some modoboa services start before mariadb is UP.

django.db.utils.OperationalError: (2003, 'Can\'t connect to MySQL server on \'127.0.0.1\' (111 "Connection refused")')

I've enclosed the 3 mails body (Traceback).

mail_cron_1.txt

mail_cron_2.txt

mail_cron_3.txt

Originally created by @stefaweb on GitHub (Jul 5, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1517 # Impacted versions * Modoboa: 1.10.5 * installer used: Yes * Webserver: Nginx * Debian Strecth * MariaDB 10.1.x # Steps to reproduce Boot or reboot the server. Repetitive. # Current behavior When I boot the server, I receive few minutes later 3 mails from the server. They comes from cron. Subjet: $PYTHON $INSTANCE/manage.py generate_rights $PYTHON $INSTANCE/manage.py handle_mailbox_operations $PYTHON $INSTANCE/manage.py modo manage_dkim_keys Seems that some modoboa services start before mariadb is UP. `django.db.utils.OperationalError: (2003, 'Can\'t connect to MySQL server on \'127.0.0.1\' (111 "Connection refused")')` I've enclosed the 3 mails body (Traceback). [mail_cron_1.txt](https://github.com/modoboa/modoboa/files/2166518/mail_cron_1.txt) [mail_cron_2.txt](https://github.com/modoboa/modoboa/files/2166519/mail_cron_2.txt) [mail_cron_3.txt](https://github.com/modoboa/modoboa/files/2166520/mail_cron_3.txt)
kerem closed this issue 2026-02-27 11:15:49 +03:00
Author
Owner

@stefaweb commented on GitHub (Oct 2, 2018):

I close this as the messages at boot are left with last version.

<!-- gh-comment-id:426253466 --> @stefaweb commented on GitHub (Oct 2, 2018): I close this as the messages at boot are left with last version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1196
No description provided.