Applicable to:
- SolusVM 2
Question
How to update CR node in SolusVM2 manually ?
Answer
Method 1:
- Access master node via SSH
-
Access solus_api docker container:
# docker exec -it $(docker container ps --quiet --filter='name=solus_api') /bin/sh
- Backup file
api/v1/ComputeResource/Commands/UpgradeComputeResource.php - Replace it with RAW file from here
https://git.plesk.ru/projects/SOLUS/repos/solusnxt/browse/backend/api/v1/ComputeResource/Commands/UpgradeComputeResource.php -
In the replaced file remove the following lines:
CONFIG_TEXT: if (!App::isProduction() || !$this->isApiAlive()) {return;}
-
Run from inside of the container:
# php artisan computeResource:upgrade
- Trace
agent.logon CR nodes to find error, if there are any - Revert original file back
api/v1/ComputeResource/Commands/UpgradeComputeResource.phpwhen CR is updated
For failed updates on one specific CR:
-
Backed up existing
/usr/local/solus/bin/agentand/etc/solus/agent.json:# cp -a /etc/solus/agent.json /root
# cp -a /usr/local/solus/bin/agent /root -
Stopped solus-agent on CR:
# systemctl stop solus-agent
-
Downloaded new agent from Master server:
# wget https://cloud.binaryracks.co.uk:443/api/v1/storage/agent.x86_64
-
Replaced the old agent with the downloaded one:
# mv agent.x86_64 /usr/local/solus/bin/agent
# chmod +x /usr/local/solus/bin/agent -
Started solus-agent:
# systemctl start solus-agent
- In SolusVM 2 > Tasks restarted one of the failed update tasks.
Method 2:
- Restart SolusVM2 service: How to restart SolusVM 2 services? – Solus
-
Access API container:
# docker exec -it $(docker container ps --quiet --filter='name=solus_api') /bin/sh
-
Execute in the container
# php artisan computeResource:upgrade
- Type
exitfor exit the container
Comments
Please sign in to leave a comment.