mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1265] Agent fails to update due to invalid arch #2728
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#2728
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 @NiceGuyIT on GitHub (Aug 25, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1265
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
Three agents are failing to update from v1.8.0. The logs show the following URL returns 404. This is because the arch is the PC name with a "-5" number appended.
As best I can tell, this is coming from the server. Checking the database confirms these 3 computers have the hostname in the goarch field.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect agents to be able to update regardless of how old they are.
Screenshots
N/A
Additional context
I did not see where this specific issue was logged or discussed. This bug report is mostly for visibility. Updating the database will cause the auto-update to work, but how many assets (people) have invalid information in the database? Was the root cause of this data corruption fixed?
@NiceGuyIT commented on GitHub (Aug 25, 2022):
This will use the API to identify agents that have invalid data.
First, create a
.envfile with the API key and domain.This requires HTTPie and jq to be installed. It will output the client, site, hostname and arch of any agent that is not
amd64.@NiceGuyIT commented on GitHub (Aug 25, 2022):
Running the installer to update the agent fixed the corruption.
Recover the agent did not fix the corruption. Is there any way to force the refresh of the agent data? Clicking all the refresh buttons in the GUI doesn't update the goarch. Is there an agent command I can run to force the metadata update? I'm wondering if this is specific to the agent (metadata will update to the same invalid data) or the server (metadata will update with correct data).
@wh1te909 commented on GitHub (Aug 25, 2022):
the
archtogoarchtransition was a breaking change, there was a database migration to handle this a while back but if the agents are still on 1.8.0 then that is waaay too old (released back in Jan) and you'll need to manually update them. Until trmm reaches 1.0 you should expect breaking changes and always make sure agents are on latest version before upgrading trmm otherwise stuff like this can happen.@NiceGuyIT commented on GitHub (Aug 25, 2022):
The oldest agent using the URL above is v2.1.0 and it fixes the data corruption when it updates.