r/sonarr • • 11d ago

solved Switching from develop to main

I have a basic Windows install running on 4.0.20.3012 develop branch (honestly I have no idea why). I want to get on the main branch. Can I simply switch the branch in Settings and it'll update to 4.0.20.3014? Or perhaps download the associated installer and run it manually?

My concern is this warning on the Wiki: Warning: You may not be able to go back to main after switching to this branch. On GitHub, this is the develop branch.

2 Upvotes

7 comments sorted by

6

u/so7ow 11d ago edited 11d ago

Not about build numbers, it's the DB schema. Sonarr only migrates the database forward, so if your develop build already applied a schema bump that main hasn't shipped yet, switching to main leaves you with an app that won't start until a main release catches up. That's exactly what the wiki warning means. The trick is timing: the right moment to move is right after a fresh main release, since that's when main is most likely to have caught up to develop's schema and the gap is smallest. So back up first (System / Backup), switch just after a recent main release, and if it won't start, restore the backup onto develop and wait it out.

3

u/Apprehensive_Elk2608 11d ago

As far as I understand, major releases have to be upgraded manually. From what I see here 4.0.20.3012 was the last develop build, followed by 4.0.20.3014 as the latest main. Everything after is on the 5.X builds. Would the database have been moving to the 5.X versions even though the app wouldn't?

2

u/so7ow 11d ago edited 11d ago

People who know more about it than me can look at the changes between versions and tell you specifically when it's safe to change tracks. I would guess that you're safe to move from 4.x.3012 dev to 4.x.3014 main, as that's exactly what I meant by timing it right; and the worst case scenario is everything blows up and you just revert to your backup and try again later.

 
(I asked a similar question in the Discord channel a while back and got a helpful, if surly, response.)

3

u/Apprehensive_Elk2608 11d ago

Thanks for the advice. I did a backup, then switched the branch to main and it immediately updated successfully. As far as I understand for main branch, this is the end of the line until the first 5.X release becomes available. At which point it will need to be installed manually because it's a major release.

!solved

1

u/AutoModerator 11d ago

Thank you /u/Apprehensive_Elk2608 I've gone ahead and marked your post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/so7ow 11d ago

Yep, I believe that's correct. Glad it worked out! 👍🏻

1

u/AutoModerator 11d ago

Hi /u/Apprehensive_Elk2608 -

There are many resources available to help you troubleshoot and help the community help you. Please review this comment and you can likely have your problem solved without needing to wait for a human.

Most troubleshooting questions require debug or trace logs. In all instances where you are providing logs please ensure you followed the Gathering Logs wiki article to ensure your logs are what are needed for troubleshooting.

Logs should be provided via the methods prescribed in the wiki article. Note that Info logs are rarely helpful for troubleshooting.

Dozens of common questions & issues and their answers can be found on our FAQ.

Please review our troubleshooting guides that lead you through how to troubleshoot and note various common problems.

If you're still stuck you'll have useful debug or trace logs and screenshots to share with the humans who will arrive soon. Those humans will likely ask you for the exact same thing this comment is asking..

Once your question/problem is solved, please comment anywhere in the thread saying '!solved' to change the flair to solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.