UCM_1 10 Posted February 27, 2021 Share Posted February 27, 2021 (edited) DVR system was working great for months, but recently just stopped. There where some system updates, but I'm not sure if that coincides with exactly when the problem started or not. The TV recording drive is on a network drive. Emby WILL set up the file folders, and create .nfo files for the season and episode(s) to record, so it does have access to the drive. But when it goes to actually create the recorded .ts file, the log says: 2021-02-26 20:48:43.083 Error LiveTV: Error recording to /mnt/Recorded/R.TVSeries/How I Met Your Mother (2005)/Season 3/How I Met Your Mother S03E14 The Bracket.ts *** Error Report *** Version: 4.5.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm Operating system: Linux version 4.18.0-240.10.1.el8_3.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Mon Jan 18 Framework: .NET Core 3.1.8 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 30 Data path: /var/lib/emby Application path: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/Recorded/R.TVSeries/How I Met Your Mother (2005)/Season 3/How I Met Your Mother S03E14 The Bracket.ts' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source) at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source) at System.IO.FileStream.<>c.<WriteAsyncInternal>b__110_0(Task t, Object s) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location where exception was thrown --- at Emby.Server.Implementations.IO.StreamHelper.CopyToAsync(Stream source, Stream destination, Int32 bufferSize, Int32 emptyReadLimit, CancellationToken cancellationToken) at Emby.LiveTV.TunerHosts.LiveStream.CopyFile(String path, Boolean seekFile, Int32 emptyReadLimit, Stream writer, IFileSystem fileSystem, IStreamHelper streamHelper, CancellationToken cancellationToken) at Emby.LiveTV.TunerHosts.LiveStream.CopyToAsync(Stream writer, CancellationToken cancellationToken) at Emby.LiveTV.DirectRecorder.RecordFromDirectStreamProvider(IDirectStreamProvider directStreamProvider, String targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken) at Emby.LiveTV.EmbyTV.RecordStream(TimerInfo timer, DateTimeOffset recordingEndDate, ActiveRecordingInfo activeRecordingInfo) Source: System.Private.CoreLib TargetSite: Void WriteNative(System.ReadOnlySpan`1[System.Byte]) InnerException: System.IO.IOException: Permission denied Source: TargetSite: Edited February 27, 2021 by UCM_1 Link to comment Share on other sites More sharing options...
UCM_1 10 Posted February 27, 2021 Author Share Posted February 27, 2021 (edited) I've looked at the logs a little more, and the actual files created, and my statement about the problem before isn't fully accurate. Emby DOES create the TV Series and season folders, and it does save a valid "poster.jpg". It also DOES create .nfo files "tvshow.nfo", "season.nfo", and the "{Episode Name and Number}.nfo" files, BUT they are all empty and the log file does say that permission is denied. Best guess is that some file(s) are no longer owned by the correct user and/or group? Any thoughts? Edited February 27, 2021 by UCM_1 Link to comment Share on other sites More sharing options...
Luke 37112 Posted February 27, 2021 Share Posted February 27, 2021 Hi, it looks like the server is being denied write access by your file system. If you can resolve that, then you should be good to go after that. Please let us know if this helps. Thanks. Link to comment Share on other sites More sharing options...
UCM_1 10 Posted February 27, 2021 Author Share Posted February 27, 2021 If write access is being denied by the file server (a separate machine), how could Emby be able to create file folders, the poster.jpg file (including writing to it), as well as the empty .nfo files? It's only writing to the .nfo files and writing the .ts that seems to be blocked. The Emby server is a virtual machine, so I've restored to an earlier snapshot (two months old), and now recordings work again. I'm still in the process of updating the virtual machine again, so it's still to early to tell if the problem will start again. But the fact that it is working now, after the Emby virtual machine was regressed, that it's a change on the Emby server machine that is causing the failures and not the file server. Link to comment Share on other sites More sharing options...
UCM_1 10 Posted February 27, 2021 Author Share Posted February 27, 2021 As soon as I update all packages on CentOS8 to the latest versions, the problem starts again. Strange.... Link to comment Share on other sites More sharing options...
Luke 37112 Posted February 27, 2021 Share Posted February 27, 2021 Yea that is strange. Link to comment Share on other sites More sharing options...
UCM_1 10 Posted February 27, 2021 Author Share Posted February 27, 2021 Another regress to the snapshot from a couple months ago, and all is fine again. Emby is at the newest release of 4.5.4.0, and all backed up settings are restored. Here is the list that the Centos8 system wants to update. Is there anything there that you would consider more likely then another to potentially be the cause of the issue? annobin 9.23-1.el8 authselect, authselect-libs 1.2.1-2.el8 bash 4.4.19-12.el8 bind-export-libs 32:9.11.20-5.el8 binutils 2.30-79.el8 boost-atomic, boost-chrono, boost-date-time, boost-filesystem, … 1.66.0-10.el8 brotli 1.0.6-2.el8 centos-gpg-keys 1:8-2.el8 centos-linux-release 8.3-1.2011.el8 centos-linux-repos 8-2.el8 chkconfig 1.13-2.el8 clevis, clevis-luks 13-3.el8 cloud-utils-growpart 0.31-1.el8 cockpit, cockpit-bridge, cockpit-packagekit, cockpit-storaged, … 224.2-1.el8 cockpit-podman 27.1-3.module_el8.3.0+699+d61d9c41 conmon 2:2.0.22-3.module_el8.3.0+699+d61d9c41 container-selinux 2:2.155.0-1.module_el8.3.0+699+d61d9c41 containernetworking-plugins 0.9.0-1.module_el8.3.0+699+d61d9c41 containers-common 1:1.2.0-9.module_el8.3.0+699+d61d9c41 copy-jdk-configs 3.7-4.el8 coreutils, coreutils-common 8.30-8.el8 cpp, gcc, gcc-c++, gcc-gdb-plugin, … 8.3.1-5.1.el8 criu 3.15-1.module_el8.3.0+699+d61d9c41 crypto-policies, crypto-policies-scripts 20200713-1.git51d1222.el8 cryptsetup, cryptsetup-libs 2.3.3-2.el8 cups-libs 1:2.2.6-38.el8 curl, libcurl 7.61.1-14.el8_3.1 cyrus-sasl-lib 2.1.27-5.el8 dbus, dbus-common, dbus-daemon, dbus-libs, … 1:1.12.8-11.el8 dejavu-fonts-common, dejavu-sans-mono-fonts 2.35-6.el8 device-mapper-multipath, device-mapper-multipath-libs, kpartx 0.8.4-5.el8 device-mapper-persistent-data 0.8.5-4.el8 device-mapper, device-mapper-event, device-mapper-event-libs, device-mapper-libs 8:1.02.171-5.el8 dhcp-client, dhcp-common, dhcp-libs 12:4.3.6-41.el8 dmidecode 1:3.2-6.el8 dnf-plugin-subscription-manager, python3-subscription-manager-rhsm, python3-syspurpose, subscription-manager, … 1.27.16-1.el8 dnf-plugins-core, python3-dnf-plugins-core 4.0.17-5.el8 dnf, dnf-data, python3-dnf, yum 4.2.23-4.el8 dracut, dracut-config-rescue, dracut-network, dracut-squash 049-95.git20200804.el8_3.4 e2fsprogs, e2fsprogs-libs, libcom_err, libss 1.45.6-1.el8 efivar-libs 37-4.el8 elfutils, elfutils-debuginfod-client, elfutils-default-yama-scope, elfutils-libelf, … 0.180-1.el8 epel-release 8-10.el8 1 Add x509watch.timer enabled by default. Fixes bug #1901721 expat 2.2.5-4.el8 file, file-libs 5.33-16.el8 filesystem 3.8-3.el8 firewalld, firewalld-filesystem, python3-firewall 0.8.2-2.el8 freetype 2.9.1-4.el8_3.1 fuse-overlayfs 1.3.0-2.module_el8.3.0+699+d61d9c41 fuse3 3.2.1-12.el8 gd 2.2.5-7.el8 gdb, gdb-headless 8.2-12.el8 git, git-core, git-core-doc, perl-Git 2.27.0-1.el8 glibc, glibc-common, glibc-devel, glibc-headers, … 2.28-127.el8 gnupg2, gnupg2-smime 2.2.20-2.el8 gnutls 3.6.14-7.el8_3 gpgme, python3-gpg 1.13.1-3.el8 grub2-common, grub2-pc, grub2-pc-modules, grub2-tools, … 1:2.02-90.el8 grubby 8.40-41.el8 gsettings-desktop-schemas 3.32.0-5.el8 gssproxy 0.8.0-16.el8 gtk-update-icon-cache 3.22.30-6.el8 hwdata 0.314-8.6.el8 hyperv-daemons, hyperv-daemons-license, hypervfcopyd, hypervkvpd, … 0-0.29.20180415git.el8 initscripts 10.00.9-1.el8 iproute 5.3.0-5.el8 iprutils 2.4.19-1.el8 iptables, iptables-ebtables, iptables-libs 1.8.4-15.el8_3.3 iscsi-initiator-utils, iscsi-initiator-utils-iscsiuio 6.2.0.878-5.gitd791ce0.el8 iwl100-firmware 39.31.5.1-101.el8_3.1 iwl1000-firmware 1:39.31.5.1-101.el8_3.1 iwl105-firmware, iwl135-firmware, iwl2000-firmware, iwl2030-firmware, … 18.168.6.1-101.el8_3.1 iwl3160-firmware, iwl7260-firmware 1:25.30.13.0-101.el8_3.1 iwl3945-firmware 15.32.2.9-101.el8_3.1 iwl4965-firmware 228.61.2.24-101.el8_3.1 iwl5000-firmware 8.83.5.1_1-101.el8_3.1 iwl5150-firmware 8.24.2.2-101.el8_3.1 iwl6000-firmware 9.221.4.1-101.el8_3.1 iwl6050-firmware 41.28.5.1-101.el8_3.1 java-1.8.0-openjdk-headless 1:1.8.0.275.b01-1.el8_3 jq 1.5-12.el8 kbd, kbd-legacy, kbd-misc 2.0.4-10.el8 kernel, kernel-core, kernel-devel, kernel-headers, … 4.18.0-240.10.1.el8_3 kexec-tools 2.0.20-34.el8_3.1 krb5-libs 1.18.2-5.el8 libarchive 3.3.2-9.el8 libbabeltrace 1.5.4-3.el8 libblkid, libfdisk, libmount, libsmartcols, … 2.32.1-24.el8 libblockdev, libblockdev-crypto, libblockdev-fs, libblockdev-loop, … 2.24-1.el8 libcap 2.26-4.el8 libdb, libdb-utils 5.3.28-39.el8 libdnf, python3-hawkey, python3-libdnf 0.48.0-5.el8 libdrm 2.4.101-1.el8 libffi 3.1-22.el8 libgcrypt 1.8.5-4.el8 libgs 9.25-7.el8 libkcapi, libkcapi-hmaccalc 1.2.0-2.el8 libldb 2.1.3-2.el8 libmaxminddb 1.2.0-10.el8 libmodulemd 2.9.4-2.el8 libmodulemd1 1.8.16-0.2.9.4.2 libnfsidmap, nfs-utils 1:2.3.3-35.el8 libpcap 14:1.9.1-4.el8 libpsl 0.20.2-6.el8 librepo, python3-librepo 1.12.0-2.el8 libreport-filesystem 2.9.5-15.el8 libreswan 3.32-7.el8_3 librsvg2 2.42.7-4.el8 libseccomp 2.4.3-1.el8 libselinux, libselinux-utils, python3-libselinux 2.9-4.el8_3 libsemanage, python3-libsemanage 2.9-3.el8 libslirp 4.3.1-1.module_el8.3.0+475+c50ce30b libsmbclient, libwbclient, samba-client, samba-client-libs, … 4.12.3-12.el8.3 libsolv 0.7.11-1.el8 libsoup 2.62.3-2.el8 libssh, libssh-config 0.9.4-2.el8 libsss_autofs, libsss_certmap, libsss_idmap, libsss_nss_idmap, … 2.3.0-9.el8 libtalloc 2.3.1-2.el8 libtdb 1.4.3-1.el8 libteam, teamd 1.31-2.el8 libtevent 0.10.2-2.el8 libtiff 4.0.9-18.el8 libudisks2, udisks2, udisks2-iscsi, udisks2-lvm2 2.9.0-3.el8 libusbx 1.0.23-4.el8 libXau, libXau-devel 1.0.9-3.el8 libXext 1.3.4-1.el8 libXft 2.3.3-1.el8 libXi 1.7.10-1.el8 libxml2, python3-libxml2 2.9.7-8.el8 libXmu 1.1.3-1.el8 libXrandr 1.5.2-1.el8 libxslt 1.1.32-5.el8 linux-firmware 20200619-101.git3890db36.el8_3 logrotate 3.14.0-4.el8 lshw B.02.19.2-2.el8 lvm2, lvm2-libs 8:2.03.09-5.el8 lz4-libs 1.8.3-2.el8 mdadm 4.1-14.el8 memstrack 0.1.11-1.el8 mesa-libEGL, mesa-libGL, mesa-libgbm, mesa-libglapi 20.1.4-1.el8 microcode_ctl 4:20200609-2.20210216.1.el8_3 mokutil 1:0.3.0-10.el8 nettle 3.4.1-2.el8 NetworkManager, NetworkManager-libnm, NetworkManager-team, NetworkManager-tui 1:1.26.0-12.el8_3 nftables, python3-nftables 1:0.9.3-16.el8 nss, nss-softokn, nss-softokn-freebl, nss-sysinit, … 3.53.1-17.el8_3 numactl-libs 2.0.12-11.el8 oniguruma 6.8.2-2.el8 open-vm-tools 11.1.0-2.el8 openldap, openldap-clients 2.4.46-15.el8 openscap, openscap-scanner 1.3.3-6.el8_3 openssh, openssh-clients, openssh-server 8.0p1-5.el8 openssl, openssl-libs 1:1.1.1g-12.el8_3 PackageKit, PackageKit-glib 1.1.12-6.el8 pam 1.3.1-11.el8 pciutils, pciutils-libs 3.6.4-2.el8 pcre2 10.32-2.el8 perl-IO-Socket-SSL 2.066-4.module_el8.3.0+410+ff426aa3 perl-Mozilla-CA 20160104-7.module_el8.3.0+416+dee7bcef perl-Net-SSLeay 1.88-1.module_el8.3.0+410+ff426aa3 platform-python-pip, python3-pip-wheel 9.0.3-18.el8 platform-python-setuptools, python3-setuptools-wheel 39.2.0-6.el8 platform-python, python3-libs 3.6.8-31.el8 plymouth, plymouth-core-libs, plymouth-scripts 0.9.4-7.20200615git1e36e30.el8 podman, podman-catatonit 2.2.1-7.module_el8.3.0+699+d61d9c41 procps-ng 3.3.15-3.el8 psmisc 23.1-5.el8 python-srpm-macros, python3-rpm-macros 3-39.el8 python3-gobject, python3-gobject-base 3.28.3-2.el8 python3-linux-procfs 0.6.2-2.el8 python3-pydbus 0.6.0-5.el8 python3-pyyaml 3.12-12.el8 python3-setools 4.3.0-2.el8 python3-unbound, unbound-libs 1.7.3-14.el8 qemu-guest-agent 15:4.2.0-34.module_el8.3.0+704+02c27f72.3 redhat-rpm-config 123-1.el8 python3-rpm, rpm, rpm-build, rpm-build-libs, … 4.14.3-4.el8 rsyslog 8.1911.0-6.el8 runc 1.0.0-70.rc92.module_el8.3.0+699+d61d9c41 scap-security-guide 0.1.50-16.el8_3 sed 4.5-2.el8 selinux-policy, selinux-policy-targeted 3.14.3-54.el8_3.2 setroubleshoot-plugins 3.3.13-1.el8 setroubleshoot-server 3.3.24-1.el8 setup 2.12.2-6.el8 shadow-utils 2:4.6-11.el8 slirp4netns 1.1.8-1.module_el8.3.0+699+d61d9c41 snappy 1.1.8-3.el8 sos 3.9.1-6.el8 sqlite-libs 3.26.0-11.el8 strace 5.1-1.el8 sudo 1.8.29-6.el8_3.1 systemd, systemd-libs, systemd-pam, systemd-udev 239-41.el8_3.1 systemtap, systemtap-client, systemtap-devel, systemtap-runtime 4.3-4.el8 tar 2:1.30-5.el8 tigervnc, tigervnc-icons, tigervnc-license 1.10.1-9.el8_3 tpm2-tools 4.1.1-1.el8 tpm2-tss 2.3.2-2.el8 tuned 2.14.0-3.el8_3.1 tzdata, tzdata-java 2021a-1.el8 valgrind, valgrind-devel 1:3.16.0-2.el8 vim-common, vim-enhanced, vim-filesystem, vim-minimal 2:8.0.1763-15.el8 wget 1.19.5-10.el8 xfsprogs 5.0.0-4.el8 xorg-x11-proto-devel 2020.1-3.el8 libzstd, zstd 1.4.4-1.el8 Link to comment Share on other sites More sharing options...
Luke 37112 Posted February 27, 2021 Share Posted February 27, 2021 Perhaps the filesystem but I'm honestly not sure. Link to comment Share on other sites More sharing options...
UCM_1 10 Posted February 28, 2021 Author Share Posted February 28, 2021 I was able to update everything EXCEPT the kernel packages. Anytime I updated that group, DVR recording fails.... (?!?) Packages: kernel, kernel-core, kernel-devel, kernel-headers, kernel-modules, kernel-tools, kernel-tools-libs 4.18.0-240.10.1.el8_3 Link to comment Share on other sites More sharing options...
Luke 37112 Posted February 28, 2021 Share Posted February 28, 2021 That's interesting, thanks for the info. Link to comment Share on other sites More sharing options...
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