[GH-ISSUE #1343] CommandError: Failed to retrieve versions from the API. #1074

Closed
opened 2026-02-27 11:15:06 +03:00 by kerem · 5 comments
Owner

Originally created by @danielsatanik on GitHub (Jan 4, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1343

Impacted versions

  • Modoboa: 1.9.1
  • installer used: Yes
  • Webserver: Nginx

Current behavior

I know there are some already resolved issues regarding this, but unfortunately they didn't help so the reason why it happens must be something else.

I get an email hourly because inside the /etc/cron.d/modoboa file there is the following line

# Public API communication
0       *       *       *       *       root    $PYTHON $INSTANCE/manage.py communicate_with_public_api

but unfortunately for some reason cron cannot execute this line. I get the following error message every hour sent as an email.

CommandError: Failed to retrieve versions from the API. 

I tried executing this line manually and it didn't throw any error or exception.

Originally created by @danielsatanik on GitHub (Jan 4, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1343 # Impacted versions * Modoboa: 1.9.1 * installer used: Yes * Webserver: Nginx # Current behavior I know there are some already resolved issues regarding this, but unfortunately they didn't help so the reason why it happens must be something else. I get an email hourly because inside the `/etc/cron.d/modoboa` file there is the following line ``` # Public API communication 0 * * * * root $PYTHON $INSTANCE/manage.py communicate_with_public_api ``` but unfortunately for some reason cron cannot execute this line. I get the following error message every hour sent as an email. ``` CommandError: Failed to retrieve versions from the API. ``` I tried executing this line manually and it didn't throw any error or exception.
kerem closed this issue 2026-02-27 11:15:06 +03:00
Author
Owner

@tonioo commented on GitHub (Jan 4, 2018):

@danielsatanik It was a SSL certificate issue on the API, sorry for that.

<!-- gh-comment-id:355271425 --> @tonioo commented on GitHub (Jan 4, 2018): @danielsatanik It was a SSL certificate issue on the API, sorry for that.
Author
Owner

@danielsatanik commented on GitHub (Mar 26, 2018):

happens again

<!-- gh-comment-id:376060073 --> @danielsatanik commented on GitHub (Mar 26, 2018): happens again
Author
Owner

@WLR86 commented on GitHub (Mar 26, 2018):

Yup - same here

<!-- gh-comment-id:376076503 --> @WLR86 commented on GitHub (Mar 26, 2018): Yup - same here
Author
Owner

@tonioo commented on GitHub (Mar 26, 2018):

Fixed, once again... Certificate issue, nginx is not reloaded after the update.

<!-- gh-comment-id:376076964 --> @tonioo commented on GitHub (Mar 26, 2018): Fixed, once again... Certificate issue, nginx is not reloaded after the update.
Author
Owner

@danielsatanik commented on GitHub (Mar 26, 2018):

@tonioo I actually don't really care if this happens apart from the fact that my mail inbox gets flooded with the same email every hour…is it possible to turn off the email notifications?

and is this an issue that will come back every now and then?

<!-- gh-comment-id:376101427 --> @danielsatanik commented on GitHub (Mar 26, 2018): @tonioo I actually don't really care if this happens apart from the fact that my mail inbox gets flooded with the same email every hour…is it possible to turn off the email notifications? and is this an issue that will come back every now and then?
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#1074
No description provided.