Project

General

Profile

Cannot Record - Recording always removed with file missing

Added by Mindriot . over 5 years ago

Hi folks, first post.

Ive used TVH for years first in a single box PC with openelec, then with Libreelec on a NUC.

Ive decided to run a Nvidia shield and use my Clearos homeserver to set up tvheadend.

The homeserver is set up with Clearos 6 (Centos 7), a boot SSD, a spare SSD as a store drive and 2x Raid 1 pairs for /home and /flexshares.

Its a mitx AMD quad core setup (A12 iirc) with 16gb DDR3, its more than capable on the hardware side its barely having to put any effort in as a home server and internet gateway as it is, it should cope with what its doing, plus tvh, and eventually plus even zoneminder.

Ive run clearos home servers for many years its running flawlessly other than this issue.

I got TVH installed via yum from official sources and I "think" the supporting packages needed, TVH is 4.2.6-7~g5613551.el7.centos.

After some hassles getting logged in Ive got it all running happy with a networked DVB-T2 Silicondust HDHomerun Quad.

Configure arguments:
  --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-lockowner --enable-ffmpeg_static --enable-libx265

Compiler:
  Using C compiler:                        ccache cc
  Using C flags:                           -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic
  Using LD flags:                          -Wl,-z,relro 
  Build for arch:                          x86_64

Binaries:
  Using PYTHON:                            python
  Using GZIP:                              gzip
  Using BZIP2:                             bzip2

Options:
  pie                                      yes
  ccdebug                                  no
  cwc                                      yes
  capmt                                    yes
  constcw                                  yes
  linuxdvb                                 yes
  satip_server                             yes
  satip_client                             yes
  hdhomerun_client                         yes
  hdhomerun_static                         yes
  iptv                                     yes
  tsfile                                   yes
  dvbscan                                  yes
  timeshift                                yes
  trace                                    yes
  imagecache                               yes
  avahi                                    yes
  zlib                                     yes
  libav                                    yes
  ffmpeg_static                            yes
  libx264                                  yes
  libx264_static                           yes
  libx265                                  yes
  libx265_static                           yes
  libvpx                                   yes
  libvpx_static                            yes
  libtheora                                yes
  libtheora_static                         yes
  libvorbis                                yes
  libvorbis_static                         yes
  libfdkaac                                yes
  libfdkaac_static                         yes
  nvenc                                    yes
  qsv                                      no
  libmfx_static                            no
  inotify                                  yes
  epoll                                    yes
  uriparser                                yes
  ccache                                   yes
  tvhcsa                                   yes
  bundle                                   no
  pngquant                                 no
  dvbcsa                                   no
  dvben50221                               no
  kqueue                                   no
  dbus_1                                   yes
  android                                  no
  tsdebug                                  no
  gtimer_check                             no
  slow_memoryinfo                          no
  libsystemd_daemon                        no
  bintray_cache                            yes
  execinfo                                 yes
  mmx                                      yes
  sse2                                     yes
  W_unused_result                          yes
  getloadavg                               yes
  atomic32                                 yes
  atomic64                                 yes
  atomic_time_t                            yes
  bitops64                                 yes
  lockowner                                yes
  qsort_r                                  yes
  stime                                    yes
  gmtoff                                   yes
  recvmmsg                                 yes
  sendmmsg                                 yes
  ifnames                                  yes
  py_gzip                                  yes
  bin_pkg_config                           yes
  bin_xgettext                             yes
  bin_msgmerge                             yes
  bin_gzip                                 yes
  bin_bzip2                                yes
  ssl                                      yes
  linuxdvbapi                              yes
  upnp                                     yes
  bin_cmake                                yes
  stdcpp                                   yes
  libogg_static                            yes
  inotify_h                                yes
  inotify_init1                            yes
  epoll_create1                            yes
  mpegts                                   yes
  mpegts_dvb                               yes

Packages:
  openssl                                  1.0.2k
  zlib                                     1.2.7
  liburiparser                             0.7.5
  avahi-client                             0.6.31
  dbus-1                                   1.6.12

Installation paths:
  Prefix:                                  /usr
  Binaries:                                /usr/bin
  Libraries:                               /usr/lib64
  Data files:                              /usr/share
  Man pages:                               /usr/share/man

Apart from recording everything works as it should for kodi etc on the network, the shield etc.

I see cannot stat file in dmesg logs no matter what I try, and file not found or file not created in recording fails, that are almost always moved straight to removed recordings.

I have tried using the store SSD as recording target, its mounted at boot with fstab, it and its subdir are chowned hts:hts and no variation of chmod helps, eg either 0666, 0777 or anything else.

I also tried a recording dir in /home/hts (on one of the Raid 1), again with the same permissions and ownership.

TVH starts as a service at boot using hts user ID and hts group.

Im out of ideas at this point and its frustrating, Im really hoping someone can help me here, I love using TVH and there really isnt any other suitable option either.

I had hoped to target a storage location for recording on the othe flexshares raid array but Ill settle for any target that works bar the root/boot drive right now!


Replies (3)

RE: Cannot Record - Recording always removed with file missing - Added by Hiro Protagonist over 5 years ago

It's very hard to answer your question because you haven't provided useful information.

What is your configured recording path?
What does your fstab look like?
What does "I see cannot stat file in dmesg logs no matter what I try" mean - be explicit, what exactly is it you're trying to do with what file? If you're seeing relevant errors in dmesg, post them here.

RE: Cannot Record - Recording always removed with file missing - Added by M A Ben Amara over 5 years ago

the cannot stat file comes if the record is gone, in your case when u didnt move the recording its probably a permission issue for tvheadend to write the file,
there should also be some entries in the log ... goto the webui, start a record, open the debug in the button ...

as start, go into your tvh mashine, login as your tvh user and try if you can access your recording path, try if you can mkdir and touch ...
if there are errors, relogin as root and chmod ..

    (1-3/3)