Ask the Community
Groups
Troubleshooting Linux Agent Installs - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>Question:</strong></p> <p>How do I troubleshoot Linux Agent Installs?</p> <p> </p> <p><strong>Answer:</strong></p> <p>For general Linux agent installation and uninstallation instructions see <a href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fhelp.kaseya.com%2Fwebhelp%2Fen%2Fvsa-online-help.asp%3F6908.htm" rel="noopener nofollow">http://help.kaseya.com/webhelp/en/vsa-online-help.asp?6908.htm</a>.</p> <p> </p> <p>Note the following specific items from there:</p> <p><strong>A - When there is a noexec Flag Set on /tmp Directory</strong></p> <p>The Linux agent installer stores temporary files in /tmp by default. Some system administrators set up /tmp with a noexec flag. When that happens, the binary installer can't run. To work around this potential problem, use the --tmpdir=<alt-tmp-dir> option to change the directory temp files are stored in. Normally this isn't needed, but in a few cases it is. Here is an example of its use:</p> <p> # ./KcsSetup.sh --tmpdir=/my/tmpdir</p> <p>----------</p> <p><strong>B - When receiving the "fatal: installation of the agent failed because this program cannot run 32 bit programs" error on targeted 64-bit Linux machines</strong></p> <p>The Linux Agent is 32-bit and the installer is built to automatically install any necessary 32-bit libraries to supported 64-bit machines as needed, though sometimes there are some 32-bit libraries that are not added to the repository of the installer to be installed. Here is how to address that:</p> <p>1 - Run the KcsSetup.sh again with the -X -V -D in a terminal window on the machine and then cd the contents of the /tmp directory from there (or whatever directory if /tmp was set with a noexec flag and something else was used as such).</p> <p>2 - In the /tmp directory (or whichever designed temp location), there will be a a KcsSetup.sh[PID] file (Where [PID] = the PID of the above ran KcsSetup.sh installer).</p> <p>3 - When that is located, run this: # ldd /[tmp or whatever directory]/KcsSetup.sh[PID]</p> <p>From there, you will see which packages are needed to install. Install those packages and then after that re-run the Kaseya Agent installation to the Linux OS-based machine. Also, file a ticket with Kaseya Support noting which packages that you had to install manually as a result of this - we can then send this to Engineering to consider adding that into the installer for the future as well.</p> <p> </p> </article> </main>