Table of Contents
From version 1.1.27 AstreoBot has an automatic updater. In the Settings > General sector it’s possible to choose the desired update method from the following options:
Semi-automatic update (recommended)
With the Download and wait for manual confirmation option when a new version is detected, it will be downloaded automatically. It will be notified on the interface and via Telegram or System (if such notifications are active).
Once notified you can enter the provided link and confirm the update which will be done automatically.
Se debe tener en cuenta que la actualización del bot se realiza en pocos segundos, sin embargo la actualización de la base de datos puede necesitar más tiempo para terminar adecuadamente. Además al iniciar el bot comienza el período de Safety Timeout.
It should be noted that updating the bot takes a few seconds, however updating the database may need more time to finish properly. Besides, when the trading engine is enabled, the Safety Timeout period begins.
Important: Before confirming the installation, consider these times and make sure your symbols are not waiting to sell, so as not to lose that window of opportunity.
Automatic update
With the Download, install and restart automatically option when a new version is detected, it will be downloaded and installed automatically.
The bot will restart at the end of the update process.
It should be noted that updating the bot takes a few seconds, however updating the database may need more time to finish properly. Besides, when the trading engine is enabled, the Safety Timeout period begins.
Important: Before confirming the installation, consider these times and make sure your symbols are not waiting to sell, so as not to lose that window of opportunity.
Manual update
With the Only notify option you will only be notified of new updates in the interface and through Telegram or System (if such notifications are active). You will need to download and install manually. To do this, follow the instructions below according to the operating system in which you have installed AstreoBot:
Windows
- Disable Trading Engine in the Dashboard and close astreobot
- Backup the folder where you currently run the bot.
- Go to http://download.astreobot.com/, select Windows as the operating system, the Update package and paste your AstreoBot license. You will get the link to download your version.
- Unzip the downloaded files in the folder where you run the bot (since it is an Update version your database won’t be affected)
- Run astreobot file.
- A window will open while AstreoBot is working.
- Wait while the database is updated. It is important to wait until you receive the confirmation message “Database upgraded”.
- Open the following URL in a browser (we recommend Chrome): http://localhost:3000 or
http://VPS-IP:3000
Linux
To update AstreoBot on Linux follow the instructions below. These instructions are oriented to Centos 7, and may vary depending on the chosen distribution:
- Enter your VPS or Linux device via console. If you manage a Linux VPS from Windows, you must install a program for this purpose:Download Putty in your Windows PC.
- Run the downloaded file.
- Complete the Host Name (or IP Address) field with that of your VPS.
- Press the Open button. The console will open.
- Type root and press the enter key.
- Write your VPS password and press the enter key.
- Disable Trading Engine in the Dashboard and close astreobot
pm2 stop all
pm2 delete all - Backup the folder where you currently run the bot. (modify the file name according to the version you are backing up):
zip -r backup/astreobot_backup_1.1.5.zip linux64
If it doesn’t find the backup folder, create it with the command:mkdir backup
If you get the “Command not found” error you must run this and then continue with the guide:
Centos command is:yum install zip -y
Ubuntu command is:apt install zip
- Go to http://download.astreobot.com/, select Linux (64 bits)as the operating system, the Update package and paste your AstreoBot license. You will get the link to download your version with the wget or curl command. Choose one of them and paste it on the console.
- Unzip all the files in the folder where you run the bot:
unzip -o linux64_update_latest.zip
If you get the “Command not found” error you must run this and then continue with the guide:
Centos command is:yum install unzip -y
Ubuntu command is:apt install unzip
- Rename the downloaded folder:
cp linux64_update/* linux64/
- Confirm that you want to overwrite existing files by typing y letter for each file you want to overwrite (since it is an Update version your database won’t be affected).
- Go to the linux64 folder:
cd linux64
- Run astreobot file:
pm2 start astreobot
- Check pm2 logs:
pm2 log astreobot
- Wait while the database is updated. It is important to wait until you receive the confirmation message “Database upgraded”.
- Leave logs with the key combination control + C
- Close console:
exit
- Open the following URL in a browser (we recommend Chrome): http://localhost:3000 or
http://VPS-IP:3000
MacOS
To update AstreoBot on MacOS follow the instructions below:
- Disable Trading Engine in the Dashboard and close astreobot
pm2 stop all
pm2 delete all - Backup the folder where you currently run the bot. (modify the file name according to the version you are backing up):
zip -r backup/astreobot_backup.zip macos
- Go to http://download.astreobot.com/, select MacOS as the operating system, the Update package and paste your AstreoBot license. You will get the link to download your version with the wget or curl command. Choose one of them and paste it on the console.
- Unzip all the files in the folder where you run the bot:
unzip -o macos_update_latest.zip
- Rename the downloaded folder:
cp macos_update/* macos/
- Confirm that you want to overwrite existing files by typing y letter for each file you want to overwrite (since it is an Update version your database won’t be affected).
- Go to the macos folder:
cd macos
- Run astreobot file:
pm2 start astreobot
- Check pm2 logs
pm2 log astreobot
- Wait while the database is updated. It is important to wait until you receive the confirmation message “Database upgraded”.
- Leave logs with the key combination command + X
- Close console:
exit
- Open the following URL in a browser (we recommend Chrome): http://localhost:3000 or
http://VPS-IP:3000
Raspberry
To update AstreoBot on Raspberryfollow the instructions below:
- Disable Trading Engine in the Dashboard and close astreobot
pm2 stop all
pm2 delete all - Backup the folder where you currently run the bot. (modify the file name according to the version you are backing up):
zip -r backup/astreobot_backup.zip raspberry
- Go to http://download.astreobot.com/, select Raspberryas the operating system, the Update package and paste your AstreoBot license. You will get the link to download your version with the wget or curl command. Choose one of them and paste it on the console.
- Unzip all the files in the folder where you run the bot:
unzip -o raspberry_update_latest.zip
- Rename the downloaded folder:
cp raspberry_update/* raspberry/
- Confirm that you want to overwrite existing files by typing y letter for each file you want to overwrite (since it is an Update version your database won’t be affected).
- Go to the raspberry folder:
cd raspberry
- Run astreobot file:
pm2 start astreobot
- Check pm2 logs:
pm2 log astreobot
- Wait while the database is updated. It is important to wait until you receive the confirmation message “Database upgraded”.
- Leave logs with the key combination control + X
- Close console:
exit
- Open the following URL in a browser (we recommend Chrome): http://localhost:3000 or
http://VPS-IP:3000