Page 1 of 1

Serviio on Ubuntu 15.04

PostPosted: Sun Apr 26, 2015 7:05 am
by jonnoc
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,

Re: Serviio on Ubuntu 15.04

PostPosted: Sun Apr 26, 2015 7:06 am
by jonnoc
.... By the way the version of Serviio I have installed is 1.5.2.

Re: Serviio on Ubuntu 15.04

PostPosted: Sun Apr 26, 2015 9:45 am
by jonnoc
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,

Re: Serviio on Ubuntu 15.04

PostPosted: Mon Apr 27, 2015 1:12 am
by drbob
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.

Re: Serviio on Ubuntu 15.04

PostPosted: Mon Apr 27, 2015 8:22 am
by jonnoc
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.

Re: Serviio on Ubuntu 15.04

PostPosted: Sat May 02, 2015 1:40 am
by ozsolarwind
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

Re: Serviio on Ubuntu 15.04

PostPosted: Sat May 02, 2015 8:36 pm
by drbob
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.

Re: Serviio on Ubuntu 15.04

PostPosted: Sat May 02, 2015 9:30 pm
by drbob
Full instructions are now in the wiki:
http://wiki.serviio.org/doku.php?id=how ... buntu15-04

Re: Serviio on Ubuntu 15.04

PostPosted: Tue May 05, 2015 9:09 pm
by zip
Thanks

Re: Serviio on Ubuntu 15.04

PostPosted: Sun Jul 12, 2015 9:45 am
by flocculant
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.