Page 1 of 3

Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Mon Mar 19, 2012 7:34 am
by xxChinasaurxx
I have just installed serviio on my ubuntu server which is running 11.10. I am able to manually start the server, and stream content from it. However, I cannot for the life of me get serviio to start upon booting the server. I have followed the tutorial here: http://wiki.serviio.org/doku.php?id=how ... all:ubuntu

It will not run on start up but I can run it manually via a remote ssh connection, yet upon closing the terminal of putty, the server shuts itself down. Why is this?
Any helped would be immensely appreciated.
Thanks

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Mon Mar 19, 2012 6:27 pm
by serviio-buddy
Were there any errors when you followed the install instructions and created the Startup Script ?

Which version of Serviio did you install?

Following the same directions you did, I installed Serviio 0.6.2 (latest release) onto Ubuntu 11.10 and Serviio does start every time the Ubuntu 11.10 systems boots.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 3:21 am
by xxChinasaurxx
I didn't see any errors. I installed the latest version 0.6.2.
I'm going to reinstall ubuntu server and try the install again.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 4:32 am
by serviio-buddy
OK, let me know if you need help with the install or Startup Script.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 6:54 pm
by johnsr11
I am having the same issue on ubuntu server 11.10 and running serviio 0.6.2. I have uninstalled n reinstalled serviio and I am having the same issue

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 9:18 pm
by moltra
what version of java do you have installed?

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 9:35 pm
by serviio-buddy
Provided you can are running Ubuntu 11.10 Desktop or Ubuntu 11.10 Server with Gnome GUI and Serviio starts/runs ok manually but won't start automatically upon boot, then here's an alternate method to make it work.

If you followed the Serviio Wiki Ubuntu 11.10 Installation Guide and Serviio Server starts manually, but won't automatically start, then go to the terminal command line (Ctrl-Alt-T) and remove the Serviio startup script you created by:

1. Type: cd /etc/init
2. Type: sudo rm serviio.conf
3. To confirm it's gone, type ls -l and make sure serviio.conf is not listed.

To use this alternate method to make Serviio Server automatically start when Ubuntu 11.10 boots, follow these instructions:

1. Click on power icon (top right) as shown below:
Capture_01 Mar. 20 13.51.jpg
Capture_01 Mar. 20 13.51.jpg (4.2 KiB) Viewed 29192 times

2. Click on Startup Applications as shown below:
Capture_01 Mar. 20 13.58.jpg
Capture_01 Mar. 20 13.58.jpg (16.97 KiB) Viewed 29192 times

3. Click "Add" and the following menu will appear:
Capture_01 Mar. 20 14.43.jpg
Capture_01 Mar. 20 14.43.jpg (40.49 KiB) Viewed 29191 times

4. For Name, type "Start Serviio Service".
5. For Command, make sure you point to the path where serviio.sh is located. You can use the Browse button to find it too.
6. Click "Add", then click on "Close".
7. Choose "Shutdown - Restart" to reboot Ubuntu.

That's it. Serviio Server service should now start automatically upon booting Ubuntu 11.10.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 10:24 pm
by johnsr11
Thank you for that serviio-buddy, however I am running Ubuntu server through command line, no GUI for me. So if you have a command line solution to that, that would be amazing.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Tue Mar 20, 2012 10:40 pm
by serviio-buddy
Your welcome.

I wasn't sure if you were running without GUI. I am running Ubuntu 11.10 Server with Gnome Desktop GUI, although it is not recommended from Ubuntu as stated below:

Some reasons to not install a GUI on Ubuntu Server include:

You'll have more code subject to security vulnerabilities, more packages that need updating, and more server downtime.
Performance may suffer because resources (memory, hard disk space, CPU, etc.) will be consumed by the GUI.
It is best practice to only install needed software on a production server.
The GUI may include other network services that are inappropriate for a server.
The end result will be very very similar to what you would get if you installed from the ubuntu, kubuntu or xubuntu CD and added server-related packages to it. But the kernel on the server CD is tuned better for the workloads you get when running as a server, e.g. by using the "Deadline" scheduler and less frequent clock interrupts.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 2:32 am
by johnsr11
Do you have the command/script for starting serviio on bootup? I have no GUI installed and have tried writing scripts to start serviio based on the wiki page and a few other things I have found and tried tweaking. However, I am not very good at writing scripts or anything yet, so any help would be appreciated.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 3:56 am
by serviio-buddy
The script to auto-start Serviio with Ubuntu 11.10 is here: http://wiki.serviio.org/doku.php?id=how ... all:ubuntu

That's the same script file I used and it doesn't start Serviio automatically upon boot if using Ubuntu 11.10 Server (headless), but I did get it working after I installed Gnome (GUI) onto it.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 4:10 pm
by johnsr11
Yea, I followed that script before and it has not worked for me at all. Thanks though

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 4:15 pm
by serviio-buddy
I've tried some other things, but nothing seems to work. Right now, just starting Serviio by typing "sudo start serviio" gives me "serviio start/running, process 863" message, then if I immediately type "status serviio", message says "serviio stop/waiting".

