SB 5.1 - OCI - Deploy/UCI/Orchestrator pod going into crashloopbackoff #421
|
Following the documentation https://ed.sunbird.org/use/installing-ed-platform/release-5.1.0/build After Build and Deploy job execution, we noticed that the orchestrator pod is entering the CrashLoopBackoff state as it's startup is failing due to the following error. As we can see the from the logs, the orchestrator pod is trying to alter the cassandra table xmessage to add some additional columns which already exists. Looks like the DAO definition(https://github.com/samagra-comms/dao/blob/release-5.1.0/src/main/java/com/uci/dao/models/XMessageDAO.java) is already updated in the 5.1.0 release to have the columns sessionId, ownerOrgId, ownerId, botUuid. However, the application startup script(getMigrationScripts() method in https://github.com/samagra-comms/dao/blob/release-5.1.0/src/main/java/com/uci/dao/config/CassandraConfig.java) is still trying to add these columns resulting in the failure. I tried to manually edit the cassandra table to remove these additional columns and started the pod. This resolved the crashloopbackoff problem and the pod is running fine now. This may need to be fixed in the samagra-comms dao codebase.(release-5.1.0). |
Replies: 2 comments 1 reply
|
As per my understanding, the ALTER queries in the below lines(line numbers 124-127) need to be modified to include the clause IF NOT EXISTS so that column name conflicting error can be avoided. |
|
@subhashchandrab A thread has been raised in the UCI Building Blocks discussion forum (samagra-comms/community#33). Please refer the same for any update on this issue cc: @vinukumar-vs @Krishnaj20 @anandvarada @ChakshuGautam @abhay-samagra |
@subhashchandrab A thread has been raised in the UCI Building Blocks discussion forum (samagra-comms/community#33). Please refer the same for any update on this issue
cc: @vinukumar-vs @Krishnaj20 @anandvarada @ChakshuGautam @abhay-samagra