Jump to content

Emby Server Crash on adding new Library (Segmentation Fault)


Recommended Posts

Posted

Long time lurker first time poster.

 

I have been using emby for quite some time on an unraid system via docker. (using Kodi with the emby add-on) as a front end on different machines around the house all connecting to the emby server.

 

Currently using emby Version 3.2.70.0 (says it is the latest version)

 

When I add a library, whether for movies or  tv there is no trouble and everything works perfect so long as the drives or folders that host the movies or the tv shows are on the unraid system that his hosting the emby docker program.

 

If I try to add even one tv series to the existing tv show library or create a new tv show library that is not on the same system as the unraid - emby - docker ie another networked computer or drobo... the server crashes. The docker log calls it a segmentation fault

 

The logs I have are attached one without the problem and one with. I have replicated this issue multiple times with different networked devices and computers on different ip address but the crashing issues come back each time no matter.

 

On the docker log no matter the situation, if I add this type of new library in this way i generate a segmentation fault and the system sends a kill all order to the server.

 

The only way I can stop a server crash after startup is to log into the dashboard quickly enough after a restart or fresh start and remove the offending library entry from the manage folder section at which point the system goes back to working as it should. Any help would be greatly appreciated. If there is any other information you require please let me know.

 

No Errors server-63654232872.txt

Errors server-63654231979.txt

Posted

Hi, yes there is currently an issue with our libSmb support that is compiled into our ffmpeg build, and we're looking into it, thanks.

 

@@alucryd fyi

Posted

Thank you so much for this. I thought I was going crazy.  :)

Posted

Could you please share the [global] section from your smb.conf on the server containing your samba shares? It's usually in /etc/samba/smb.conf.

Posted

Could you please share the [global] section from your smb.conf on the server containing your samba shares? It's usually in /etc/samba/smb.conf.

This is how it looks on my unraid server

 

Last login: Tue Feb 20 23:19:27 2018 from 192.168.178.24

Linux 4.14.16-unRAID.

root@twilight:~# cd /etc/samba

root@twilight:/etc/samba# ls

lmhosts smb-names.conf smb-shares.conf smb.conf

root@twilight:/etc/samba# cat smb.conf

[global]

# configurable identification

include = /etc/samba/smb-names.conf

 

# log stuff only to syslog

log level = 0

syslog = 0

syslog only = Yes

 

# we don't do printers

show add printer wizard = No

disable spoolss = Yes

load printers = No

printing = bsd

printcap name = /dev/null

 

# misc.

invalid users = root

unix extensions = No

wide links = Yes

use sendfile = Yes

aio read size = 0

aio write size = 4096

 

# ease upgrades from Samba 3.6

acl allow execute always = Yes

# permit NTLMv1 authentication

ntlm auth = Yes

 

# hook for user-defined samba config

include = /boot/config/smb-extra.conf

 

# auto-configured shares

include = /etc/samba/smb-shares.conf

root@twilight:/etc/samba#

 

Gesendet von meinem Redmi Note 3 mit Tapatalk

Posted

@@alucryd

 

Sorry for the delay in the reply, life got in the way in a large way.

 

Here is what I was able to find, but bear in mind that I have installed, uninstalled and I thought removed all traces before a fresh install a couple of times. Here is what the log shows.

 

[global]
# configurable identification
include = /etc/samba/smb-names.conf
 
# log stuff only to syslog
log level = 0
syslog = 0
syslog only = Yes
 
# we don't do printers
show add printer wizard = No
        disable spoolss = Yes
load printers = No
printing = bsd
printcap name = /dev/null
 
# misc.
invalid users = root
unix extensions = No
wide links = Yes
use sendfile = Yes
aio read size = 0
aio write size = 4096
 
# ease upgrades from Samba 3.6
acl allow execute always = Yes
# permit NTLMv1 authentication
ntlm auth = Yes
 
# hook for user-defined samba config
include = /boot/config/smb-extra.conf
 
# auto-configured shares
include = /etc/samba/smb-shares.conf
 
 
If there is anything else I can provide or test on my end please let me know. I would love to be able to add that second source.
Posted

Could you both try adding

dos charset = CP850
unix charset = UTF-8
display charset = UTF-8

to the [global] section and restart samba, see if this changes anything ?