Also, I looked at the serviio.log file and it gives me a warning about ffmpeg stating "ffmpeg is not compiled with librtmp support, RTMP streaming will not work."

Do you see that error in your serviio.log too?

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 4:41 pm
by johnsr11
If I try and use the "sudo start serviio" I get start: Job failed to start. However, I am headless, and have not been able to get the script to work for me, which could be the reason. If I issue the status serviio I get "Serviio stop/waiting". As far as my log file, I did not have an warnings about my ffmpeg. Have you tried re installing your ffmpeg? Here is the link to rebuild you ffmpeg http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 5:59 pm
by serviio-buddy
I haven't tried reinstalling ffmpeg yet. Thanks. I am in the process of installing Serviio 0.6.0.1 onto a fresh Ubuntu 11.10 headless Server install. Will let you know if that works.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 6:39 pm
by serviio-buddy
Just installed Serviio 0.6.0.1 onto fresh install of Ubuntu 11.10 Server (headless) exactly following the Wiki's Ubuntu Server Installation Guide.

Results upon reboot:

Typing "sudo status serviio", results in "serviio stop/waiting".
Typing "sudo start serviio" results in "serviio start/running, process 868"
Typing "sudo status serviio", results in "serviio stop/waiting" again.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Thu Mar 22, 2012 10:00 pm
by uid
johnsr11 wrote:Do you have the command/script for starting serviio on bootup? I have no GUI installed and have tried writing scripts to start serviio based on the wiki page and a few other things I have found and tried tweaking. However, I am not very good at writing scripts or anything yet, so any help would be appreciated.


Hi.
I have the latest version of Ubuntu (installing today), development branch - 12.04.
I installed two packages: default-jre & ffmpeg.
I downloaded the latest version of serviio (http://download.serviio.org/releases/se ... nux.tar.gz), and unpacked.
I copied the entire directory serviio-0.6.2 to /usr/local/bin/ (full path is /usr/local/bin/serviio-0.6.2/).

And now bows to the old school ;-)

I added the following entries in /etc/rc.local

  Code:
        if [ -x /usr/local/bin/serviio-0.6.2/bin/serviio.sh ]; then
        /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio.sh
        fi

        sleep 15

        if [ -x /usr/local/bin/serviio-0.6.2/bin/serviio-console.sh ]; then
        /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio-console.sh
        fi


For me it works. In the background runs serviio - daemon works. Additionally, I added a console (I have X - you do not):

  Code:
rafszk@poligon:~$ ps aux | grep serviio
root      1296  0.0  0.0   4392   604 ?        S    22:39   0:00 /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio.sh
root      1301  2.2  6.7 1242320 138692 ?      Sl   22:39   0:23 java -Xmx384M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=/usr/local/bin/serviio-0.6.2/library -Dserviio.home=/usr/local/bin/serviio-0.6.2 -classpath /usr/local/bin/serviio-0.6.2/lib/*:/usr/local/bin/serviio-0.6.2/config org.serviio.MediaServer
rafszk    1680  0.0  0.0   4392   600 ?        S    22:40   0:00 /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio-console.sh
rafszk    1689  1.1  9.8 1823564 201172 ?      Sl   22:40   0:12 java -Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -Dserviio.home=/usr/local/bin/serviio-0.6.2 -Djava.net.preferIPv4Stack=true -classpath /usr/local/bin/serviio-0.6.2/lib/*:/usr/local/bin/serviio-0.6.2/config org.serviio.console.ServiioConsole
rafszk    2603  0.0  0.0  14820   892 pts/1    S+   22:57   0:00 grep --color=auto serviio
rafszk@poligon:~$


Vy 73 de SP3WXH

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Fri Mar 23, 2012 12:41 am
by serviio-buddy
Great, this is the Developer 12.04 version that's in beta right now.

Did you load the "Server" beta version of 12.04 or the "Desktop" beta version?

The official release of Ubuntu 12.04 LTS is scheduled for April 26, 2012.

I could only find the 12.04 Desktop Beta available for download.

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Fri Mar 23, 2012 9:37 am
by uid
serviio-buddy wrote:Did you load the "Server" beta version of 12.04 or the "Desktop" beta version?

That's right. This is the desktop version. But no one has announced proposals for the startup script located in /etc/rc.local. Maybe my suggestion would be helpful?

Re: Unable to get serviio to run on boot Ubuntu server 11.10

PostPosted: Fri Mar 23, 2012 4:37 pm
by serviio-buddy
I may try your suggestion as I've just installed the 12.04 Desktop Precise Daily Build.

Please note that the problem these users reported in this thread was "Unable to get serviio to run on boot Ubuntu server 11.10".

They are using the headless Ubuntu Server 11.10 edition, not the desktop edition.

Previously, I posted that I used the wiki install guide for Ubuntu 11.10 Server and Serviio automatically loaded up boot using Ubuntu 11.10 Desktop and Ubuntu 11.10 Server with Gnome installed.

When I tried the wiki install guide again on the Ubuntu 11.10 Server (headless version), Serviio would not automatically start on reboot.