[GH-ISSUE #1148] noisy cron job handle_mailbox_operations #947

Closed
opened 2026-02-27 11:14:25 +03:00 by kerem · 4 comments
Owner

Originally created by @helgew on GitHub (Jun 21, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1148

Below is the more structured problem description. I had my struggles with this install on a clean CentOS 7 VPS, which I'll post a couple more issues about.

Impacted versions

  • Modoboa: 1.7.4
  • installer used: Yes
  • Webserver: Apache

Steps to reproduce

create a fresh install and wait 20 min.

Current behavior

every 20 min. the handle_mailbox_operations cron job produces the following error:

Traceback (most recent call last):
 File "/srv/modoboa/instance/manage.py", line 22, in <module>
   execute_from_command_line(sys.argv)
 File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
   utility.execute()
 File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
   self.execute(*args, **cmd_options)
 File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
   output = self.handle(*args, **options)
 File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/admin/management/commands/handle_mailbox_operations.py", line 105, in handle
   os.unlink(options["pidfile"])
OSError: [Errno 2] No such file or directory: '/tmp/handle_mailbox_operations.pid'

Expected behavior

no error is thrown

Originally created by @helgew on GitHub (Jun 21, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1148 Below is the more structured problem description. I had my struggles with this install on a clean CentOS 7 VPS, which I'll post a couple more issues about. # Impacted versions * Modoboa: 1.7.4 * installer used: Yes * Webserver: Apache # Steps to reproduce create a fresh install and wait 20 min. # Current behavior every 20 min. the handle_mailbox_operations cron job produces the following error: ```python Traceback (most recent call last): File "/srv/modoboa/instance/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa/admin/management/commands/handle_mailbox_operations.py", line 105, in handle os.unlink(options["pidfile"]) OSError: [Errno 2] No such file or directory: '/tmp/handle_mailbox_operations.pid' ``` # Expected behavior no error is thrown
kerem closed this issue 2026-02-27 11:14:25 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 7, 2017):

Can't reproduce this issue, closing for now.

<!-- gh-comment-id:349936609 --> @tonioo commented on GitHub (Dec 7, 2017): Can't reproduce this issue, closing for now.
Author
Owner

@KarlBaumann commented on GitHub (Nov 20, 2019):

I am having exactly this issue on latest Modoboa version

<!-- gh-comment-id:556102643 --> @KarlBaumann commented on GitHub (Nov 20, 2019): I am having exactly this issue on latest Modoboa version
Author
Owner

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

@KarlBaumann Does it happen every time the task run?

<!-- gh-comment-id:557542121 --> @tonioo commented on GitHub (Nov 22, 2019): @KarlBaumann Does it happen every time the task run?
Author
Owner

@KarlBaumann commented on GitHub (Nov 22, 2019):

Yes. I get this two times every minute

<!-- gh-comment-id:557552402 --> @KarlBaumann commented on GitHub (Nov 22, 2019): Yes. I get this two times every minute
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#947
No description provided.