Kodi choking on nfs share: ERROR: Read – Error( -5, nfs_service failed )

Sorry for the bad title. Here’s what going on:

Kodi will periodically be unable to connect to just one of the multiple nfs shares on the box that it’s running on.

I’ve got Kodi running on an Ubuntu 16.04.1 box. I have an external usb drive shared over the network from the same box.

All my tv shows are in /mnt/Main/New_TV and the Kodi source I have added is nfs://192.168.1.100/mnt/Main/New_TV so that other kodi installs can see the files from the shared db.

Sometimes I’ll go to play a tv show and it will be unable to find it. I try to browse to the nfs share in Kodi and it will be able to go into all the other shares (ie. nfs://192.168.1.100/mnt/Main/Movies) with the sole exception of /mnt/Main/New_TV. And so far, every time I do this, Kodi crashes a minute or so later, and the nfs share is available again.

Here’s a snippet from kodi.old.log from just before kodi restarts

Code:
07:14:15 T:140175241897728   ERROR: Read - Error( -5, nfs_service failed )
07:14:17 T:140175241897728   ERROR: Previous line repeats 8 times.
07:14:17 T:140175241897728 WARNING: error while seeking
07:14:17 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
07:14:17 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
07:14:19 T:140175241897728  NOTICE: Previous line repeats 3 times.
07:14:19 T:140175241897728   ERROR: Read - Error( -5, nfs_service failed )
07:14:19 T:140175241897728   ERROR: Previous line repeats 3 times.
07:14:19 T:140175241897728 WARNING: error while seeking
07:14:19 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
07:14:19 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
07:14:19 T:140172482041600  NOTICE: Previous line repeats 3 times.
07:14:19 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
07:14:21 T:140175241897728   ERROR: Read - Error( -5, nfs_service failed )
07:14:21 T:140175241897728   ERROR: Previous line repeats 3 times.
07:14:21 T:140175241897728 WARNING: error while seeking
07:14:21 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
07:14:21 T:140172482041600  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
07:14:23 T:140172482041600  NOTICE: Previous line repeats 3 times.
07:14:23 T:140172482041600 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
07:14:23 T:140172990588672 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
07:14:23 T:140175241897728  NOTICE: CDVDPlayer::OnExit()
07:14:23 T:140175241897728  NOTICE: DVDPlayer: eof, waiting for queues to empty
07:14:23 T:140175241897728  NOTICE: Closing stream player 1
07:14:23 T:140175241897728  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
07:14:23 T:140175241897728   ERROR: CDVDMsgGeneralSynchronize - timeout
07:14:23 T:140175241897728  NOTICE: Waiting for audio thread to exit
07:14:23 T:140172482041600  NOTICE: thread end: CDVDPlayerAudio::OnExit()
07:14:23 T:140175241897728  NOTICE: Closing audio device
07:14:23 T:140175241897728  NOTICE: Deleting audio codec
07:14:23 T:140175241897728  NOTICE: Closing stream player 2
07:14:23 T:140175241897728  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
07:14:23 T:140175241897728  NOTICE: waiting for video thread to exit
07:14:23 T:140172990588672   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
07:14:23 T:140172990588672  NOTICE: thread end: video_thread
07:14:23 T:140175241897728  NOTICE: deleting video codec
07:14:23 T:140176310909248  NOTICE: CDVDPlayer::CloseFile()
07:14:23 T:140176310909248  NOTICE: DVDPlayer: waiting for threads to exit
07:14:23 T:140176310909248  NOTICE: DVDPlayer: finished waiting
07:14:23 T:140176310909248  NOTICE: CDVDPlayer::CloseFile()
07:14:23 T:140176310909248  NOTICE: DVDPlayer: waiting for threads to exit
07:14:23 T:140176310909248  NOTICE: DVDPlayer: finished waiting
07:14:23 T:140175823058688  NOTICE: PulseAudio: Opened device alsa_output.pci-0000_00_1b.0.iec958-stereo in pcm mode with Buffersize 150 ms
07:14:33 T:140174663063296   ERROR: InputStream: Error opening, nfs://192.168.1.100/mnt/Main/New_TV/The Grand Tour/The Grand Tour - S01E03 - Opera, Arts, and Donuts aka The Return Home - 720P WEBRIP H264.mkv
07:14:33 T:140171290867456   ERROR: InputStream: Error opening, nfs://192.168.1.100/mnt/Main/New_TV/Life in Pieces/Life in Pieces - S02E06 - Boxing Opinion Spider Beard - HDTV H264.mkv
07:14:42 T:140174562641664   ERROR: Unable to lookup host: ''
07:14:48 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:14:48 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:14:48 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:15:15 T:140174562641664   ERROR: Unable to lookup host: ''
07:15:23 T:140174663063296   ERROR: Failed to open(//) nfs_service failed
07:15:23 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:15:23 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:15:26 T:140174663063296   ERROR: Unable to lookup host: ''
07:16:20 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:16:20 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:16:20 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:16:24 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:16:24 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:16:24 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:16:27 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:16:27 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:16:27 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:16:55 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:16:55 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:16:55 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:16:59 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:16:59 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:16:59 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:17:01 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:17:01 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:17:01 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:17:02 T:140171290867456   ERROR: Unable to lookup host: ''
07:17:07 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:17:07 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:17:07 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:17:09 T:140171290867456   ERROR: Failed to open(//) nfs_service failed
07:17:09 T:140176310909248   ERROR: GetDirectory - Error getting nfs://192.168.1.100/mnt/Main/New_TV/
07:17:09 T:140176310909248   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.100/mnt/Main/New_TV/) failed
07:18:43 T:140176310909248  NOTICE: NFS is idle. Closing the remaining connections.