mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #977] Automation Policies wont apply #594
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#594
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 @guillaumebottollier on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/977
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
Hello,
Since upgraded to 0.11.3 automation policies does not applied anymore to agents.
i try to remove the policy, this will wype all the tasks and checks on agents correctly.
then i do all the server maintenances, restart the whole machine
but still the same : assignement of Automation policy has no effect on agents
To Reproduce
Steps to reproduce the behavior:
apply an automation policy to a client or site, no checks and no task will appear on agents
Expected behavior
application of policies build in the automation manager
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
@sweatyeggs69 commented on GitHub (Feb 18, 2022):
Same Issue:
All the way from Global Settings to applying a policy directly to an asset, the asset is not inheriting any Checks or Tasks. Rebooted VM to test and all ran all server maintenance tasks.
@ssteeltm commented on GitHub (Feb 18, 2022):
Same issue here, problem:
apply an automation policy to a client or site, no checks and no task will appear on agents
Steps to reproduce:
Install new Agent;
Agent wont inherit default policy or applied policy on itself,client or site.
Under the Setting>Automation , the policies also seens to had lost relations, only a few devices/clients/sites are related.
@wh1te909 commented on GitHub (Feb 18, 2022):
can you all please paste output of
redis-server --versionandcat /etc/*release*thanks@guillaumebottollier commented on GitHub (Feb 18, 2022):
Hello Dan, here are the outputs :
redis-server --version Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=94145a25ce04923cat /etc/*release* PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"Thank's for investigate on this.
@wh1te909 commented on GitHub (Feb 18, 2022):
thanks. so far am unable to reproduce.
can you provide steps to reproduce from a blank state.
see below gif. might be easier for you to screen record the steps like I did here
https://imgur.com/M8YYhSF
@guillaumebottollier commented on GitHub (Feb 18, 2022):
mmm problem seems to be more tricky, i create a new client/site with a new agent, and assignement of a newly created automation policy test works.
But it does partially works on a site containing 100 agents, some online some offline, with the same automation policy test.
the numbers of agents in the site seems to really impact.
I recreat my policy from scratch and applied on this 100 agents site, and i have duplicated tasks :
@wh1te909 commented on GitHub (Feb 18, 2022):
ok can you still record yourself creating the policy and we will test with a couple hundred agents
but need to see how you are creating the policy/checks/tasks etc and all their settings
@silversword411 commented on GitHub (Feb 21, 2022):
You're only getting partial duplication of tasks...there was an old bug with old version that had this issue. Also have you checked all your automation policies and confirmed you're not applying multiple policies at the different levels: default TRMM workstation, client, site, agent.
Remove all your policies and make sure agents see all policies unapplied (resync if necessary - and wait/confirm it applies if you're applying to hundreds of agents)
Your screenshot also cut off
@DavidAamcomp commented on GitHub (Feb 21, 2022):
Same thing is happening to me.
New clients are not applying the default Server,Workstation policy.
I am unable to add the policy manually with right click on server.
I've restarted the VM.
Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS" NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal@guillaumebottollier commented on GitHub (Feb 22, 2022):
Hello
after 1. clean all the automation policies on the impacted site/client 2. recreate the policy from srcatch 3. apply the new policy
this seems to be better, but i still have task that never runs, agent that never updates...
@silversword411 commented on GitHub (Feb 22, 2022):
I had a VERY small number (like 4) that wouldn't update to 1.8.0 (they were frequently offline/rarely rebooted). Please provide debug logs of problems, with more details.
I think I just workaround it by uninstalling and then reinstalling.
@volkjohn commented on GitHub (Mar 4, 2022):
A scheduled task for my automation policy looked like it was being run on agents that have had the agent installed for over 2 months, but the output of the scheduled task was showing that nothing was being run. On agents that had just been recently added to tacticalrmm (younger than 2 months), the scheduled task would modulate between "Waiting for task creation on agent" and something about waiting for next agent check-in.
I ended up creating a new automation policy with a new scheduled task and the scheduled task is now running correctly on all agents.
I dug into the autotasks_automatedtask table in postgres. It looks like initial scheduled task (Update All Chocolatey Apps) I setup last year now has an empty actions field, simply showing {}. The previous failed scheduled tasks, if they ran at all on agents, all have an empty actions field as well.
There are minute differences in the scheduled task that I created last year and the new one I created today. I am attaching the two scheduled tasks.
Thank you @wh1te909 and all other contributors for your work on tacticalrmm!
autotasks_EmptyActions.csv
@silversword411 commented on GitHub (Mar 4, 2022):
Sounds like this is a closed issue? Post if it needs re-opening
@schmm commented on GitHub (Mar 16, 2023):
Tasks are never applied. The status always remains on "Waiting for task creation on agent"

@silversword411 commented on GitHub (Mar 16, 2023):
...and the agent is online, and it's running latest TRMM version?
@schmm commented on GitHub (Mar 16, 2023):
up to date and online
@schmm commented on GitHub (Mar 17, 2023):
https://discord.com/channels/736478043522072608/1006426744267477053/threads/1069354059921899520
and
wget -N https://raw.githubusercontent.com/amidaware/tacticalrmm/master/update.sh
./update.sh --force
solved my problem
@schmm commented on GitHub (Mar 17, 2023):
???
@schmm commented on GitHub (Mar 20, 2023):
The error "Unable to create scheduled task" occurs when a task already exists.
After deleting the existing task on the client, the agent was able to create the task without any problems.
How can I force the task to be overwritten on the other clients?
@silversword411 commented on GitHub (Mar 20, 2023):
@schmm this is a year old issue that's closed and fixed. You need to open a new issue if you think you have a bug.