4 Replies Latest reply on Jul 14, 2011 1:28 PM by twhitti615

    RHQ 4.0.1 upgrade from JON 2.2.0 GA

    twhitti615

      Up until a month ago I had no idea what JON/JOPR/RHQ was, so this question may have been answered.

       

      On my test server, I am running an upgrade from JON 2.2.0GA to RHQ 4.0.1.  The underlying postgres database has about 3G worth of data.  Within a few minutes of starting the upgrade I get messages on the database upgrade log saying that the database upgrade was successful.  At the same time IOSTAT shows a fair amount of IO with IOWAIT generally above 90%.   As this is the only active application, I assume RHQ is doing things internally, perhaps to the database, although no messages occur for an hour.   Then I get the following:

       

       

      2011-07-11 16:07:17,553 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id a000122:a2dc:4e1b6032:10 invoked while multiple threads active within it.

      2011-07-11 16:46:20,700 WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action a000122:a2dc:4e1b6032:10 aborting with 1 threads active!

       

      To be honest I don't speak JAVA.   Regardless, the green bar on the upgrade inteface continues to move, with the message reading "RHQ will be installed."    It has been doing so for 15 hours.   My guess is, the above error has caused a problem, or occured when the process should have finished.  However, I am at a loss as to how to resolve it, and get a clean upgrade.

       

      Once again, JAVA is not my forte.

       

      BTW:  Test server is CENTOS xen image: 

      2.6.18-164.15.1.el5xen #1 SMP Wed Mar 17 12:04:23 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

      Max 2G memory. 

      JBOSS 4.3.2 installed but turned off. 

      RHQ-AGENT turned off. 

      Postgres 8.2.20.

       

      Any thoughts?

       

      Thanks in advance, Ted.  (Apologies in advance if this "problem" has already been documented).

        • 1. Re: RHQ 4.0.1 upgrade from JON 2.2.0 GA
          mazz

          Those error messages means a transaction failed to get committed to the DB for some reason.

           

          Off the top of my head, this immediately came to me:

           

          http://rhq-project.org/display/JOPR2/PostgreSQL

           

          See the top blue box:

           

          "PostgreSQL version

          RHQ currently supports versions 8.2.4 or later of PostgreSQL. Earlier 8.2 versions are not recommended. Postgres 8.1 is not supported."

          • 2. Re: RHQ 4.0.1 upgrade from JON 2.2.0 GA
            ccrouch

            Ted Whittington wrote:

             

             

            On my test server, I am running an upgrade from JON 2.2.0GA to RHQ 4.0.1. 

             

            Note you are mixing fish with foul here. JON is the supported middleware management product from Red Hat, RHQ is the upstream open source project. There are no expectations you can upgrade between the two. Normally you would go JON2.2.0.GA -> JON2.4.0.GA or RHQ 3.0.0 -> RHQ4.0.1 for example. And even on the RHQ side because we can make significant changes in the upstream project there are no guarantees of upgradeability across versions, though we do try.

             

            So the only scenario you can have a rock solid expectation of being able to upgrade across arbitrary versions is with the JON product.

            • 3. Re: RHQ 4.0.1 upgrade from JON 2.2.0 GA
              twhitti615

              Just an update, I could not get any version to work, even the same version with data copied (via pg_dump) from the production server.  All of the installs seemed to go into a loop. Process: stop jon, stop/start postgres, delete jon directory, unzip install server (2.2.0, 2.4.0,2.4.1,3.0, 4.0, 4.0.1 all tried), psql rhq < dumpfile, start jon via rhq-server.sh, bring up localhost:7080, make change, start upgrade.  EVERY one failed, even the same version (from the same install) 2.2.0GA.  Process would run indefinitely (24 hours for one before I cancelled it). 

               

              We decided to install 4.0.1 and start from scratch.  As a newbie I must have done something wrong, but it is scarey if I have to restore, I might not be able to do so.

              • 4. Re: RHQ 4.0.1 upgrade from JON 2.2.0 GA
                twhitti615

                Forgot the step, after restart of postgres, I dropped and created the rhq database.