Jump to content

Some General Questions about EMBY on FreeBSD


makarai

Recommended Posts

makarai

Hey All,

 

I have been running an Emby server for quite some time now and it works quite reliably. However, i recently migrated from an old FreeNAS system to the current version. I pretty much followed the FreeBSD instructions on here. I think.

 

On the current version of FreeNAS they switched from warden Jails to iocage jails, so this is what i did.

#create emby iocage

iocage create --name=emby_iocage ip4_addr="igb0|192.168.0.100/24" -r 11.1-RELEASE
iocage start emby_iocage

#add storage
iocage fstab -a emby_iocage /mnt/volume01/multimedia /multimedia01 nullfs rw 0 0
iocage fstab -a emby_iocage /mnt/volume02/multimedia /multimedia02 nullfs rw 0 0
iocage fstab -a emby_iocage /mnt/volume01/db/ssl/user-certs /certs nullfs rw 0 0


iocage console emby_iocage
pkg install emby-server
	
# Update FreeBSD ports tree modify installation based on emby recomendations
portsnap fetch update
portsnap extract
# Remove default FFMpeg package
pkg delete -f ffmpeg
# Reinstall FFMpeg from ports with lame option enabled
cd /usr/ports/multimedia/ffmpeg
# Install ffmpeg build dependencies
pkg install `make build-depends-list | tr '\n' ' ' | sed 's/\/usr\/ports\///g' | sed 's/audio\/lame //g'`
make config
# enable the lame option
# enable the SMB option
# enable the ass subtitles option
# enable the opus subtitles option
# enable the x265 subtitles option
make install clean
# hit enter a 1000s of times




service emby-server onestop
pw useradd -n emby -u 1000 -d /nonexistent -s /usr/sbin/nologin
pw usermod emby -n emby -u 1000
pw usermod emby -n emby -g 1000
(where ### is the UID and GID of the user I want it to be)
chown -R emby:emby /var/db/emby-server
sysrc 'emby_server_user=emby'
service emby-server onestart


chown -R makarai:makarai /var/db/emby-server
sysrc 'emby_server_user=makarai'


#To Update always to the newest version and not the quarterly! Add folder pkg/repos/edit /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}

pkg update
pkg upgrade

I followed the recommended changes in the ff-mpeg. I hope that is still all good. 

 

The server runs quite alright. However my error log is still full of random errors. 

2018-02-02 08:13:23.445 Error HttpServer: Error in ProcessAccept
	*** Error Report ***
	Version: 3.2.70.0
	Command line: /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata /var/db/emby-server
	Operating system: Unix 11.1.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.8.1 (4.8.1.0 Sat Nov  4 03:09:59 UTC 2017)
	Processor count: 8
	Program data path: /var/db/emby-server
	Application directory: /usr/local/lib/emby-server
	System.Net.Sockets.SocketException (0x80004005): The socket has been shut down
	  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <11d29b2234814f928385c7f3dec82910>:0 
	  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsServer (System.IAsyncResult asyncResult) [0x00011] in <65d66c5eaa6a48038257422d3c294dab>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00021] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.HttpConnection+<InitStream>c__async0.MoveNext () [0x000d1] in <162eaf81ed7b42da88afc3f7f8f3b047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.HttpConnection+<Create>c__async1.MoveNext () [0x000b5] in <162eaf81ed7b42da88afc3f7f8f3b047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.EndPointListener+<ProcessAccept>c__async0.MoveNext () [0x0011b] in <162eaf81ed7b42da88afc3f7f8f3b047>:0 
	System.Net.Sockets.SocketException
	  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <11d29b2234814f928385c7f3dec82910>:0 
	  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsServer (System.IAsyncResult asyncResult) [0x00011] in <65d66c5eaa6a48038257422d3c294dab>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00021] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.HttpConnection+<InitStream>c__async0.MoveNext () [0x000d1] in <162eaf81ed7b42da88afc3f7f8f3b047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.HttpConnection+<Create>c__async1.MoveNext () [0x000b5] in <162eaf81ed7b42da88afc3f7f8f3b047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at SocketHttpListener.Net.EndPointListener+<ProcessAccept>c__async0.MoveNext () [0x0011b] in <162eaf81ed7b42da88afc3f7f8f3b047>:0

Maybe some of the advanced people can point me to the right direction.

 

Cheers

 Mak

Link to comment
Share on other sites

makarai

Hey Luke, Thanks for answering, the only problem i have are the errors in the logs and that the emby android app doesn't play specific files. I am wondering if the way i installed emby is 100% correctly. I attached my log file. 

Log.txt

Edited by makarai
Link to comment
Share on other sites

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