-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose: incomplete ThingsBoard PE upgrade #500
Comments
Hi @jernejcvek Thanks for your issue.
Best regards, |
Hello @DenysDi , Thank you for your answer. The workaround you described is similar to my proposed solution (please see above). However, I was afraid that usage of Btw, I saw that documentation has already been updated. Thanks 👍 Maybe it's also good to mention that reactivation of TB license is needed after ThingsBoard reboot; otherwise, users may encounter With best regards, |
Hi @jernejcvek ,
Best regards, |
Hi @jernejcvek Do you have any additional questions or I can close this issue? Best regards, |
Hello @DenysDi, I think this is all I have to say related to this issue. I suggest that you close the issue after a note about needed license reactivation on ThingsBoard reboot is added to the documentation, so it won't be forgotten. Best regards, Jernej |
Problem:
When updating ThingsBoard PE cluster setup with Docker compose to a newer version using the procedure described in the documentation, it seems that only the
tb-core
microservice updates to a newer version, leaving some of the other microservices stuck at the previous version. This may cause errors due to incompatible versions, for example, problems with deserialization of messages used for communication between microservices.Cause:
Current procedure:
docker-stop-services.sh
script stops all containers.docker-upgrade-tb.sh
script pulls new version only fortb-core1
microservice, which is used to upgrade ThingsBoard.docker-start-services.sh
script just starts all stopped containers - and not recreates them - which causes that containers are using the old version, except fortb-core1
microservice's container which Docker image was explicitly updated in the previous step.Proposed Solution:
To make sure all containers are properly updated to newer version, the procedure may be changed to:
./docker-stop-services.sh
TB_VERSION
stored in.env
to the newer version./docker-upgrade-tb.sh --fromVersion=[FROM_VERSION]
./docker-update-service.sh
tb-core
Docker container(s) (location of this file is defined in theTB_LICENSE_INSTANCE_DATA_FILE
environment variable stored intb-node.env
).Page to Update:
https://thingsboard.io/docs/user-guide/install/pe/cluster/docker-compose-setup/#upgrading
The text was updated successfully, but these errors were encountered: