netvolt / LinuxRMM-Script

To help users that want to add Linux Agents to Tactical RMM, without need to pay upfront for code signed agents. Thanks to @ZoLuSs for the initial commit. If this solution works for you, consider contributing to Tactical RMM project!
MIT License
89 stars 39 forks source link

FATA[0000] Post "https://api.FQDN.com/api/v3/installer/": remote error: tls: handshake failure #5

Closed RyderTech closed 1 year ago

RyderTech commented 1 year ago

Any clues as to what would be causing this error?

FATA[0000] Post "https://api.FQDN.com/api/v3/installer/": remote error: tls: handshake failure

cheers

netvolt commented 1 year ago

Hello, looks like a pointing error of your hosting and certificate (HTTPS), not necessarely related to the RMM script itself.

RyderTech commented 1 year ago

Weird that it's only linux clients that throw this error?

netvolt commented 1 year ago

Is this error related to the script installation or the use of system? Can you provide full details of it?

RyderTech commented 1 year ago

This error is thrown on installation of the agent itself, since raising it the first time as docker is technically not supported, I did a fresh build on a new Ubuntu install, following the instructions to a T on the installation guide page - hitting the exact same issue again when trying to install the agent on any Linux build, windows agents deploy fine, and mesh installs absolutely fine and operates as it should - but agent will not deploy as this is on two seperate builds, one in docker, one a straight install but getting the same error each time - I'm scratching my head a little.

Archive: /tmp/rmmagent.zip a3c3de947e5af976d8b5d83dd643381ce937e73c creating: /tmp/rmmagent-master/ creating: /tmp/rmmagent-master/.github/ creating: /tmp/rmmagent-master/.github/workflows/ inflating: /tmp/rmmagent-master/.github/workflows/ci.yml inflating: /tmp/rmmagent-master/.gitignore creating: /tmp/rmmagent-master/.vscode/ inflating: /tmp/rmmagent-master/.vscode/settings.json inflating: /tmp/rmmagent-master/LICENSE.md inflating: /tmp/rmmagent-master/README.md creating: /tmp/rmmagent-master/agent/ inflating: /tmp/rmmagent-master/agent/agent.go inflating: /tmp/rmmagent-master/agent/agent_unix.go inflating: /tmp/rmmagent-master/agent/agent_windows.go inflating: /tmp/rmmagent-master/agent/checkin.go inflating: /tmp/rmmagent-master/agent/checks.go inflating: /tmp/rmmagent-master/agent/choco_windows.go inflating: /tmp/rmmagent-master/agent/eventlog_windows.go inflating: /tmp/rmmagent-master/agent/install.go inflating: /tmp/rmmagent-master/agent/install_unix.go inflating: /tmp/rmmagent-master/agent/install_windows.go inflating: /tmp/rmmagent-master/agent/patches_windows.go inflating: /tmp/rmmagent-master/agent/process.go inflating: /tmp/rmmagent-master/agent/rpc.go inflating: /tmp/rmmagent-master/agent/services_windows.go inflating: /tmp/rmmagent-master/agent/software_windows_386.go inflating: /tmp/rmmagent-master/agent/software_windows_amd64.go inflating: /tmp/rmmagent-master/agent/svc.go inflating: /tmp/rmmagent-master/agent/syscall_windows.go inflating: /tmp/rmmagent-master/agent/tasks_windows.go inflating: /tmp/rmmagent-master/agent/utils.go inflating: /tmp/rmmagent-master/agent/wmi_windows.go inflating: /tmp/rmmagent-master/agent/wua_windows.go creating: /tmp/rmmagent-master/build/ inflating: /tmp/rmmagent-master/build/rmm.exe.manifest inflating: /tmp/rmmagent-master/build/setup.iss inflating: /tmp/rmmagent-master/go.mod inflating: /tmp/rmmagent-master/go.sum inflating: /tmp/rmmagent-master/main.go creating: /tmp/rmmagent-master/shared/ inflating: /tmp/rmmagent-master/shared/types.go inflating: /tmp/rmmagent-master/versioninfo.json warning: GOPATH set to GOROOT (/usr/local/go) has no effect cp: cannot create regular file '/usr/local/bin/rmmagent': Text file busy FATA[0000] Post "https://api.FQD.name/api/v3/installer/": remote error: tls: handshake failure Tactical Agent Install is done

(Domain changed from actual domain used on install)

netvolt commented 1 year ago

The problem looks related to this lack of permission for script. GOPATH set to GOROOT (/usr/local/go) has no effect cp: cannot create regular file '/usr/local/bin/rmmagent' Some servers like Cpanel , do not permit scripts to create necessary folders and alter some configurations like PATH properly. You´ll need to find out in your specific case, whats is blocking script to run and create the necessary PATH and folders necessary for it to run properly.