flipdamusic
Posted (edited)

Hi,

 

i've the same issue on docker using the latest.

I'd changed the smb setting on dos charset. unix and display was already on UTF-8.

Same result. container stops with ffmpeg segmentation fault.

 

 

ffprobe version 3.4.1 Copyright © 2007-2017 the FFmpeg developers

built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)

configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --arch=x86_64 --target-os=linux --prefix=/srv/buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-static --disable-cuda --disable-cuvid --disable-iconv --disable-nvenc --disable-doc --disable-ffplay --disable-ffserver --disable-xlib --enable-shared --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libsmbclient --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-vaapi --enable-version3 --extra-libs='-laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -ldl -ldrm -lexpat -lflag-mapping-samba4 -lfreetype -lfribidi -lfontconfig -lgenrand-samba4 -lgensec-samba4 -lgmp -lgse-samba4 -lgssapi_krb5 -lhogweed -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lnettle -lpng -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4'

libavutil 55. 78.100 / 55. 78.100

libavcodec 57.107.100 / 57.107.100

libavformat 57. 83.100 / 57. 83.100

libavdevice 57. 10.100 / 57. 10.100

libavfilter 6.107.100 / 6.107.100

libswscale 4. 8.100 / 4. 8.100

libswresample 2. 9.100 / 2. 9.100

libpostproc 54. 7.100 / 54. 7.100

[smb @ 0x17b5560] File open failed: No such file or directory

smb:///share/media/Holiday.ROM.2015.mkv: No such file or directory

Segmentation fault

Edited by flipdamusic
  • 1 month later...
Posted (edited)

Any updates on this? I'm having the same issue. Log below for 3.3.1.0:

 

