[SRU] activemq fails to start on Ubuntu 12.04

Bug #993249 reported by Loic Dreux
118
This bug affects 19 people
Affects Status Importance Assigned to Milestone
activemq (Debian)
Fix Released
Unknown
activemq (Ubuntu)
Fix Released
Wishlist
Aditya V
Precise
Fix Released
High
Aditya V
Quantal
Fix Released
Wishlist
Aditya V

Bug Description

SRU Request for Precise

#### SRU Justification ###

[Impact]
activemq won't start whatsoever on Precise.

[Development Fix]
This is fixed in lp:~kroq-gar78/ubuntu/precise/activemq/sid-merge by merging with Debian Sid. In the Debian bug report, it was found that "the maven repositories are created but no files are copied to /usr/share/java". So, they're created but not put into the package.

From the Debian bug report:
"The following patch adds the necessary --java-lib flag to
debian/libactivemq-java.poms for the required repositories
activemq-{core,console,run} and kahadb"

[Stable Fix]
Because this bug is due to the fact that the JAR's weren't installed through the package, the only way to fix activemq is to apply the patch attached to the Debian bug report or to use the branch lp:~kroq-gar78/ubuntu/precise/activemq/sid-merge and recompile the source.

[Test Case]
sudo apt-get install activemq
sudo ln -sf /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main
sudo service activemq start

Activemq fails to startup - no running java processes.

[Regression Potential]
Minimal as the program doesn't work as it is anyway.

#######

activemq 5.5.0+dfsg-6ubuntu1 running on Ubuntu 12.04 LTS.

-------------------OLD REPORT (MERGE/SYNC-RELATED)-------------------

Please sync activemq 5.5.0+dfsg-7 (universe) from Debian unstable (main)

From debian bugreport:

Dear Maintainer,

I installed the activemq package (Wheezy, AMD64), but after configuring the
software it failed to start.
Running the following command gave more information about the problem:
/etc/init.d/activemq console main

Starting with Console ActiveMQ instance : mainINFO: Loading '/etc/activemq
/instances-enabled/main/options'
INFO: Using java '/usr/bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process
by pressing CTRL+C)
ERROR: '/usr/share/activemq/bin/run.jar' does not exist

Upon inspection the file "/usr/share/activemq/bin/run.jar" is a symlink
pointing to "/usr/share/java/activemq-run.jar" which does not exist.

Activemq ran fine on my previous i386 Wheezy installation, which I replaced
March 30th by this AMD64 installation. I only now got to installing ActiveMQ
again.
Therefore I believe this to be a regression from version 5.5.0+dfsg-5 which ran
fine.

Kind regards,
Steven

Changed in activemq (Debian):
status: Unknown → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

To get sync requests into the review queue, please subscribe 'ubuntu-sponsors'. I just did this.

I had a brief look at this and syncing from Debian would mean that we drop the 'junit4' build-depends which would cause the build to fail. It looks like this needs to be merged.

Revision history for this message
Angel Abad (angelabad) wrote :

Hi, Daniel is right, Debian package fails to build in Quantal because junit4.

Could you prepare a merge?

Cheers,

Changed in activemq (Ubuntu):
assignee: nobody → Loic Dreux (loic.dreux)
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Cory R. King (cory-cozi) wrote :

I am running 5.5.0+dfsg-6ubuntu1 and have this very issue right out of the box. It basically renders the activemq package useless as it won't start.

For example:
/etc/activemq$ sudo service activemq console main
 * Starting with Console ActiveMQ instance main INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
ERROR: '/usr/share/activemq/bin/run.jar' does not exist

3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

Thanks!

Revision history for this message
Bart Verwilst (verwilst) wrote :

Manually installing libactivemq-java_5.5.0+dfsg-7_all.deb and activemq_5.5.0+dfsg-7_all.deb from Debian makes activemq start on Ubuntu 12.04. A merge is all that is needed.

Revision history for this message
Aditya V (kroq-gar78) wrote :

I'll work on the merge.

Changed in activemq (Ubuntu):
status: Incomplete → In Progress
assignee: Loic Dreux (loic.dreux) → kroq-gar78 (kroq-gar78)
summary: - Sync activemq 5.5.0+dfsg-7 (universe) from Debian unstable (main)
+ Please merge activemq 5.5.0+dfsg-7 (universe) from Debian unstable
+ (main)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote : Re: Please merge activemq 5.5.0+dfsg-7 (universe) from Debian unstable (main)

