mirror of
https://github.com/amidaware/rmmagent.git
synced 2026-04-26 14:55:47 +03:00
[GH-ISSUE #2] Mesh Agent Install Failure - "The file or directory is corrupted and unreadable" #2
Labels
No labels
bug
bug
enhancement
fixed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rmmagent#2
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 @Can-eh-dian11 on GitHub (Mar 23, 2022).
Original GitHub issue: https://github.com/amidaware/rmmagent/issues/2
Hi,
I recently updated to 0.12.0 via the provided update.sh script and have discovered that any attempt to install the TacticalRMM agent on a new computer fails during the Mesh Agent installation.
Brief overview of my current setup:
The meshagent.exe file is downloaded on the affected system however it is a 1KB file. I've included the error message presented by the TacticalRMM installer (Switching between installation methods makes no difference). There only seems to be an issue with agent install, the rest of the functionality provided by TacticalRMM is fine for existing agents.
What I've tried:
Any ideas you may have to correct this would be much appreciated!
@dinger1986 commented on GitHub (Mar 23, 2022):
Is your AV messing it up?
@Can-eh-dian11 commented on GitHub (Mar 23, 2022):
Not that I've seen. Nothing reported in any logs and I've tried the agent install with A/V disabled as well as completely removed.
@dinger1986 commented on GitHub (Mar 23, 2022):
Does it work installing mesh directly?
@Can-eh-dian11 commented on GitHub (Mar 23, 2022):
Just tested that and installing the mesh agent on its own works fine
@silversword411 commented on GitHub (Mar 24, 2022):
Are you code signed?
What agent install method are you using?
Screenshots are good, need to determine what's different between your install and others, since we haven't seen others reporting windows agent issues like this.
Does you installation deviate in any way from the standard install (proxies/alt cert methods etc)
Smaller files than expected are usually signs of in-network av download interruptions
@Unstable-Penguin commented on GitHub (Mar 24, 2022):
Hi,
I've got a similar issue happening with my install. When the tactical agent try's to install the mesh agent it fails. When running with debugging it generates a HTTP response of 400 from the mesh central server and fails.
I've ruled out being a config issue with the existing setup as I re-install everything from scratch in a test env
It's not the AV as that has been fully disabled and I receive the same results
Debug snippet below
`==============================================================================
2022/03/24 16:28:55.640377 DEBUG RESTY
@Can-eh-dian11 commented on GitHub (Mar 24, 2022):
Just want to add on that I've been testing a few things out on my end this morning as well and I'm getting the same 400 error with the same API call. If I download the mesh agent separately and place it on the guest then specify the local mesh option during install effectively bypassing this request everything works as expected.
@silversword411 commented on GitHub (Mar 24, 2022):
Asking again, did I miss your answer?
a 1kb file sounds like in-network av slicing the download and corrupting the file
@silversword411 commented on GitHub (Mar 24, 2022):
Also did you really say Windows 10 1909...as in you haven't patched in 2 years and have killed windows update somehow?
@Can-eh-dian11 commented on GitHub (Mar 24, 2022):
Sorry, I completely forgot to include that information in my previous response...
Windows 10 1909 Enterprise which is still supported (I should have been more specific)
We are not using code signed agents. We have A/V exclusions in place per the documentation and A/V was disabled for all testing. Attempts have been made using the generated exe installer, PowerShell, as well as the manual installation option. For the purposes of this test we were logging into the TacticalRMM console from the guest and downloading the agent directly.
Is there something specific you want screenshots of? Config files? Agent install output?
We have implemented all items in the "Securing nginx" guide. Everything else was a standard install following the documentation provided.
Agreed however I can download the mesh agent and tactical agent standalone without any interruptions. I only run into this issue when the Tactical agent installer attempts to download the mesh agent application. Not saying this can't be the issue, just that I would have expected to run into issues elsewhere as well.
@silversword411 commented on GitHub (Mar 24, 2022):
As with all detective work, are these the only machines you have in TRMM, or are there others working fine?
Are you using agent install, or deployment links? Download the deployment links with the web browser from different networks. Are the files the same size?
Have you customized your mesh? Tactical installed and managed, or secondard? Have you changed settings in meshcentral? Have you renamed the default "TacticalRMM" group in meshcentral?
@silversword411 commented on GitHub (Mar 24, 2022):
Troubleshooting is better done thru discord on this stuff.
@silversword411 commented on GitHub (Mar 24, 2022):
FYI, you can log into mesh.yourdomain.com , and download the installer manually, does that work?
@wh1te909 commented on GitHub (Mar 25, 2022):
@Can-eh-dian11 please upgrade to 0.12.1 and run the new mesh troubleshooting script (check 0.12.1 release notes on the main repo) and then paste the output of that here (redact sensitive info like domains and tokens)
@Unstable-Penguin commented on GitHub (Mar 25, 2022):
@wh1te909 @Can-eh-dian11
I've been able to run the update on our install this morning and still no joy. Still getting the same error as yesterday.
From my experience the issue is with the request the Tactical agent makes to mesh. This has only happened since the update to version 2
See below for log files and command results.
tactical.exe --log debug
/rmm/api/env/bin/python /rmm/api/tacticalrmm/manage.py check_mesh
Mesh site: https://mesh.REDACTED Mesh username: zteycisq Mesh token: REDACTED Mesh device group: TacticalRMM Auth token ok: REDACTED Mesh url ok: wss://mesh.REDACTED/control.ashx?auth=REDACTED Mesh device id ok: BqgwZd0vOZZ0AEVjTCndMuG1LN2JbTLyKJ92fnDT0nkM7aAF0IYA333JJPTe3SqY@Unstable-Penguin commented on GitHub (Mar 25, 2022):
@wh1te909 @Can-eh-dian11
I have found the cause and a work around for my instance. Hopefully this works for you @Can-eh-dian11
In my instance I found the issue relates to the python SSL library using it's own CA store. Not to sure why it is. As a result the SSL for mesh is no longer a valid certificate so the API services errors. I've imported the CA into the Python store and it now working for me
Run the below from you tactical user account to import the CA
@wh1te909 commented on GitHub (Mar 25, 2022):
glad you figured it out, I totally missed the post where you mentioned you were using the "securing nginx" guide which is not officially supported. so that's why you have to do that workaround. I will update the the securing nginx docs with a link to this ticket in case someone comes across this in the future.