NoMethodError: undefined method `delete_matched'

Problem:

Hi, I’m receiving the following error when scheduling jobs to apply Ansible roles to hosts:

NoMethodError: undefined method `delete_matched’ for #<ActiveSupport::Cache::DalliStore:0x0000000005844cc0>

The full stack trace can be found here:

Any idea how to fix this?

Expected outcome:

The scheduled job applies the role to the target host(s) successfully.

Foreman and Proxy versions:

Foreman 1.19.0

Foreman and Proxy plugin versions:

foreman-tasks 0.13.4
foreman_ansible 2.2.9
foreman_hooks 0.3.14
foreman_memcache 0.1.1
foreman_remote_execution 1.5.6

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

Manual job runs work fine. Just schedule jobs seem to fail.

logs

So one additional piece of information::

If I run a scheduled command, that works fine.
It appears to fail with scheduled Foreman roles from what I can tell.

There’s an issue[1] for that.

[1] - Bug #25178: jobs fails even if all subtasks succeeds - Foreman Remote Execution - Foreman

1 Like

Thanks Adam! I must’ve missed that somehow.