ffmpeg version 3.4.2 Copyright © 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/srv/buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-cuda --disable-cuvid --disable-iconv --disable-nvenc --disable-doc --disable-ffplay --disable-ffserver --disable-xlib --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --extra-libs='-ldl -lexpat -lfreetype -lfribidi -lfontconfig -lpng -lgmp -lhogweed -lnettle -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static --enable-gnutls --enable-libsmbclient --enable-vaapi
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Info MediaEncoder: Encoder available: libx264
Info MediaEncoder: Encoder available: mpeg4
Info MediaEncoder: Encoder available: msmpeg4
Info MediaEncoder: Encoder available: aac
Info MediaEncoder: Encoder available: libmp3lame
Info MediaEncoder: Encoder available: libopus
Info MediaEncoder: Encoder available: libvorbis
Info MediaEncoder: Encoder available: srt
Info MediaEncoder: Encoder available: h264_vaapi
Info MediaEncoder: Encoder available: hevc_vaapi
Info MediaEncoder: Encoder available: h264_v4l2m2m
Info MediaEncoder: Encoder available: libwebp
Info MediaEncoder: Encoder available: ac3
Info MediaEncoder: Encoder validation complete
Info App: ServerId: 729e5d670c9f47e0bbb28d15e4e276dd
Info App: Core startup complete
Info App: Post-init migrations complete
Info App: Starting entry point MediaBrowser.Api.ApiEntryPoint
Info App: Entry point completed: MediaBrowser.Api.ApiEntryPoint. Duration: 3.92E-05 seconds
Info App: Starting entry point MediaBrowser.WebDashboard.ServerEntryPoint
Info App: Entry point completed: MediaBrowser.WebDashboard.ServerEntryPoint. Duration: 0.0006581 seconds
Info App: Starting entry point Emby.Server.Implementations.Notifications.Notifications
Info App: Entry point completed: Emby.Server.Implementations.Notifications.Notifications. Duration: 0.0042787 seconds
Info App: Starting entry point Emby.Server.Implementations.Notifications.WebSocketNotifier
Info App: Entry point completed: Emby.Server.Implementations.Notifications.WebSocketNotifier. Duration: 0.0009059 seconds
Info App: Starting entry point Emby.Server.Implementations.News.NewsEntryPoint
Info App: Entry point completed: Emby.Server.Implementations.News.NewsEntryPoint. Duration: 0.0002945 seconds
Info App: Starting entry point Emby.Server.Implementations.LiveTv.EmbyTV.EntryPoint
Info App: Loading live tv data from /config/data/livetv/timers
Info App: Entry point completed: Emby.Server.Implementations.LiveTv.EmbyTV.EntryPoint. Duration: 0.1654768 seconds
Info App: Starting entry point Emby.Server.Implementations.IO.LibraryMonitorStartup
Info App: Entry point completed: Emby.Server.Implementations.IO.LibraryMonitorStartup. Duration: 0.0294325 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.AutomaticRestartEntryPoint
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.AutomaticRestartEntryPoint. Duration: 0.0004334 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.ExternalPortForwarding
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.ExternalPortForwarding. Duration: 0.016458 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.KeepServerAwake
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.KeepServerAwake. Duration: 0.0002836 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.LibraryChangedNotifier
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.LibraryChangedNotifier. Duration: 0.0018846 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.RecordingNotifier
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.RecordingNotifier. Duration: 0.0016083 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.ServerEventNotifier
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.ServerEventNotifier. Duration: 0.002945 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.StartupWizard
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.StartupWizard. Duration: 0.0006751 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.SystemEvents
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.SystemEvents. Duration: 0.0004555 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.UdpServerEntryPoint
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.UdpServerEntryPoint. Duration: 0.0031442 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.UsageEntryPoint
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.UsageEntryPoint. Duration: 0.0018904 seconds
Info App: Starting entry point Emby.Server.Implementations.EntryPoints.UserDataChangeNotifier
Info App: Entry point completed: Emby.Server.Implementations.EntryPoints.UserDataChangeNotifier. Duration: 0.0005631 seconds
Info App: Starting entry point Emby.Server.Implementations.Activity.ActivityLogEntryPoint
Info App: Entry point completed: Emby.Server.Implementations.Activity.ActivityLogEntryPoint. Duration: 0.0020844 seconds
Info App: Starting entry point Emby.Server.MediaEncoding.Api.ApiEntryPoint
Info App: Entry point completed: Emby.Server.MediaEncoding.Api.ApiEntryPoint. Duration: 0.0009378 seconds
Info App: Starting entry point Emby.Dlna.DlnaProfileEntryPoint
Info App: Entry point completed: Emby.Dlna.DlnaProfileEntryPoint. Duration: 4.64E-05 seconds
Info App: Starting entry point Emby.Dlna.Main.DlnaEntryPoint
Info App: Entry point completed: Emby.Dlna.Main.DlnaEntryPoint. Duration: 0.1788027 seconds
Info App: Starting entry point MediaBrowser.XbmcMetadata.EntryPoint
Info App: Entry point completed: MediaBrowser.XbmcMetadata.EntryPoint. Duration: 0.0002621 seconds
Info App: Starting entry point Emby.Security.PluginSecurityManager
Info App: Entry point completed: Emby.Security.PluginSecurityManager. Duration: 5.04E-05 seconds
Info App: Starting entry point Emby.Server.CinemaMode.IntrosEntryPoint
Info App: Entry point completed: Emby.Server.CinemaMode.IntrosEntryPoint. Duration: 0.0002136 seconds
Info App: Starting entry point Emby.Server.Connect.ConnectEntryPoint
Info App: Loading data from /config/data/connect.txt
Info App: Loading data from /config/data/wan.dat
Info App: Entry point completed: Emby.Server.Connect.ConnectEntryPoint. Duration: 0.0293116 seconds
Info App: Starting entry point Emby.Security.PluginSecurityManager
Info App: Entry point completed: Emby.Security.PluginSecurityManager. Duration: 8.52E-05 seconds
Info App: Starting entry point Emby.Server.Sync.SyncManagerEntryPoint
Info App: Sqlite version: 3.21.0
Info App: Sqlite compiler options: COMPILER=gcc-6.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS5,ENABLE_JSON1,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1
Info App: Default journal_mode for /config/data/sync14.db is wal
Info App: PRAGMA synchronous=1
Info App: Entry point completed: Emby.Server.Sync.SyncManagerEntryPoint. Duration: 0.0123049 seconds
Info App: Starting entry point Emby.Server.Sync.SyncNotificationEntryPoint
Info App: Entry point completed: Emby.Server.Sync.SyncNotificationEntryPoint. Duration: 0.0006941 seconds
Info App: All entry points have started
Segmentation fault
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Edited by BiPolar

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