Skip to content

Release Notes - 3.7.1

Version 3.7.1
Release date 12 Apr 2023
Build number 11111
Next scheduled release 24 Apr 2023
Status RELEASED
Nanitor Collector 3.7.1.11111
Nanitor Agent 3.7.1.11111

Upgrading instructions:

Upgrading the Nanitor Server
Upgrading the Nanitor Collector
Upgrading the Nanitor Agent


Nanitor version 3.7.0 may have resulted in the installation of Windows agents that could crash and fail to report their status to the Nanitor server. We want to sincerely apologize for any inconvenience or disruptions this may have caused you.

The cause of this issue is related to an incident on GitHub that occurred during the build process of version 3.7.0. Our team had already identified a crucial fix required to prevent the agent from crashing, and this fix was implemented and tested during our QA process. However, the fix was inadvertently ignored due to the GitHub incident, and an older version of the code was released instead.

We understand the importance of maintaining a stable and reliable system and are committed to resolving this issue promptly. To assist you in addressing the problem, we have provided the commands and a step-by-step guide below to fix the agents that may be stuck in the bugged version.

Applying the fix using endpoint managers

If you have an RMM or any kind of an endpoint manager, you can ensure the Windows agents have the fix installed by running this script on the endpoints:

Set-Item -Path Env:NANITOR_TEST_CLI -Value 1
cd "c:\Program Files\Nanitor\Nanitor Agent" 
net stop "Nanitor Agent" 
.\nanitor-agent.exe run_upgrade_maintenance 
net start "Nanitor Agent"
set NANITOR_TEST_CLI=1
cd "c:\Program Files\Nanitor\Nanitor Agent"
sc stop "Nanitor Agent"
nanitor-agent.exe run_upgrade_maintenance
sc start "Nanitor Agent"

To be sure you have the correct version installed you can run nanitor-agent.exe info and you should get an output like this:

Proxy Server: None
Agent version: 3.7.1.11111 <--- This is the fixed version
Signed up to a server: Yes
Server URL: https://<url to your Nanitor instance>/api
UUID: 00000000-0000-0000-0000-000000000000
Shadow Activity: false
Data Directory: C:\ProgramData\Nanitor\Nanitor Agent
LogFile: C:\ProgramData\Nanitor\Nanitor Agent\Nanitor_Agent.log

Applying the fix manually

Here is a step-by-step guide with explanations for fixing the Windows agent:

  1. Open a Command Prompt (cmd.exe) with administrative privileges (right-click and select "Run as administrator").

  2. Execute the following command to enable test mode for the Nanitor CLI:

    set NANITOR_TEST_CLI=1
    
  3. Change the directory to the location of the Nanitor Agent by entering the following command:

    cd "c:\Program Files\Nanitor\Nanitor Agent"
    
  4. Stop the Nanitor Agent service by executing the following command:

    sc stop "Nanitor Agent"
    
  5. Run the agent upgrade maintenance script with the following command:

    nanitor-agent.exe run_upgrade_maintenance
    
  6. Finally, restart the Nanitor Agent service by entering the following command:

    sc start "Nanitor Agent"
    

These steps should resolve the issue and restore the functionality of your Nanitor agents. We sincerely apologize for any inconvenience this may have caused, and we appreciate your understanding as we work to continuously improve our software and services.

Please do not hesitate to reach out to our support team if you have any questions or require further assistance. We are always here to help.