Can not start ActiveMQ on a fresh installed CentOS 7 server

2,385 views
Skip to first unread message

Ruth Lang

unread,
Nov 2, 2017, 10:53:51 AM11/2/17
to Opencast Users
Hi,

I have a new sever with a fresh installation of CentOS 7, the latest OC 3.3 and ActiveMQ from Lars.
But starting ActiveMQ always failed.

There are no problems on our production system (OC3.3 and Java 1.7) nor on the develop system (OC 4.0 and Java 1.8).
(The production system uses an older version of OC 3.3 and an older version of CentOS7)

Any ideas what I am doing wrong ?

Regards,
Ruth


_______________________________

Universität zu Köln

Regionales Rechenzentrum (RRZK)
Weyertal 121, Raum 4.08
D-50931 Köln


activemq.service - Messaging and Integration Patterns provider

   Loaded: loaded (/usr/lib/systemd/system/activemq.service; enabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Thu 2017-11-02 15:20:04 CET; 8s ago

  Process: 31127 ExecStart=/usr/bin/activemq console (code=exited, status=1/FAILURE)

 Main PID: 31127 (code=exited, status=1/FAILURE)


Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at java.net.URLClassLoader$1.run(URLClassLoader.java:348)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at java.security.AccessController.doPrivileged(Native Method)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at java.net.URLClassLoader.findClass(URLClassLoader.java:347)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]: activemq.service: main process exited, code=exited, status=1/FAILURE

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]: Unit activemq.service entered failed state.

Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]: activemq.service failed.

Lars Kiesow

unread,
Nov 2, 2017, 11:17:19 AM11/2/17
to us...@opencast.org
Hi Ruth,
can you upload the logs (/var/log/activemq) to something like.
https://fpaste.org?
–Lars

On Thu, 2 Nov 2017 07:53:51 -0700 (PDT)
"'Ruth Lang' via Opencast Users" <us...@opencast.org> wrote:

> Hi,
>
> I have a new sever with a fresh installation of CentOS 7, the latest
> OC 3.3 and ActiveMQ from Lars.
> But starting ActiveMQ always failed.
>
> There are no problems on our production system (OC3.3 and Java 1.7)
> nor on the develop system (OC 4.0 and Java 1.8).
> (The production system uses an older version of OC 3.3 and an older
> version of CentOS7)
>
> Any ideas what I am doing wrong ?
>
> Regards,
> Ruth
>
>
> _______________________________
>
> *Universität zu Köln*
>
> *Regionales Rechenzentrum (RRZK)*
> Weyertal 121, Raum 4.08
> D-50931 Köln
>
>
> *●* activemq.service - Messaging and Integration Patterns provider
>
> Loaded: loaded (/usr/lib/systemd/system/activemq.service; enabled;
> vendor preset: disabled)
>
> Active: *failed* (Result: exit-code) since Thu 2017-11-02 15:20:04
> CET; 8s ago
>
> Process: 31127 ExecStart=/usr/bin/activemq console *(code=exited,
> status=1/FAILURE)*
>
> Main PID: 31127 (code=exited, status=1/FAILURE)
>
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> java.net.URLClassLoader$1.run(URLClassLoader.java:348)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> java.security.AccessController.doPrivileged(Native Method)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> java.net.URLClassLoader.findClass(URLClassLoader.java:347)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de activemq[31127]: at
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]:
> *activemq.service: main process exited, code=exited, status=1/FAILURE*
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]: *Unit
> activemq.service entered failed state.*
>
> Nov 02 15:20:04 dev-mh.rrz.uni-koeln.de systemd[1]: *activemq.service
> failed.*
>

Ruth Lang

unread,
Nov 2, 2017, 11:31:34 AM11/2/17
to Opencast Users
Hi Lars,

I tried this first, but unfortunately there is not even a log file in /var/log/activemq

Ruth

duncan smith

unread,
Nov 2, 2017, 11:52:48 AM11/2/17
to us...@opencast.org
Hi Ruth,

I see you are using systemd. Although I haven't installed activemq using the distro repos, maybe journalctl could work for you? Like so:

journalctl -u activemq --since yesterday > my_activemq.log

Regards,
D

--
You received this message because you are subscribed to the Google Groups "Opencast Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

Lars Kiesow

unread,
Nov 2, 2017, 11:53:57 AM11/2/17
to us...@opencast.org
Can you check instead:

journalctl -u activemq

Also, which CentOS and Java versions are you using? Just tried with

# java -version
openjdk version "1.8.0_144"
# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

With no problem.

Also, what is the ActiveMQ package you used and what's the package
source (Copr or pkg.opencast.org)?

# yum list activemq-dist

Installed Packages
activemq-dist.noarch
5.14.4-1.el7.centos
@opencast-noarch

–Lars


On Thu, 2 Nov 2017 08:31:34 -0700 (PDT)
"'Ruth Lang' via Opencast Users" <us...@opencast.org> wrote:

> Hi Lars,
>
> I tried this first, but unfortunately there is not even a log file in
> /var/log/activemq
>
> Ruth
>
> On Thursday, November 2, 2017 at 4:17:19 PM UTC+1, Lars Kiesow wrote:
> >
> > Hi Ruth,
> > can you upload the logs (/var/log/activemq) to something like.
> > https://fpaste.org?
> > –Lars
> >
> > On Thu, 2 Nov 2017 07:53:51 -0700 (PDT)
> > "'Ruth Lang' via Opencast Users" <us...@opencast.org <javascript:>>

Ruth Lang

unread,
Nov 2, 2017, 12:07:35 PM11/2/17
to Opencast Users

Hi,



$ journalctl -u activemq

No journal files were found.

-- No entries --


$ java -version

java version "1.7.0_151"

OpenJDK Runtime Environment (rhel-2.6.11.1.el7_4-x86_64 u151-b00)

OpenJDK 64-Bit Server VM (build 24.151-b00, mixed mode)


$ cat /etc/redhat-release 

CentOS Linux release 7.4.1708 (Core) 


$ yum list activemq-dist

Installed Packages

activemq-dist.noarch       5.15.0-1.el7.centos      @lkiesow-apache-activemq-dist


Available Packages         

activemq-dist.x86_64       5.11.1-3.el7.centos     lkiesow-apache-activemq-dist 



-Ruth

Rubén Pérez

unread,
Nov 6, 2017, 8:11:40 AM11/6/17
to us...@opencast.org

Hi,

The problem is, that version of activemq is not compatible with Java 1.7 and a UnsupportedVersionException is thrown. That is not visible from the logs, but it becomes obvious when one tries to run activemq directly from the command line, even if only to check the --help.

We do not know how it is possible we've got our production server running with Java 1.7, but the exception also appears consistently there. Simply installing java8 fixes it.

Now, I do believe it is a bug that the RPM package does not contain java 8 as a dependency. Did you Lars create the package yourself? That's my understanding. It would be great if you could fix that in order to avoid all the weirdness. It's a tricky thing to spot :S


Best regards

--
You received this message because you are subscribed to the Google Groups "Opencast Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

--
Rubén Pérez Vázquez

Universität zu Köln
Regionales Rechenzentrum (RRZK)
Weyertal 121, Raum 4.05
D-50931 Köln
✆: +49-221-470-89603

Lars Kiesow

unread,
Nov 6, 2017, 9:06:24 AM11/6/17
to us...@opencast.org
Will fix the dependency.
Lars
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply all
Reply to author
Forward
0 new messages