FAQ  •  Register  •  Login

Serviio on Ubuntu 15.04

<<

jonnoc

Serviio newbie

Posts: 7

Joined: Wed Feb 19, 2014 4:30 am

Location: Queensland, Australia

Post Sun Apr 26, 2015 7:05 am

Serviio on Ubuntu 15.04

Hi everyone,
Apologies if a solution may be posted somewhere else on this forum.

Serviio has been working great for me with very little problems running on ubuntu 14.04 until I updated my distribution to 15.04 yesterday.
Serviio will now not run - all I get when I try to start it in terminal is the following message: "start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused"
I realise this may be an ubuntu issue but I just wondered if anyone had come across it and how they fixed it.
If in the meantime I find a solution ill be sure to post it!
Cheers,
<<

jonnoc

Serviio newbie

Posts: 7

Joined: Wed Feb 19, 2014 4:30 am

Location: Queensland, Australia

Post Sun Apr 26, 2015 7:06 am

Re: Serviio on Ubuntu 15.04

.... By the way the version of Serviio I have installed is 1.5.2.
<<

jonnoc

Serviio newbie

Posts: 7

Joined: Wed Feb 19, 2014 4:30 am

Location: Queensland, Australia

Post Sun Apr 26, 2015 9:45 am

Re: Serviio on Ubuntu 15.04

Update:
So I have since found out that Ubuntu 15.04 no longer uses startup as default which has caused serviio.conf to fail to start. Instead the latest version uses systemd scripts(e.g. serviio.service) This can be changed and you can use startup again just like old times (just boot ubuntu with advanced options) but it makes ubuntu alot slower and less responsive. I know that Fedora installations of serviio use systemd scripts however I cannot get any to work with my installation of ubuntu. If anyone has or knows how to write one I would greatly appreciate a post! In the meantime I will continue to research Google and try and write one myself.
Cheers,
<<

drbob

Serviio newbie

Posts: 3

Joined: Mon Apr 27, 2015 12:38 am

Post Mon Apr 27, 2015 1:12 am

Re: Serviio on Ubuntu 15.04

I am working through my own Ubuntu 15.04 install of Serviio 1.5.2. The CentOS 7 guide is a starting point:
http://wiki.serviio.org/doku.php?id=how ... ll:centos7

Make sure Java 8 is installed. I am trying OpenJDK versus Oracle for now:
sudo apt-get install openjdk-8-jre

I installed serviio in /opt per the CentOS7 guide, but used 1.5.2.
I created the serviio user as I did in Ubuntu 14.04 instead of per the guide:
useradd -r -s /bin/false serviio

My /lib/systemd/system/serviio.service contains:
  Code:
[Unit]
Description=Serviio Media Server
After=syslog.target local-fs.target network.target

[Service]
Type=simple
User=serviio
Group=serviio
ExecStart=/opt/serviio/bin/serviio.sh
ExecStop=/opt/serviio/bin/serviio.sh -stop
KillMode=none
Restart=on-abort

[Install]
WantedBy=multi-user.target


Then the following commands set serviio running:
  Code:
systemctl daemon-reload
systemctl enable serviio
systemctl start serviio


So, it looks like everything is running. Right now, /opt/serviio/bin/serviio-console.sh "starts" but does not create a UI window. I see the usual [ServiioConsole] messages in /opt/serviio/log/serviio.log (Initializing, Starting, Connecting).

I hope this helps. Personally, I am stuck on getting a working console up to configure it.
<<

jonnoc

Serviio newbie

Posts: 7

Joined: Wed Feb 19, 2014 4:30 am

Location: Queensland, Australia

Post Mon Apr 27, 2015 8:22 am

Re: Serviio on Ubuntu 15.04

Awesome thankyou very much for that, used that as a template and it works fine :D
I have never been able to get the serviio console to work properly on ubuntu, I just use the Serviidroid app on my Android phone and configure via wifi!
Would be interested to hear how you get it working!
Cheers.
<<

ozsolarwind

Serviio newbie

Posts: 1

Joined: Sat May 02, 2015 1:29 am

Post Sat May 02, 2015 1:40 am

Re: Serviio on Ubuntu 15.04

Thanks people :D . Serviio is now back and working on my Ubuntu 15.04 system.

The console works fine for me. I just use a simple shell script to invoke it:

#!/bin/sh
/opt/serviio/bin/serviio-console.sh
exit 0

Kind regards
AnGus
<<

drbob

Serviio newbie

Posts: 3

Joined: Mon Apr 27, 2015 12:38 am

Post Sat May 02, 2015 8:36 pm

Re: Serviio on Ubuntu 15.04

I think my library database (/opt/serviio/library) was corrupt from an earlier mis-start. The server was not actually starting fully. When this happens, the local console just waits without an error message. I figured this out using the Android app ServiiDroid which told me that the server had not fully started. The console should have such a feature.

Replaced the library directory, and I am up.

I'll see if I can add a Ubuntu 15.04 section to the wiki.
<<

drbob

Serviio newbie

Posts: 3

Joined: Mon Apr 27, 2015 12:38 am

Post Sat May 02, 2015 9:30 pm

Re: Serviio on Ubuntu 15.04

Full instructions are now in the wiki:
http://wiki.serviio.org/doku.php?id=how ... buntu15-04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 05, 2015 9:09 pm

Re: Serviio on Ubuntu 15.04

Thanks
<<

flocculant

Serviio newbie

Posts: 1

Joined: Sun Jul 12, 2015 9:38 am

Post Sun Jul 12, 2015 9:45 am

Re: Serviio on Ubuntu 15.04

Not completely sure what difference using the dev unreleased 15.10 is making to the running of serviio, but shutdown or restart causes a 90 second hang there.

Exit from serviio before either and the hang disappears.

Edit - seems that the shutdown issue occurs only when console is running. Without console reboot/shutdown works as expected.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 25 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.