Unsubscribing the sponsors team as there doesn't seem to be anything to sponsor just yet. Propose your branch for merging when it is ready, and that will put this back into the sponsorship queue.

Thanks!

Revision history for this message
Aditya V (kroq-gar78) wrote :

Should I re-subscribe the sponsors team one I set it to merge?

Revision history for this message
James Page (james-page) wrote :

As Ubuntu 12.04 is now release the fix for precise will need to go through the Stable Release Update process.

This constitutes a minimal change to the version that is already in Ubuntu 12.04 rather than a merge from Debian Testing.

See https://wiki.ubuntu.com/StableReleaseUpdates for more information.

Changed in activemq (Ubuntu Precise):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → kroq-gar78 (kroq-gar78)
Revision history for this message
James Page (james-page) wrote :

This bug was fixed in the package activemq - 5.5.0+dfsg-7
Sponsored for kroq-gar78 (kroq-gar78)

---------------
activemq (5.5.0+dfsg-7) unstable; urgency=low

  [ Ulrich Dangel ]
  * Install the activemq-{core,console,run} and kahadb jar files to
    /usr/share/java. (Closes: #668943)
    - Add the necessary --java-lib flag to d/libactivemq-java.poms

  [ Damien Raude-Morvan ]
  * Thanks to Ulrich Dangel for RC bugfix, upload to unstable.

 -- Damien Raude-Morvan <email address hidden> Tue, 01 May 2012 14:38:27 +0200

Changed in activemq (Ubuntu):
status: In Progress → Fix Released
summary: - Please merge activemq 5.5.0+dfsg-7 (universe) from Debian unstable
- (main)
+ [SRU] activemq fails to start on Ubuntu 12.04
Revision history for this message
Bart Verwilst (verwilst) wrote :

Since it doesn't work at all in Precise, syncing the latest from Quantal might make sense? The packaging seems pretty flaky in the current release..

Revision history for this message
Aditya V (kroq-gar78) wrote :

I'll just do all of the SRU-report stuff on this bug report's description. Tell me if you want me to file a separate one instead.

Aditya V (kroq-gar78)
description: updated
description: updated
Aditya V (kroq-gar78)
description: updated
description: updated
Aditya V (kroq-gar78)
description: updated
Revision history for this message
Kristian Øllegaard (oellegaard) wrote :

Untill this is merged in - is there a temporary solution to get activemq running on precise?

James Page (james-page)
Changed in activemq (Ubuntu Precise):
milestone: none → ubuntu-12.04.1
Revision history for this message
Aditya V (kroq-gar78) wrote : Re: [Bug 993249] Re: [SRU] activemq fails to start on Ubuntu 12.04

Kristian,

Sorry about that. I thought I filled in the info at the top, but it turns out I didn't. I'll update the description. Once I do that, look in the "Stable Fix" field there.

Sincerely,
kroq-gar78

Revision history for this message
Stéphane Graber (stgraber) wrote :

What's the status of the SRU? will it be uploaded in the coming days?

This bug is targeted to the point release and time is running out to get stuff in on time.

Changed in activemq (Ubuntu Precise):
status: Confirmed → Triaged
Revision history for this message
Aditya V (kroq-gar78) wrote :

Really sorry about that. I've filled out the SRU and will resubmit my merge request.

description: updated
description: updated
Revision history for this message
Aditya V (kroq-gar78) wrote :

I re-subscribed Ubuntu Sponsors because I re-proposed the merge.

Revision history for this message
James Page (james-page) wrote :

Uploaded to -proposed and subscribed SRU team for review.

Thanks for you contribution!

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Loic, or anyone else affected,

Accepted activemq into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/activemq/5.5.0+dfsg-6ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in activemq (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
James Page (james-page) wrote :

Tested OK from precise-proposed

description: updated
tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package activemq - 5.5.0+dfsg-6ubuntu1.1

---------------
activemq (5.5.0+dfsg-6ubuntu1.1) precise-proposed; urgency=low

  * debian/libactivemq-java.poms: added the option '--java-lib' to
    core components so that the required jar files are installed to
    /usr/share/java, allowing activemq to startup (LP: #993249). Fix
    cherry picked from 5.5.0+dfsg-7 packaging.
 -- Aditya Vaidya <email address hidden> Tue, 17 Jul 2012 03:58:38 -0500

Changed in activemq (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.