Jump to content

restart.sh called multiple times


Recommended Posts

Posted (edited)

just upgraded to 3.1.287.0 beta, and still having this (what i assume is weird) issue where i have multiple instances of restart.sh being called. and they do NOT go away. looking at the processes shows them being active for 24 plus hours.

 

process looks like this:

/usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh

there are usually 2 or 3 of them, and sometimes when the cpu spikes, it appears to be bcuz of them. I could be wrong on their impact on the system. just posting what i see :)

 

running the server on Linux AZ-3 3.2.0-4-amd64 #1 SMP Debian 3.2.84-1 x86_64 GNU/Linux

Edited by thejacer87
Posted

Please kill them, try to recreate the problem, then attach the emby server log. thanks.

Posted

killed the processes... the server shutdown. called 

service emby-server start

 about 20 restart.sh processes fired

588c59b4ec293_Screenshotfrom201701280033

 

 

i restarted the server from the dashboard... 3 processes showed up...

Log.txt

Log1.txt

Log2.txt

Posted

processes of what? those should not show up just from starting the server.

Posted (edited)

processes of what? those should not show up just from starting the server.

 

the restart.sh process. run by the emby user

Edited by thejacer87
Posted

when do they start showing up?

Posted

when do they start showing up?

As soon as the server turns back on

Posted

just got an error when trying to sync to my android phone, seems to be the restart.sh script:

2017-01-28 17:33:40.7159 Error App: Error during sync transcoding
	*** Error Report ***
	Version: 3.1.287.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 3.2.0.4
	64-Bit OS: True
	64-Bit Process: True
	Mono: 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan  3 11:48:26 UTC 2017)
	Processor count: 2
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.Exception: Encoding failed
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder+<EncodeVideo>c__async8.MoveNext () [0x00159] in <107c0dfeca744e27a17eea561bb93d86>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__asyncB.MoveNext () [0x004a8] in <0e21b17ddd814695a1ca13311a531dc8>:0 
	System.Exception
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder+<EncodeVideo>c__async8.MoveNext () [0x00159] in <107c0dfeca744e27a17eea561bb93d86>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__asyncB.MoveNext () [0x004a8] in <0e21b17ddd814695a1ca13311a531dc8>:0 
	

attached the log

 

Log.txt

Posted

Why does it seem to be restart.sh?

Posted

Why does it seem to be restart.sh?

i just assumed cuz the error report says that was the command line...

2017-01-28 17:33:40.7159 Error App: Error during sync transcoding
	*** Error Report ***
	Version: 3.1.287.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
Posted

mmm, so i dont think the issue is just about syncing.... just last night i renamed all my movies from {name}.{ext} to {name}/{name}.{ext}. because i read that library scans are quicker if the movies are in separate folders.

 

but now i cant watch any movies, but i can watch tv shows. ive run the scan a few times now and still can't. 

Log.txt

Posted

 

i just assumed cuz the error report says that was the command line...

2017-01-28 17:33:40.7159 Error App: Error during sync transcoding
	*** Error Report ***
	Version: 3.1.287.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh

 

No, that's just repeating the command line that the server was originally started with, just for reference.

Posted

are these ffmpeg and ffprobe paths valid?

-ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe

It looks like either they are not valid or possibly a really old version is there. Find out what is there and let me know, thanks.

Posted (edited)

are these ffmpeg and ffprobe paths valid?

-ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe

It looks like either they are not valid or possibly a really old version is there. Find out what is there and let me know, thanks.

 

i grabbed the 64 bit static from here a while ago: https://github.com/MediaBrowser/Emby.Resources/tree/master/ffmpeg/linux

thejacer87@server:/usr/bin$ ffmpeg -version
ffmpeg version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
  built on Jan 19 2017 11:13:36 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
ffmpeg 0.8.20-6:0.8.20-0+deb7u1
libavutil    51. 22. 3 / 51. 22. 3
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  52.  0. 0 / 52.  0. 0
thejacer87@server:/usr/bin$ ffprobe -version
avprobe version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2007-2014 the Libav developers
  built on Jan 19 2017 11:13:36 with gcc 4.7.2
avprobe 0.8.20-6:0.8.20-0+deb7u1
libavutil    51. 22. 3 / 51. 22. 3
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  52.  0. 0 / 52.  0. 0


these would have been the same versions i used to build my library originally. the only difference that i have seen lately was the restart.sh script popping up, within the last few beta releases

Edited by thejacer87
Posted

The server is rejecting that for two reasons - first, that's not ffmpeg, that's libav, which we do not support. Second, it's based on a 2014 build which is now far too old.

 

If you're not able to build something newer then you can download it from here:

 

https://www.johnvansickle.com/ffmpeg/

Posted

The server is rejecting that for two reasons - first, that's not ffmpeg, that's libav, which we do not support. Second, it's based on a 2014 build which is now far too old.

 

If you're not able to build something newer then you can download it from here:

 

https://www.johnvansickle.com/ffmpeg/

 

k got ffmpeg sorted out. sorry for wasting your time with this again. in a previous thread where you helped me, ffmpeg was an issue and i thought i got it sorted with the proper build... dunno how i ended up with libav again.... maybe apt-get update/upgrade overwrote it somehow (unlikely, most likely my incompetence)

 

 

anyway, it turn emby server off, but the vansickle version of ffmpeg in the right spot and restarted. ran the library scan and can watch movies.... still have over 20 processes running now though. only 2 are using the cpu though... not too sure what that means...

 

 588e63e0b8ec4_Screenshotfrom201701291351

Posted

What makes you think those are running processes? The server doesn't just start itself randomly.

 

Is there an issue that you're experiencing?

Posted

What makes you think those are running processes? The server doesn't just start itself randomly.

 

Is there an issue that you're experiencing?

 

i see these processes when i run htop on the server.

the issue, if any, is that these processes just popped up, after an update recently. a few weeks ago, i would have never have seen these processes listed. But the started popping up for unknown reasons. just seemed weird that they showed up. and sometimes, like i said in my original post, they spike the CPU usage

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...