[GH-ISSUE #1787] Cron job "manage.py communicate_with_public_api" fails. #1410

Closed
opened 2026-02-27 11:16:57 +03:00 by kerem · 3 comments
Owner

Originally created by @francescop75 on GitHub (Oct 30, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1787

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes (about a year ago, upgraded since)
  • Webserver: Nginx

Steps to reproduce

Enable public API comminication in Modoboa parameters.

Current behavior

Cron job fails with "CommandError: Failed to retrieve versions from the API."

Expected behavior

Success to retrieve versions from the API.

Note

If manually launched from shell:

PYTHON=/srv/modoboa/env/bin/python
INSTANCE=/srv/modoboa/instance
$PYTHON $INSTANCE/manage.py communicate_with_public_api --verbosity 3

No errors are reported.

https://api.modoboa.org SSL certificate seems to be ok.

Attachments

modoboa.crontab.txt

Originally created by @francescop75 on GitHub (Oct 30, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1787 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes (about a year ago, upgraded since) * Webserver: Nginx # Steps to reproduce Enable public API comminication in Modoboa parameters. # Current behavior Cron job fails with "CommandError: Failed to retrieve versions from the API." # Expected behavior Success to retrieve versions from the API. # Note If manually launched from shell: ``` PYTHON=/srv/modoboa/env/bin/python INSTANCE=/srv/modoboa/instance $PYTHON $INSTANCE/manage.py communicate_with_public_api --verbosity 3 ``` No errors are reported. https://api.modoboa.org SSL certificate seems to be ok. # Attachments [modoboa.crontab.txt](https://github.com/modoboa/modoboa/files/3788727/modoboa.crontab.txt)
kerem closed this issue 2026-02-27 11:16:58 +03:00
Author
Owner

@tsabi commented on GitHub (Nov 23, 2019):

It happened to me too, i guessed every server sends the log at the same time, and the remote server is DDOSed, so i modified the sending time to another minute in the hour, and it works.

<!-- gh-comment-id:557804758 --> @tsabi commented on GitHub (Nov 23, 2019): It happened to me too, i guessed every server sends the log at the same time, and the remote server is DDOSed, so i modified the sending time to another minute in the hour, and it works.
Author
Owner

@francescop75 commented on GitHub (Nov 23, 2019):

It happened to me too, i guessed every server sends the log at the same time, and the remote server is DDOSed, so i modified the sending time to another minute in the hour, and it works.

I'll try to do that way, thanks!

<!-- gh-comment-id:557821206 --> @francescop75 commented on GitHub (Nov 23, 2019): > It happened to me too, i guessed every server sends the log at the same time, and the remote server is DDOSed, so i modified the sending time to another minute in the hour, and it works. I'll try to do that way, thanks!
Author
Owner

@tonioo commented on GitHub (Nov 30, 2019):

There was indeed or configuration issue on the public API server. It is now fixed.

<!-- gh-comment-id:559947636 --> @tonioo commented on GitHub (Nov 30, 2019): There was indeed or configuration issue on the public API server. It is now fixed.
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#1410
No description provided.