Active MQ does not start on Xenial

Bug #1733853 reported by Matthias Ronge
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
activemq (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The following commands should be sufficient to install and run Active MQ:

apt-get install activemq
ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main
systemctl start activemq.service

However, there is no service running afterwards. Try: ps-ef | grep activemq

Running the service manually as explained in /usr/share/doc/activemq/README.Debian works, command: /etc/init.d/activemq console main

However, issuing "/etc/init.d/activemq start" does nothing except printing
[ ok ] Starting activemq (via systemctl): activemq.service.

but no service is started. The reason is in /etc/init.d/activemq line 30 which reads (with preceding comments):

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions

This line causes the above screen message but does not return. (I put an "echo" before and after. The "echo" before is executed, the one after isn’t any more.) However, it must return in order for the script to continue its work and reach the start-servers() section (which is quite complex).

In addition, the file /lib/systemd/system/activemq.service contains absolute paths to a non-existent WorkingDirectory and non-existent commands in ExecStart and ExecStop. I tried changing these values with some guesses but could not get it running right now.

I could imagine the solution would be to change ExecStart and ExecStop to /etc/init.d/activemq start or stop and make sure the script called in line 30 does not break execution.

The bug seems to be related to ​#1361831

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: activemq 5.13.2+dfsg-2
ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.13
Architecture: amd64
Date: Wed Nov 22 13:20:19 2017
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF8
 SHELL=/bin/bash
SourcePackage: activemq
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.init.d.activemq: [modified]
mtime.conffile..etc.init.d.activemq: 2017-11-22T13:05:27.720711

Revision history for this message
Matthias Ronge (matthias-ronge) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in activemq (Ubuntu):
status: New → Confirmed
Revision history for this message
cary.yu (caryyu) wrote :

when the issue will be totally fixed ......

Revision history for this message
Simon Quigley (tsimonq2) wrote :

Is this issue present on the Bionic Beaver?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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