gurock / testrail-docker

Official repo for TestRail docker support.
Apache License 2.0
53 stars 35 forks source link

Cassandra version is always set to '-' instead of '1' #56

Open bsimmons123 opened 7 months ago

bsimmons123 commented 7 months ago

Environment

Whats the Issue

When I try to update from Testrail v7.0.1.1013 to v7.5.1.7010 I get stuck in a loop with the updater.

It initially loads stating that my database version (MySQL) is currently set to 20210320140000 and it wants to update it to 20220425000001, and it states that my Cassandra version is - and the new version is 1. It will run through the updater and tell me that it was a successful update (Only updating the database version (MySQL)) and that i can go to testrail to login, but when i try to transition back to the login screen it pushes me back to the updater stating that Cassandra is still set to - instead of 1

Screenshot 2024-01-30 at 3 36 45 PM

Workarounds

I can exec into the pod that is running the mysql instance and insert the following into the settings table:

insert into settings (name, value) values ('cassandra_version', 1);

After inserting this into the settings table, if i transition back to the Testrail UI and reload the page it'll work like a charm.

Closing

Is there something I am doing wrong here that is causing this update process to act this way? I haven't seen any of this behavior documented in the documentation and I don't think I should have to manually update the database to get the application to work properly. Any help would be appreciated!

MedUnes commented 4 months ago

yes confirmed to solve the issue for me out of curiosity @bsimmons123, how did you come to the solution that you should insert that setting with that value to the settings Table? thanks.

bsimmons123 commented 4 months ago

I started and stopped a LOT of different versions of testrails and checked the sql entries for that settings table on all versions and determined that was the one difference. I'm glad that did the trick for you, hopefully this is fixed in their future versions