Page 1 of 2

Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Sun Mar 02, 2014 2:11 am
by cruiserparts
I had used serviio 1.1 -1.4 on an old Ubuntu 12.04 and never had any issues.

Installed serviio last week on a new install 12.04 Ubuntu new 64bit machine with Java java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1).

Works fine for a few hours and then just drops out. Meaning, right in the middle of watching a movie it will hang. Then no clients can connect to serviio server. status says serviio is running. console says it is running. all other services to the same folder serviio is serving (smb) work fine. Server has no hiccups.

sudo service serviio restart says that it stops serviio and starts it again
BUT sudo service serviio status says it is STOPPED. no clients show serviio service
sudo service serviio start will then start serviio and all clients can then play movies until it drops out again.

Any ideas? Thanks.

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Sun Mar 02, 2014 6:39 am
by Iveky
similar as you, but on fedora....
before two months, after some upgrade (of java, not serviio) suddenly stopped working, i have some problems to uninstall fedora's open java and donwgrade and installed:

  Code:
 iveky@fedora64pc ~$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Sun Mar 02, 2014 6:58 pm
by cruiserparts
After more testing.

I found this in the log
2014-03-02 09:00:22,975 ERROR [MediaServer] FFMPEG not found. Serviio will not work properly.


It appears as if this might be a problem. I don't know if it is related by serviio is not making thumbnails of my personally created videos (although it does get the cover art from online sources).

I do have ffmpeg installed.
  Code:
ffmpeg version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:56:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Hyper fast Audio and Video encoder


Serviio works well for awhile and then stops, so it is mostly working. I think I need to deal with the ffmpeg problem first.
Can somebody please post the file that contains that path to ffmpeg, please?
Thanks

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Sun Mar 02, 2014 8:19 pm
by NX3
I'd look at the serviio wiki and compile your own build of ffmpeg

Sent from my HTC One mini using Tapatalk

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 1:35 am
by cruiserparts
I'd look at the serviio wiki and compile your own build of ffmpeg


I guess I'm confused, this was a fresh download on a fresh server install and this page seems to indicate that ffmpeg is included in the build. What am I missing?

http://www.serviio.org/download

Does this mean that it is not the right build for 1.4?

Thanks

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 7:05 am
by Iveky
when you telnet to system and type ffmpeg -i what you get?

Sent from my LG-E440 using Tapatalk 2

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 1:11 pm
by cruiserparts
when you telnet to system and type ffmpeg -i what you get?


  Code:
ffmpeg version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:56:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 3:11 pm
by Iveky
it exist but is an old version, i think.

Sent from my LG-E440 using Tapatalk 2

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 3:20 pm
by cruiserparts
Now that I look the download page says that,

This release includes FFmpeg (post) 1.2.1 compiled using this source code, li


Apparently it did not install it (or that version), or I did not do it correctly. I just looked over the Readme file again. I guess I will have to see how to get FFMPEG to a later version. Not sure why ubuntu is not updating it. I guess I will try the compile method, although that sounds like it is fraught with disaster :)

FFmpeg
------

This software includes (in its Windows and OSX distributions) FFmpeg (a great video library).
Source code used to build it can be found here:
http://download.serviio.org/opensource/ ... f19.tar.gz

*Linux* users should use the latest FFmpeg included in their OS distributions or compile the above sources. It should
include librtmp for RTMP streaming support and libass for subtitles rendering.

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 7:53 pm
by cruiserparts
Update,

I tried to just compile ffmpeg from source. As expected I just got errors all over the place when I was following the directions listed from ffmpeg here https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide

Serviio worked so well on my old server. I guess it might be time to throw in the towel on this one. Doesn't seem to be happening.

Thanks.

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Mon Mar 03, 2014 10:19 pm
by cruiserparts
So I threatened to throw in the towl. Tried once more before doing it and made progress. Now I have
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 3 2014 15:54:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-librtmp --enable-libxvid --enable-libass
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100


which came from here http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

there sure are a lot of different instructions and ways to build it.
I have not done extensive testing, but at least now I have
2014-03-03 16:05:53,325 INFO [FFMPEGWrapper] Found FFmpeg: ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers


Still don't seem to be generating thumbnails for local videos we made. Hopefully the disconnects/crashes will stop

Re: Serviio

PostPosted: Tue Mar 04, 2014 12:50 am
by Iveky
on fedora i am on version 2.1.4
selfupdating from repository
thumbnails are generated

Sent from my LG-E440 using Tapatalk 2

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Tue Mar 04, 2014 10:21 am
by NX3
Good stuff, as I said before using the serviio wiki ffmpeg build guide is the way to it.

Sent from my HTC One mini using Tapatalk

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Wed Mar 05, 2014 2:08 am
by cruiserparts
So the thumbnails started working a few hours later. It may have just been a time thing. I'm not sure how long it takes them to run the code that makes them. Or it could be that I turned off online sources. Either way, they are working now and serviio has not crashed since did it.

Thanks for everybody's help.

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Tue Mar 11, 2014 6:26 am
by starijistric
I have the same problem except that running 32-bit ubuntu 12.94lts ... unfortunately the procedure did not work for me ... even after ffmpeg recompilation serviio is crashing but now without traces in log (before I had the same ffmpeg error log) ... any ideas ...
thanks in advance

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Tue Mar 11, 2014 7:58 am
by starijistric
Now I have checked this on another machine where I run ubuntu 10.04 with serviio 1.3.1 ... the same thing except that there is no ffmpeg errors in serviio logs ...
all the problems started with the last java update ... weird ... especially since on windows machine serviio is running without any problems without crashing ... could it be that new java is not compatible with serviio? but then how it works on windows .... weird ... please help ..

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Wed Mar 12, 2014 6:21 am
by starijistric
Ok ... ffmpeg was not reason of my serviio crashing but java ...
here is log message
"2014-03-11 16:24:15,922 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "dcraw": java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "dcraw": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:135)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
... 1 more
2014-03-11 16:24:15,923 WARN [MediaServer] DCRAW not found. Support for raw image files will be missing."
still java seems to work ...
any ideas ... please help

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Wed Mar 12, 2014 9:16 am
by Iveky
dcraw is mentioned in wiki, linux installation

Sent from my LG-E440 using Tapatalk 2

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Wed Mar 12, 2014 3:26 pm
by zip
dcraw is not required, unless you want to see RAW images you can ignore this error

Re: Serviio "crashing" after several hours on Ubuntu 12.04

PostPosted: Wed Mar 12, 2014 9:12 pm
by starijistric
Thanks ... I have also found this info on dcraw ...but still serviio is unexpectedly stopping ... I have even tried to boot ubuntu with previous version of kernel ... still the same ...after several hous serviio crashes ...