Tried to disable FetchMail, stuck endless tasks running...
Moderator: crythias
-
- Znuny newbie
- Posts: 8
- Joined: 19 Oct 2024, 22:30
- Znuny Version: 7.1
- Real Name: Kristian Guntzelman
- Company: LST
Tried to disable FetchMail, stuck endless tasks running...
Hi there, folks.
Recently I disabled (or attempted to disable) the FetchMail and FetchMailSSL tasks, as my understanding is they're not needed if I'm doing IMAP connections for our postmaster boxes.
The FetchMail task seemed to accept being disabled, but the FetchMailSSL task is being persistent and continuing to run, even though it's set to 0 for concurrent tasks: As you can see below, I keep getting the alert below every 5 minutes telling me that FetchMail wasn't found (as expected, hence the reason to disable). But as you can see, instances is set to 0, which other forum searches suggest is how you disable. The same settings over in the regular FetchMail task, have stopped those alerts, so this seems like the task is just stuck. You'll also note it's set to run once every 30 days (an initial increase from the 5 minutes), and even that setting didn't take...
Another forum post suggested stopping the Cron and Daemon tasks, clearing cache, then restarting them, but the alerts are still appearing. I've also restarted the server for good measure - no luck on any front.
Might anyone be able to recommend how to get that stuck task cleared so those infernal alerts cease?
Thanks.
Recently I disabled (or attempted to disable) the FetchMail and FetchMailSSL tasks, as my understanding is they're not needed if I'm doing IMAP connections for our postmaster boxes.
The FetchMail task seemed to accept being disabled, but the FetchMailSSL task is being persistent and continuing to run, even though it's set to 0 for concurrent tasks: As you can see below, I keep getting the alert below every 5 minutes telling me that FetchMail wasn't found (as expected, hence the reason to disable). But as you can see, instances is set to 0, which other forum searches suggest is how you disable. The same settings over in the regular FetchMail task, have stopped those alerts, so this seems like the task is just stuck. You'll also note it's set to run once every 30 days (an initial increase from the 5 minutes), and even that setting didn't take...
Another forum post suggested stopping the Cron and Daemon tasks, clearing cache, then restarting them, but the alerts are still appearing. I've also restarted the server for good measure - no luck on any front.
Might anyone be able to recommend how to get that stuck task cleared so those infernal alerts cease?
Thanks.
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 4150
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Tried to disable FetchMail, stuck endless tasks running...
Hi,
Just reset these settings to the default (Button 'reset setting'). They are only required when using fetchmail instead of the built-in Postmaster accounts.
- Roy
Just reset these settings to the default (Button 'reset setting'). They are only required when using fetchmail instead of the built-in Postmaster accounts.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 8
- Joined: 19 Oct 2024, 22:30
- Znuny Version: 7.1
- Real Name: Kristian Guntzelman
- Company: LST
Re: Tried to disable FetchMail, stuck endless tasks running...
Oh yeah. Forgot to mention - already tried that too.
However, you did get me thinking, so here's what I then tried....
Instead of disabling, I changed it from every 5 minutes, to every 10 minutes. Sure enough, it did pick up that change. I then set it to disabled (0 instances), and it continued to send them every 10 minutes. So, from what I can tell, it's ignoring the 0 Parallel Instances option. I had previously tried to set it for 30 days, but that didn't seem to work. I'll try various combinations to see where the breakdown is, but in the end, I guess the issue is that it's ignoring the setting of 0 Instances (kind of a bummer, for an item that, these days, can remain disabled anyway).
One that I just tried was 0 0 1 * * (which should be once a month). With that setting, it reverted to every 5 minutes. lol
However, you did get me thinking, so here's what I then tried....
Instead of disabling, I changed it from every 5 minutes, to every 10 minutes. Sure enough, it did pick up that change. I then set it to disabled (0 instances), and it continued to send them every 10 minutes. So, from what I can tell, it's ignoring the 0 Parallel Instances option. I had previously tried to set it for 30 days, but that didn't seem to work. I'll try various combinations to see where the breakdown is, but in the end, I guess the issue is that it's ignoring the setting of 0 Instances (kind of a bummer, for an item that, these days, can remain disabled anyway).
One that I just tried was 0 0 1 * * (which should be once a month). With that setting, it reverted to every 5 minutes. lol
-
- Administrator
- Posts: 4150
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Tried to disable FetchMail, stuck endless tasks running...
Hi,
As I already said: I doubt that you're using fetchmail. Do you have a .fetchmailrc configured? I guess you probably want to adjust the timing for the MailAccountFetch job.
- Roy
As I already said: I doubt that you're using fetchmail. Do you have a .fetchmailrc configured? I guess you probably want to adjust the timing for the MailAccountFetch job.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 8
- Joined: 19 Oct 2024, 22:30
- Znuny Version: 7.1
- Real Name: Kristian Guntzelman
- Company: LST
Re: Tried to disable FetchMail, stuck endless tasks running...
No, I'm not using FetchMail, which is why I'm looking to disable the job that's running. Perhaps I'm not understanding what you're asking, as I've tried to be clear on why I'm looking to disable the routine, which is running (essentially, unsolicited), and appears to be doing so by default. We don't use FetchMail, so I want to stop the routine from running. I was able to get it to stop the non-SSL variant, but the SSL variant keeps running, despite me using the same method to disable it. I seem to be able to adjust the time to some degree (allowing me to reduce how often it annoys me), but I can't seem to get it to stop (and I very much want it to stop because we don't use FetchMail).
-
- Administrator
- Posts: 4150
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Tried to disable FetchMail, stuck endless tasks running...
Hi,
Then start with stopping the Znuny daemon and kill every process that's left. Then wait for the Daemon's auto start via the cron job.
What is the output of
bin/znuny.Console.pl Maint::Daemon::Summary
after the daemon has started again?
- Roy
Then start with stopping the Znuny daemon and kill every process that's left. Then wait for the Daemon's auto start via the cron job.
What is the output of
bin/znuny.Console.pl Maint::Daemon::Summary
after the daemon has started again?
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 8
- Joined: 19 Oct 2024, 22:30
- Znuny Version: 7.1
- Real Name: Kristian Guntzelman
- Company: LST
Re: Tried to disable FetchMail, stuck endless tasks running...
So, I killed that Cron, and looked at the list of running processes with "znuny" in the title, and there's one that keeps incrementing it's PID every second or two:
znuny 11101 0.0 0.0 6672 1920 pts/1 S+ 17:16 0:00 grep Znuny
Which makes it hard to kill, because it keeps telling me there is no task with that PID.
kill 11101
bash: kill: (11101) - No such process
Here's the lower part of the output:
| SurveyRequestsSend | 2024-10-24 17:15:00 | Success | < 1 Second | 2024-10-24 17:20:00 |
| FetchMail | 2024-10-01 00:00:00 | Fail | < 1 Second | 2024-11-01 00:00:00 |
| FetchMailSSL | 2024-10-24 17:00:00 | Fail | < 1 Second | 2024-10-24 18:00:00 |
| SurveyRequestsDelete | 2024-10-24 17:00:00 | Success | < 1 Second | 2024-10-24 17:20:00 |
+---------------------------------+---------------------+-------------+---------------+---------------------+
Recurrent generic agent tasks:
There are currently no generic agent recurring tasks configured.
Unhandled Worker Tasks:
There are currently no tasks waiting to be executed.
Handled Worker Tasks:
There are currently no tasks being executed.
znuny 11101 0.0 0.0 6672 1920 pts/1 S+ 17:16 0:00 grep Znuny
Which makes it hard to kill, because it keeps telling me there is no task with that PID.
kill 11101
bash: kill: (11101) - No such process
Here's the lower part of the output:
| SurveyRequestsSend | 2024-10-24 17:15:00 | Success | < 1 Second | 2024-10-24 17:20:00 |
| FetchMail | 2024-10-01 00:00:00 | Fail | < 1 Second | 2024-11-01 00:00:00 |
| FetchMailSSL | 2024-10-24 17:00:00 | Fail | < 1 Second | 2024-10-24 18:00:00 |
| SurveyRequestsDelete | 2024-10-24 17:00:00 | Success | < 1 Second | 2024-10-24 17:20:00 |
+---------------------------------+---------------------+-------------+---------------+---------------------+
Recurrent generic agent tasks:
There are currently no generic agent recurring tasks configured.
Unhandled Worker Tasks:
There are currently no tasks waiting to be executed.
Handled Worker Tasks:
There are currently no tasks being executed.
-
- Administrator
- Posts: 4150
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Tried to disable FetchMail, stuck endless tasks running...
Hi,
If FetchMail and FetchMailSSL are shown, you did not have the settings set to default and/or forgot to deploy the changes.
- Roy
If FetchMail and FetchMailSSL are shown, you did not have the settings set to default and/or forgot to deploy the changes.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 8
- Joined: 19 Oct 2024, 22:30
- Znuny Version: 7.1
- Real Name: Kristian Guntzelman
- Company: LST
Re: Tried to disable FetchMail, stuck endless tasks running...
I had deployed, but I swear it was still sending them. I think the seemingly sporadic nature had to do with my method of "disabling".
Previously I was attempting to disable them by setting their instance count to "0" (something I had read on another forum post). This time, I actually found the Disable option in the nested menu. It didn't work the first time, I had to reset those two menus to their default, deploy, then go in and disable, but that did do the trick. They are no longer listed on the task summary (so, I'm assuming will no longer run).
Thank you. That has been driving me nuts.
Previously I was attempting to disable them by setting their instance count to "0" (something I had read on another forum post). This time, I actually found the Disable option in the nested menu. It didn't work the first time, I had to reset those two menus to their default, deploy, then go in and disable, but that did do the trick. They are no longer listed on the task summary (so, I'm assuming will no longer run).
Thank you. That has been driving me nuts.