mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1244] Cronjob fails $PYTHON $INSTANCE/manage.py update_statistics #1013
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1013
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TonyBostonTB on GitHub (Sep 21, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1244
Impacted versions
Traceback
@tonioo commented on GitHub (Sep 22, 2017):
Looks like the cron job is running twice at the same time... Did you install modoboa manually?
@TonyBostonTB commented on GitHub (Sep 22, 2017):
nope, I used the installer
@tonioo commented on GitHub (Sep 22, 2017):
Do you see this error each time the command is executed?
Can you please check the cron job definition inside
/etc/cron.d/modoboa, it should run every 5 minutes.@sorcer1122 commented on GitHub (Sep 29, 2017):
I am also having the very same error but I suspect this is because I added 'manage.py update_statistics' to crontab file. This is not required, is it?
@tonioo commented on GitHub (Oct 3, 2017):
@sorcer1122 This is indeed optional but you're seeing this error because the RRD file is updated twice for the same timestamp. How did you configure the crontab?
@sorcer1122 commented on GitHub (Oct 4, 2017):
@tonioo I had the following in my crontab:
0 * * * * /srv/modoboa/instance/manage.py update_statistics
Once I commented it out, the error disappeared. Most probably because /etc/cron.d/modoboa had the same string.
@tonioo commented on GitHub (Oct 10, 2017):
@TonyBostonTB Can you check the /etc/cron.d/modoboa to check if the update_statistics command appears only once?
@kryskool commented on GitHub (Apr 7, 2018):
ping @TonyBostonTB
@TonyBostonTB commented on GitHub (Apr 7, 2018):
@kryskool sorry, not using it anymore