mothball 1 Posted November 1, 2022 Posted November 1, 2022 Hello Emby Community - i have been experiencing repeated server service failures recently. My Emby Server service fails on the Ubuntu server that I am using as the platform my home network. I am attaching the last log of the event i have documenting the failure and the one prior to its restart. It appears to be a CIFS failure but It would be great to get insights from someone who understands the log messages. I am happy to supply any other logs that might shed light on what is causing this failure. I find it curious that a CIFS connect fail would cause the whole server service to dump... the common thread in these logs is that the it appears to be a cifs error and it referenced on of my NAS file servers named TERRA. thanks in advance for the assistance Ubuntu 22.10 is the version (but it was happening before i updated to 22.10 - it was 22.04 LTS before that) System Information Dump ASRock B450 Pro4 BIOS American Megatrends Inc. BIOS version P3.20 BIOS date May 10, 2019 CPU 8x AMD Ryzen 5 2400G with Radeon Vega Graphics CPU security PCI Class Model Vendor Slot Bridge Raven/Raven2 Root Complex Advanced Micro Devices, Inc. [AMD] 0000:00:00.0 Bridge Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge Advanced Micro Devices, Inc. [AMD] 0000:00:01.0 Bridge Raven/Raven2 PCIe GPP Bridge [6:0] Advanced Micro Devices, Inc. [AMD] 0000:00:01.1 Bridge Raven/Raven2 PCIe GPP Bridge [6:0] Advanced Micro Devices, Inc. [AMD] 0000:00:01.2 Bridge 400 Series Chipset PCIe Bridge Advanced Micro Devices, Inc. [AMD] 0000:02:00.2 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:00.0 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:01.0 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:04.0 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:05.0 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:06.0 Bridge 400 Series Chipset PCIe Port Advanced Micro Devices, Inc. [AMD] 0000:03:07.0 Bridge Raven/Raven2 PCIe GPP Bridge [6:0] Advanced Micro Devices, Inc. [AMD] 0000:00:01.6 Bridge Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge Advanced Micro Devices, Inc. [AMD] 0000:00:08.0 Bridge Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A Advanced Micro Devices, Inc. [AMD] 0000:00:08.1 Bridge Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B Advanced Micro Devices, Inc. [AMD] 0000:00:08.2 Bridge FCH LPC Bridge Advanced Micro Devices, Inc. [AMD] 0000:00:14.3 Bridge Raven/Raven2 Device 24: Function 0 Advanced Micro Devices, Inc. [AMD] 0000:00:18.0 Bridge Raven/Raven2 Device 24: Function 1 Advanced Micro Devices, Inc. [AMD] 0000:00:18.1 Bridge Raven/Raven2 Device 24: Function 2 Advanced Micro Devices, Inc. [AMD] 0000:00:18.2 Bridge Raven/Raven2 Device 24: Function 3 Advanced Micro Devices, Inc. [AMD] 0000:00:18.3 Bridge Raven/Raven2 Device 24: Function 4 Advanced Micro Devices, Inc. [AMD] 0000:00:18.4 Bridge Raven/Raven2 Device 24: Function 5 Advanced Micro Devices, Inc. [AMD] 0000:00:18.5 Bridge Raven/Raven2 Device 24: Function 6 Advanced Micro Devices, Inc. [AMD] 0000:00:18.6 Bridge Raven/Raven2 Device 24: Function 7 Advanced Micro Devices, Inc. [AMD] 0000:00:18.7 Display controller Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] Advanced Micro Devices, Inc. [AMD/ATI] 0000:0b:00.0 Encryption controller Family 17h (Models 10h-1fh) Platform Security Processor Advanced Micro Devices, Inc. [AMD] 0000:0b:00.2 Generic system peripheral Raven/Raven2 IOMMU Advanced Micro Devices, Inc. [AMD] 0000:00:00.2 Mass storage controller SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] Broadcom / LSI 0000:01:00.0 Mass storage controller 400 Series Chipset SATA Controller Advanced Micro Devices, Inc. [AMD] 0000:02:00.1 Mass storage controller ASM1062 Serial ATA Controller (Motherboard) ASMedia Technology Inc. 0000:08:00.0 Mass storage controller WD Blue SN500 / PC SN520 NVMe SSD Sandisk Corp 0000:0a:00.0 Mass storage controller FCH SATA Controller [AHCI mode] Advanced Micro Devices, Inc. [AMD] 0000:0c:00.0 Multimedia controller Raven/Raven2/Fenghuang HDMI/DP Audio Controller Advanced Micro Devices, Inc. [AMD/ATI] 0000:0b:00.1 Multimedia controller Family 17h/19h HD Audio Controller Advanced Micro Devices, Inc. [AMD] 0000:0b:00.6 Network controller RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Motherboard (one of many)) Realtek Semiconductor Co., Ltd. 0000:09:00.0 Serial bus controller 400 Series Chipset USB 3.1 XHCI Controller Advanced Micro Devices, Inc. [AMD] 0000:02:00.0 Serial bus controller Raven USB 3.1 Advanced Micro Devices, Inc. [AMD] 0000:0b:00.3 Serial bus controller Raven USB 3.1 Advanced Micro Devices, Inc. [AMD] 0000:0b:00.4 Serial bus controller FCH SMBus Controller Advanced Micro Devices, Inc. [AMD] 0000:00:14.0 Memory ID Memory technology Type Size State Rank Speed P0 CHANNEL A: DIMM 0 Unknown DDR4 16 GiB Present Dual rank 2133 MT/s P0 CHANNEL A: DIMM 1 Unknown Unknown Unknown Absent Unknown Unknown P0 CHANNEL B: DIMM 0 Unknown Unknown Unknown Absent Unknown Unknown P0 CHANNEL B: DIMM 1 Unknown Unknown Unknown Absent Unknown Unknown embyserver-63802847239.txt embyserver-63802846048.txt
Q-Droid 989 Posted November 1, 2022 Posted November 1, 2022 (edited) You'll gain the most stability by mounting the CIFS shares locally to your server then referencing those local paths to the library from within Emby. But if your NAS sleeps or spins down then you might continue to experience access related problems. Search this site for cifs mount fstab (Advanced -> All of my search term words) if you need examples. Edited November 1, 2022 by Q-Droid 1
mothball 1 Posted November 1, 2022 Author Posted November 1, 2022 the service is running an then it stops - when i check the service in my server control dashboard (I use cockpit for ubuntu - see attached screenshot). I then restart the service and then it works again for some period of time - could be minutes, could be hours, or it could be days - its never really consistent. I will say that if i reboot the server the time period the emby service remains active is usually longer.
mothball 1 Posted November 1, 2022 Author Posted November 1, 2022 5 hours ago, Q-Droid said: You'll gain the most stability by mounting the CIFS shares locally to your server then referencing those local paths to the library from within Emby. But if your NAS sleeps or spins down then you might continue to experience access related problems. Search this site for cifs mount fstab (Advanced -> All of my search term words) if you need examples. thanks - i will take a look at mounting my NAS locally to see if that has any impact - the thing is it feels like this is a bug in emby as it is crashing the whole service and the NAS referenced in the error portion of the log file is only one of 5 different NAS/CIFS file servers i run on the my home network.
Luke 42078 Posted November 1, 2022 Posted November 1, 2022 Let us know how you get on after making that change. Thanks.
mothball 1 Posted November 2, 2022 Author Posted November 2, 2022 11 hours ago, Luke said: Let us know how you get on after making that change. Thanks. still crashing the service - here is the latest log file embyserver-63802936703.txt
Luke 42078 Posted November 2, 2022 Posted November 2, 2022 It looks like you still have SMB shares added in Emby library setup. Can you try instead mounting those network shares to a local path using the tools in the OS to do that, and then add the local path into Emby Server instead of the network share? Please let us know if this resolves your issue. Thanks !
Q-Droid 989 Posted November 2, 2022 Posted November 2, 2022 Do you have the syslog entries from the times this is happening?
Q-Droid 989 Posted November 2, 2022 Posted November 2, 2022 And as @Luke mentioned you still have UNC path references to libraries. Access related errors: Quote SharpCifs.Smb.SmbException: SharpCifs.Smb.SmbException: The process cannot access the file because it is being used by another process. ffprobe version 5.0.0-emby_2022_05_27-u1 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC built with gcc 8.3.0 (crosstool-NG 1.24.0) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1f1d840] moov atom not found http://127.0.0.1:8096/Items/File?Id=smb%3A%2F%2F192.168.1.100%2Fthor%2FTV%2FX-FILES%2FSEASON_08_%5B2000_01%5D%2FX-FILES_S09_E01_NOTHING_IMPORTANT_HAPPENED_TODAY_%5B1080P%5D.m4v: Invalid data found when processing input
mothball 1 Posted November 5, 2022 Author Posted November 5, 2022 so i gave up and purged the old installation and did a fresh clean install. seems to be working fine - one thing i have noticed is that one of my NAS units is a anold netgear ready nas and it uses SMB 1.0. i know that the current version of CIFS /SMB defaults to SMB 2 or 2.1 so mapping it as a local works fine for file navigators like dolphin or nautilus or cli but Emby's libray function doesn't appear to like it and fails to read/discover the contents of the nas folder and import them into the libray - if i use an url reference it adds them and has been working fine the service is not failing (so far). we will see how it goes
Luke 42078 Posted November 6, 2022 Posted November 6, 2022 9 hours ago, mothball said: so i gave up and purged the old installation and did a fresh clean install. seems to be working fine - one thing i have noticed is that one of my NAS units is a anold netgear ready nas and it uses SMB 1.0. i know that the current version of CIFS /SMB defaults to SMB 2 or 2.1 so mapping it as a local works fine for file navigators like dolphin or nautilus or cli but Emby's libray function doesn't appear to like it and fails to read/discover the contents of the nas folder and import them into the libray - if i use an url reference it adds them and has been working fine the service is not failing (so far). we will see how it goes The upcoming 4.8 server release has a better SMB implementation so that may help with that, but even still in general, I would still suggest mounting locally within the OS and then using the local path with Emby Server.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now