Opened 17 years ago
Closed 17 years ago
#971 closed enhancement (invalid)
Be able to upgrade BASE without restarting Tomcat
Reported by: | base | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | install | Version: | |
Keywords: | Cc: |
Description
I just upgraded our dev server (system info below)
Version BASE 2.6.2pre (build #4204; schema #52) Web server Apache Tomcat/5.5.20 Database Server MySQL 5.0.21-max-log Database Dialect org.hibernate.dialect.MySQLInnoDBDialect JDBC Driver com.mysql.jdbc.Driver (version 5.0) Java runtime Java(TM) SE Runtime Environment (1.6.0-b105), Sun Microsystems Inc. Operating system Linux amd64 2.6.16.54-0.2.5-smp Memory Total: 304.4 MB Free: 185.4 MB Max: 910.3 MB
and found that yet again I need to restart tomcat to get the new version working. I know the installation/upgrade instructions say that I should restart, but it would be really nice not to have to.
Here's the workflow I would like to use
- unpack bin package to /usr/local/base-2.y (ours is patched and already configured)
- stop currently running base2 in tomcat manager
- clear the tomcat temporary data/cache rm -rf /usr/local/tomcat/work/Catalina/localhost/base2/*
- run updatedb.sh and updateindexes.sh
- update soft link
cd /usr/local rm base2 (which used to point to base-2.x) ln -s base-2.y base2
meanwhile, in /usr/local/tomcat/webapps the link from base2 to /usr/local/base2/www does not change.
- start base2 from the tomcat manager
I find that after this tomcat hangs completely (all webapps) and needs a kill -9 to stop it.
Perhaps one has to delete the /usr/local/tomcat/webapps/base2 symlink, let tomcat acknowledge this, then create a new link (directly /usr/local/base-2.y/www). I haven't tried this but will do next time.
Any thoughts?
I just stopped base2 in tomcat manager, deleted the /usr/local/tomcat/webapps/base2 link and then made a new one directly to /usr/local/base-2.y/www. Tomcat recognises this and loads it. I did not clean out any work directories.
On accessing the base2 homepage I get this error:
After a few page reloads, the whole server is frozen (other webapps too).