Page 1 of 1

Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 4:40 pm
by Tanner Williamson
I am unable to upgrade from Subsonic 4.6beta2 to 4.6 final.

CentOS 6.2 x86_64.

Currently running:
Version 4.6.beta2 (build 2567) – November 16, 2011
Server jetty-6.1.x, java 1.6.0_22, Linux (41.8 MB / 88.3 MB)

I have downloaded the 4.6final

Code: Select all
[user@computer tmp2]# service subsonic stop
Stopping subsonic ...                                      [  OK  ]
[user@computer tmp2]# rpm -Uvh subsonic-4.6.rpm
Preparing...                ########################################### [100%]
        package subsonic-4.6.beta2-2567.i386 (which is newer than subsonic-4.6-2585.i386) is already installed


The above statement seems incorrect. It is suggesting that 4.6.beta2 build 2567 is more recent than 2585, the final build of 4.6.

I've tried re-downloading from a different mirror the 4.6 final installer for Redhat/Fedora, and I've also tried rebooting the OS then stopping subsonic, and tried installing after that, but still the same problem.

Re: Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 6:37 pm
by ytechie
I know I've read about this problem before. I think it has something to do with the build number not being correct in the build file.

In your current installation, go to [subsonic]/jetty/[build]/webapp/WEB-INF/classes.

Check out the files build_date.txt and build_number.txt.

Re: Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 6:56 pm
by Tanner Williamson
build_date.txt: 20111116
build_number.txt: 2567
This also matches the parent folder:
Code: Select all
# pwd
/var/subsonic/jetty/2567/webapp/WEB-INF/classes

Re: Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 7:31 pm
by ytechie
What you could do is stop the subsonic service, copy the db folder, remove subsonic, install the upgrade, and replace the db folder.

That should keep all of your settings and information. Unless the data structure is different between the versions.

Re: Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 7:35 pm
by Tanner Williamson
I bet that will work. I'll give it a shot. Seeing as it's a minor version and between a beta and a final, I don't anticipate any database structure changes.

Re: Upgrade fails from 4.6 beta2 to 4.6 final on CentOS

PostPosted: Fri Jan 27, 2012 7:46 pm
by ytechie
Either way, if it doesn't work, just reinstall the beta and move the db back where it came from.