Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Death of the task_manager process #681

Closed
bmarchal54 opened this issue Jul 3, 2019 · 6 comments · Fixed by #684
Closed

Death of the task_manager process #681

bmarchal54 opened this issue Jul 3, 2019 · 6 comments · Fixed by #684
Assignees
Labels
Milestone

Comments

@bmarchal54
Copy link
Contributor

bmarchal54 commented Jul 3, 2019

Since switching to version 6.2.42, I have regularly stopped the task_manager process.
When I look at which list that might correspond, I suspect that it corresponds to a list that has been deleted between the definition of the task and the launch of it.

Version

6.2.42

Installation method

yum package

Error message in sympa.log

Jul  3 06:42:02 esbareich task_manager[46073]: notice Sympa::Spindle::ProcessTask::_execute() Running task Sympa::Task <date=1562128919;label=INIT;model=sync_include;context=*>
**Jul  3 06:42:02 esbareich task_manager[46073]: err main::#148 > Sympa::Spindle::spin#83 > Sympa::Spindle::ProcessTask::_twist#74 > Sympa::Spindle::ProcessTask::_execute#140 > Sympa::Spindle::ProcessTask::_cmd_process#174 > Sympa::Spindle::ProcessTask::do_sync_include#1334 DIED: Can't call method "sync_include" without a package or object reference at /usr/share/sympa/lib/Sympa/Spindle/ProcessTask.pm line 1334, <GEN9042068> line 1.**

List of task to execute

# ll /var/spool/sympa/task/*1562128919*
-rw-r----- 1 sympa sympa 112  3 juil. 06:41 1**562128919.INIT.sync_include.all-lettres-l-3-ncy-et-culturelles-fi-1920@etu.univ-lorraine.fr**
-rw-r----- 1 sympa sympa 112  3 juil. 06:41 1562128919.INIT.sync_include.all-mz-l2-ulpla-1920@etu.univ-lorraine.fr

But in the directory /var/lib/sympa/list_data/etu.univ-lorraine.fr :

# ll -d all-lettres-l-3-ncy-et-culturelles-fi-* 
drwxr-xr-x 2 sympa sympa 4096  3 juil. 05:32 all-lettres-l-3-ncy-et-culturelles-fi-1819

The list all-lettres-l-3-ncy-et-culturelles-fi-1920 t does not exist anymore

Thanks in advance

@racke
Copy link
Contributor

racke commented Jul 3, 2019

Looks like the task manager should check if the list still exists and discard the task if the list is gone.

@bmarchal54
Copy link
Contributor Author

bmarchal54 commented Jul 3, 2019 via email

@ikedas
Copy link
Member

ikedas commented Jul 7, 2019

Hi @bmarchal54,
Could you please apply this patch and check if the problem will be solved? Thanks.

@ikedas ikedas added this to the 6.2.46 milestone Jul 7, 2019
@bmarchal54
Copy link
Contributor Author

bmarchal54 commented Jul 8, 2019 via email

@bmarchal54
Copy link
Contributor Author

bmarchal54 commented Jul 11, 2019 via email

ikedas added a commit that referenced this issue Jul 11, 2019
task_manager.pl dies when the list no longer exist (#681)
@ikedas
Copy link
Member

ikedas commented Jul 11, 2019

I merged fix, and it will be included in the next release.
@bmarchal54, thanks for reporting bug and improving Sympa!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants