linuxserver / docker-tvheadend

GNU General Public License v3.0
168 stars 90 forks source link

[BUG] External NFS Volume with Stale File Error #216

Closed rubenkr closed 1 year ago

rubenkr commented 1 year ago

Is there an existing issue for this?

Current Behavior

➜ tvheadend-compose docker --version Docker version 20.10.23, build 715524332f

cat /etc/fstab on CLIENT with Docker TVHeadend 10.0.0.56:/srv/nfs/storage /storage nfs4 defaults,timeo=900,retrans=5,lookupcache=none,_netdev 0 0

cat /etc/exports on SERVER (10.0.0.56) /srv/nfs/storage *(rw,fsid=1000,sync,all_squash,anonuid=1000,anongid=1000,insecure)

Try to access mounted NFS volume root@T450:/# cd /recordings /bin/ash: cd: can't cd to /recordings: Stale file handle

Expected Behavior

Very strange that for this image local NFS mounting is not working as stale file error occurs

Steps To Reproduce

  1. Mount NFS remote share to /storage (see above)
  2. Run Tvheadend latest docker image with mounted /storage path
  3. Directory /storage is accessibale inside docker Tvheadend for ~10sec
  4. After so time stale file error occurs

Environment

- OS:
- How docker service was installed:
sudo pacman -S docker

➜  tvheadend-compose uname -a
Linux T450 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux

                  .o+`                 plex@T450
                 `ooo/                 OS: Arch Linux
                `+oooo:                Kernel: x86_64 Linux 6.1.8-arch1-1
               `+oooooo:               Uptime: 7d 4h 52m
               -+oooooo+:              Packages: 1025
             `/:-:++oooo+:             Shell: zsh 5.9
            `/++++/+++++++:            Disk: 24T / 34T (71%)
           `/++++++++++++++:           CPU: Intel Core i5-5300U @ 4x 2.9GHz [74.0°C]
          `/+++ooooooooooooo/`         GPU: Intel Corporation HD Graphics 5500 (rev 09)
         ./ooosssso++osssssso+`        RAM: 8847MiB / 19708MiB

CPU architecture

x86-64

Docker creation

➜  tvheadend-compose cat docker-compose.yaml

---
version: "2.1"
services:
  tvheadend:
    image: lscr.io/linuxserver/tvheadend:latest
    container_name: tvheadend
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - RUN_OPTS=--satip_xml http://10.0.0.254:8080/desc.xml
    volumes:
      - /opt/docker_volumes/tvheadend:/config
      - /storage/007__BACKUPS/01__iptv-recordings:/recordings
    network_mode: "host"
        #    ports:
        #      - 9981:9981
        #      - 9982:9982
    devices:
      - /dev/dri:/dev/dri #optional
    restart: unless-stopped

### Container logs

```bash
N/A only not relevant output (e.g. epgrab visible)
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity