Need help on downgrading from Artifactory 4.7.1 pro to 3.4.0 pro

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Need help on downgrading from Artifactory 4.7.1 pro to 3.4.0 pro

srsagi
We are currently running artifactory 3.4.0 pro and have a plan to upgrade to latest 4.7.1 pro

the upgrade seems to be fine, but as a back out process when trying to go back to old version(3.4.0) we are facing hard time.

steps followed
1) Took backup from  Artifactory GUI "Backups-> backup-evrything" to a location say(/scartch/backup/)
2) run mysqldump of artdb >(/scratch/backup/)
3) run rsync from datastore location(storage.properties) to /scratch/backup/data/
4) swap the artifactory.war.3.4.0 to artifactory.war.4.7.1

this gives us
 2016-04-07 15:00:14,973 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: null
java.lang.NullPointerException: null
at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:193) ~[artifactory-web-application-3.4.0.jar:na]
at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.4.0.jar:na]
at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.4.0.jar:na]

Is the back out process we are following needs to be changed?

For workaround i'm reinstalling the 3.4.0 rpm and importing the dumped mysql, which brings back to old state.

upgrade process followed:-
we are just swapping the artifactory.war from 3.4.0 to 4.7.1 that is working fine as expected

Appreciated your help in advance!

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Need help on downgrading from Artifactory 4.7.1 pro to 3.4.0 pro

Aaron Rhodes
The downgrade procedure is to make a backup/system export of the 3.4.0 version before upgrading. If you need to revert you can use a Full System Import to import your old data and artifacts. Replacing a newer .war file for an older one won't work because the schema changes from version to version. Your workaround is a perfectly fine way of doing it.

Hope that helps!
Reply | Threaded
Open this post in threaded view
|

Re: Need help on downgrading from Artifactory 4.7.1 pro to 3.4.0 pro

srsagi
Appreciated your response!

As i said earlier in the post i took backup from 3.4.0 home page "Admin" >"Services" "Backups-> backup-evrything" before upgrade to latest version.Am i using the  same you are talking about ?

or

Are you referring to "Admin">"Import & Export">"System" ?

Okay, if take the Export, how can i import back 3.4.0 exported pack as Artifactory 3.4.0 is not coming up(that is the major concern here)

When 4.7.1 is up and running can i revert back to 3.4.0 by importing the saved export pack? does it go back to 3.4.0 version ?