apt-get install opencast-5-allinone, service is running, but 404 when acess http://localhost:8080

289 views
Skip to first unread message

fish slippery

unread,
Aug 25, 2018, 8:21:12 AM8/25/18
to Opencast Users
I followed the officical documentation to install OpenCast 5 in my Ubuntu 16.04 server


sudo systemctl status opencast
● opencast.service - Opencast
   Loaded: loaded (/etc/systemd/system/opencast.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-08-25 20:03:24 CST; 10min ago

However:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>

</body>
</html>

Adilagha Aliyev

unread,
Aug 26, 2018, 12:39:33 PM8/26/18
to Opencast Users
Have you tried restarting httpd and activemq services? I got the same results after upgrading from 4.x to 5.x. Tried restarting these 3 services back after each other couple of times, and it suddenly started working.

systemctl restart activemq
systemctl restart httpd
systemctl restart opencast

fish slippery

unread,
Aug 26, 2018, 10:38:04 PM8/26/18
to Opencast Users
That's true! The reason is apt-get install activemq-dist does not enable autostart of activemq daemon. Need to manually execute: systemctl enable activemq

Dietmar Zenker

unread,
Aug 27, 2018, 4:53:51 AM8/27/18
to Opencast Users
In the case of Opencast is not working as expected, it's always helpful to take a look at the logs in /var/log/opencast first. For example, problems with the ActiveMQ and DB connection will always produce appropriate error messages or warnings.

BTW: a httpd service is not required to run Opencast, at least as long as it is not used as a port proxy.

Greets,
Dietmar

Matthew Fearnley

unread,
Dec 28, 2018, 9:20:00 AM12/28/18
to Opencast Users
Hi.  I got the same HTML error on my server (CentOS), but for a different reason.

In my case, it was because I'd not copied the OpenCast activemq.xml file across:
sudo cp /usr/share/opencast/docs/scripts/activemq/activemq.xml /etc/activemq/activemq.xml

(I think I tried to do it after installing activemq, but before before installing opencast, and forgot about it later.)

Hope this helps someone.
Reply all
Reply to author
Forward
0 new messages