This page explains how to execute a TrendMiner upgrade using one the two scripts attached to this post.
There are a few causes which can prevent an upgrade from getting started due to an incomplete upload:
- The upgrade file can reach a size of more then 10 GB which is fully loaded into the browser memory when upgrading through Edge manager. Some devices do not have enough RAM memory to completely load the file in memory.
- Some network devices can block the upload of large files through a browser.
- If the upload is taking a long time, it is possible you get logged out of Edge manager while the upload is in progress.
The upgrade process will be structurally improved in version 2025.R4.0, but since the above issues can occur in all previous versions, this script was created.
The alternative method to upgrade TrendMiner is explained below:
Upgrading from a Windows device:
- Download the Windows_upgrade_script.zip file attached to this post.
- Unzip the file on the device from which you want to execute the upgrade.
- Open the Windows_upgrade_script.ps1 file in Powershell and configure the following fields:
$BaseUrl = "http://MYDOMAIN:8080" (example = http://trendminerserver:8080)
$Password = “Edge manager admin password”
$FilePath = "MY_FILEPATH" (example: C:\users\trendminer-2025.R3.0-06-alma9.tar.gz)- Its important to only use the http endpoint on port 8080 for the BASE_URL.
- When you have filled in the above configuration details correctly. Click the execute button in Powershell and you will see the output being printed. If the script is running successfully you will see a similar output as the following:
INFO: Fetching CSRF token...
SUCCESS: CSRF token obtained
INFO: Logging in...
SUCCESS: Login successful
INFO: Verifying authentication...
SUCCESS: Authentication verified
System info: {"orchestrator":"k3s","delivery":"appliance"}
INFO: Starting file upload...
INFO: Uploading 10.690,30 MB...
Please wait, this may take a while for large files...- Wait until the upload has completed and the upgrade should start. You can then monitor the upgrade actions in Edge manager:
- Once the file is uploaded, the list of 'Recent Actions' in the right panel of the screen will show the update progress. Wait until every ‘PENDING’ task changes into the ‘SUCCESS’ status.
Upgrading from a MacOS or Linux device:
- Download the Bash_upgrade_script.zip file in the attachment of this post.
- Open the script with a text editor and configure the following values:
-
BASE_URL="http://MYDOMAIN:8080" (example = http://trendminerserver:8080)
PASSWORD=“Edge manager admin password”
FILE_PATH= "MY_FILEPATH" (example: C:\users\trendminer-2025.R3.0-06-alma9.tar.gz)- Its important to only use the http endpoint on port 8080 for the BASE_URL.
- Open a terminal and go to the folder that the script resides in with this command:
- cd <path_to_folder>
- Make the script executable with following command:
- chmod +x Bash_upgrade_script.sh
- Run the script with following command:
- ./Bash_upgrade_script.sh
- If everything is configured correctly you will see a similar output to the following:
-
INFO: Fetching CSRF token...
SUCCESS: CSRF token obtained
INFO: Logging in...
SUCCESS: Login successful
INFO: Verifying authentication...
SUCCESS: Authentication verified
System info: {"orchestrator":"k3s","delivery":"appliance"}
INFO: Starting file upload...
INFO: Uploading 10.690,30 MB...
Please wait, this may take a while for large files... - Wait until the upload has completed and the upgrade should start. You can then monitor the upgrade actions in Edge manager:
- Once the file is uploaded, the list of 'Recent Actions' in the right panel of the screen will show the update progress. Wait until every ‘PENDING’ task changes into the ‘SUCCESS’ status.
