FAQ  •  Register  •  Login

Unable to get serviio to run on boot Ubuntu server 11.10

<<

xxChinasaurxx

User avatar

Serviio newbie

Posts: 3

Joined: Mon Mar 19, 2012 7:27 am

Post Mon Mar 19, 2012 7:34 am

Unable to get serviio to run on boot Ubuntu server 11.10

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
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Mon Mar 19, 2012 6:27 pm

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

xxChinasaurxx

User avatar

Serviio newbie

Posts: 3

Joined: Mon Mar 19, 2012 7:27 am

Post Tue Mar 20, 2012 3:21 am

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

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.
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Tue Mar 20, 2012 4:32 am

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

OK, let me know if you need help with the install or Startup Script.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

johnsr11

Streaming enthusiast

Posts: 27

Joined: Thu Mar 01, 2012 11:18 pm

Post Tue Mar 20, 2012 6:54 pm

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

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
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Mar 20, 2012 9:18 pm

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

what version of java do you have installed?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Tue Mar 20, 2012 9:35 pm

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

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 29201 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 29201 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 29200 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.
Last edited by serviio-buddy on Wed Mar 21, 2012 1:51 am, edited 2 times in total.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

johnsr11

Streaming enthusiast

Posts: 27

Joined: Thu Mar 01, 2012 11:18 pm

Post Tue Mar 20, 2012 10:24 pm

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

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.
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Tue Mar 20, 2012 10:40 pm

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

johnsr11

Streaming enthusiast

Posts: 27

Joined: Thu Mar 01, 2012 11:18 pm

Post Thu Mar 22, 2012 2:32 am

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

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.
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Thu Mar 22, 2012 3:56 am

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

johnsr11

Streaming enthusiast

Posts: 27

Joined: Thu Mar 01, 2012 11:18 pm

Post Thu Mar 22, 2012 4:10 pm

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

Yea, I followed that script before and it has not worked for me at all. Thanks though
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Thu Mar 22, 2012 4:15 pm

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

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?
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

johnsr11

Streaming enthusiast

Posts: 27

Joined: Thu Mar 01, 2012 11:18 pm

Post Thu Mar 22, 2012 4:41 pm

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

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
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Thu Mar 22, 2012 5:59 pm

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Thu Mar 22, 2012 6:39 pm

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

uid

User avatar

Serviio newbie

Posts: 13

Joined: Thu Mar 22, 2012 8:47 pm

Location: 53°08´56" N 16°42´40" E

Post Thu Mar 22, 2012 10:00 pm

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

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
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Fri Mar 23, 2012 12:41 am

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
<<

uid

User avatar

Serviio newbie

Posts: 13

Joined: Thu Mar 22, 2012 8:47 pm

Location: 53°08´56" N 16°42´40" E

Post Fri Mar 23, 2012 9:37 am

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

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?
<<

serviio-buddy

User avatar

DLNA master

Posts: 132

Joined: Fri Jan 20, 2012 5:24 pm

Location: United States

Post Fri Mar 23, 2012 4:37 pm

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

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.
serviio-buddy
Beta Tester Group

SONY SMP-N100 Media Player, HP PC: Vista 32/Ubuntu 11.10, Serviio 0.6.2, XBMC, VLC, ASUS eeePC Netbook: Vista 32, XBMC, SHARP Aquos BD-HP25U DLNA Blu-Ray Player

HowTo: Provide supported formats of a device | Record a new ticket on Bitbucket | Provide details of a video file that doesn't play | Turn on detailed logging
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 91 guests

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