Input/output error on NVidia Shield TV

My DVR stopped recording Friday afternoon (Pacific time); logs contain the following (note that job 1621040400-1 never completed); I had to power cycle the Shield to resume normal behavior:

2021/05/14 15:48:48.973569 [DVR] Waiting 2h11m11.026443378s until next job 1621040400-1 The Rachel Maddow Show
2021/05/14 18:00:00.047731 [DVR] Starting job 1621040400-1 The Rachel Maddow Show on ch=[6050]
2021/05/14 18:00:00.053210 [DVR] Waiting 29m59.946922735s until next job 1621042200-7 NBA Basketball
2021/05/14 18:30:00.020303 [MTS] Statistics for "TV/MLB Baseball/MLB Baseball San Francisco Giants at Pittsburgh Pirates 2021-05-14-1530.mpg": skipped=0 unhandled_packets=0 discontinuity_detected=0 transport_errors=0 invalid_pts=0 invalid_dts=0 saw_pcr=true saw_pmt=true highest_pts=878.469911
2021/05/14 18:30:00.023830 [DVR] Marking expired job 1621031400-8 MLB Baseball
2021/05/14 18:48:48.422391 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/14 18:49:04.324353 [DVR] Indexed 5582 airings into XMLTV-Pluto (321 channels over 26h45m0s) + 537 skipped [15s index]
2021/05/14 18:49:04.418079 [DVR] pruned 1474 replaced airings in 0s.
2021/05/14 18:49:04.460777 [IDX] Pruned 863 expired groups from XMLTV-Pluto in 42.515156ms.
2021/05/14 21:49:05.204791 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/14 21:49:21.376993 [DVR] Indexed 5564 airings into XMLTV-Pluto (320 channels over 25h30m0s) + 544 skipped [15s index]
2021/05/14 21:49:21.472139 [DVR] pruned 1474 replaced airings in 0s.
2021/05/14 21:49:21.561727 [IDX] Pruned 860 expired groups from XMLTV-Pluto in 89.218645ms.
2021/05/14 23:00:02.674131 [WRN] Commercial detection took longer than 8 hours, aborting...
2021/05/15 00:49:22.230212 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/15 00:49:43.076054 [DVR] Indexed 5573 airings into XMLTV-Pluto (320 channels over 28h30m0s) + 540 skipped [20s index]
2021/05/15 00:49:43.148002 [DVR] pruned 1450 replaced airings in 0s.
2021/05/15 00:49:43.191488 [IDX] Pruned 881 expired groups from XMLTV-Pluto in 43.322605ms.
2021/05/15 03:49:43.350478 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/15 03:50:04.048622 [DVR] Indexed 5596 airings into XMLTV-Pluto (320 channels over 31h30m0s) + 548 skipped [19s index]
2021/05/15 03:50:04.149097 [DVR] pruned 1441 replaced airings in 0s.
2021/05/15 03:50:04.262749 [IDX] Pruned 853 expired groups from XMLTV-Pluto in 113.463229ms.
2021/05/15 06:50:04.467356 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/15 06:50:23.931590 [DVR] Indexed 5081 airings into XMLTV-Pluto (320 channels over 34h30m0s) + 557 skipped [18s index]
2021/05/15 06:50:24.011288 [DVR] pruned 1462 replaced airings in 0s.
2021/05/15 06:50:24.050930 [IDX] Pruned 840 expired groups from XMLTV-Pluto in 39.488906ms.
2021/05/15 09:50:24.295520 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/15 09:50:46.314493 [DVR] Indexed 5575 airings into XMLTV-Pluto (321 channels over 26h30m0s) + 552 skipped [21s index]
2021/05/15 09:50:46.546432 [DVR] pruned 1517 replaced airings in 0s.
2021/05/15 09:50:46.619406 [IDX] Pruned 987 expired groups from XMLTV-Pluto in 72.810313ms.
2021/05/15 12:50:53.906921 [DVR] Fetched guide data for XMLTV-Pluto in 0s
2021/05/15 12:51:15.519319 [DVR] Indexed 5541 airings into XMLTV-Pluto (321 channels over 25h15m0s) + 555 skipped [20s index]
2021/05/15 12:51:15.644248 [DVR] pruned 1473 replaced airings in 0s.
2021/05/15 12:51:15.682209 [IDX] Pruned 814 expired groups from XMLTV-Pluto in 37.783489ms.
2021/05/15 12:56:00.853045 [DVR] Commercial detection failed for Deadline White House S2021E95 2021-05-14-1300.mpg with signal: killed
2021/05/15 12:58:42.118237 [M3U8] Generator: consecutive_errors=5 err=cannot create temp file: open /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Streaming/m3u8/93/stream.m3u8097746171: input/output error
2021/05/15 13:13:45.280575 [ERR] Could not create backup: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Database/backup-20210515.125528: input/output error
2021/05/15 13:16:26.560452 [ERR] Failed to start stream on channel 6050 via TVE-Hulu: TVE: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Streaming/channels-cache-989598598: input/output error
2021/05/15 13:16:26.560738 [DVR] Starting job 1621042200-7 NBA Basketball on ch=[6167 6140]
2021/05/15 13:16:26.560796 [DVR] Marking expired job 1621044000-2 The Last Word With Lawrence O'Donnell
2021/05/15 13:16:26.560956 [DVR] Error running job 1621042200-7 NBA Basketball: no time left: -16h16m26.560900259s
2021/05/15 13:16:26.578947 [DVR] Marking expired job 1621060490-11 The Late Show With Stephen Colbert
2021/05/15 13:16:26.584622 [DVR] Waiting 2h13m33.415391303s until next job 1621117800-8 MLB Baseball
2021/05/15 13:16:26.593074 [DVR] Marking expired job 1621040400-1 The Rachel Maddow Show
2021/05/15 13:16:26.598866 [DVR] Waiting 2h13m33.401141668s until next job 1621117800-8 MLB Baseball
2021/05/15 13:16:27.589066 [DVR] Waiting 2h13m32.410943439s until next job 1621117800-8 MLB Baseball
2021/05/15 13:16:58.816367 [DVR] Error running job 1621040400-1 The Rachel Maddow Show: could not start stream on channels=[6050]: TVE: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Streaming/channels-cache-989598598: input/output error
2021/05/15 13:16:59.832125 [DVR] Waiting 2h13m0.167885691s until next job 1621117800-8 MLB Baseball
2021/05/15 13:17:31.072121 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Morning Joe/Morning Joe S2021E95 2021-05-13-0300.mpg
2021/05/15 13:31:34.592210 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/The Rachel Maddow Show/The Rachel Maddow Show S2021E90 2021-05-06-1800.mpg
2021/05/15 13:33:14.364504 [TNR] Closed connection to TVE-Hulu for ch6167 NBCSN-BAYAREA
2021/05/15 13:43:24.224441 [DVR] Finished job 1621031400-8 MLB Baseball
2021/05/15 13:43:24.241410 [DVR] Waiting 1h46m35.758599941s until next job 1621117800-8 MLB Baseball
2021/05/15 14:01:40.932215 [ERR] Could not create backup: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Database/backup-20210515.135755: input/output error
2021/05/15 14:01:40.933256 [DVR] Processing file-93: TV/MLB Baseball/MLB Baseball San Francisco Giants at Pittsburgh Pirates 2021-05-14-1530.mpg
2021/05/15 14:02:45.961381 [ERR] Could not probe file 93: exit status 1
2021/05/15 14:06:32.000191 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Deadline White House/Deadline White House S2021E94 2021-05-13-1300.mpg
2021/05/15 14:07:04.257467 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Morning Joe/Morning Joe S2021E95 2021-05-13-0300.mpg
2021/05/15 14:07:36.539529 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/The Rachel Maddow Show/The Rachel Maddow Show S2021E90 2021-05-06-1800.mpg
2021/05/15 14:13:25.957107 [DVR] Commercial detection failed for MLB Baseball San Francisco Giants at Pittsburgh Pirates 2021-05-14-1530.mpg with mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Logs/comskip/93: input/output error
2021/05/15 14:17:11.744448 [ERR] Could not create backup: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Database/backup-20210515.141116: input/output error
2021/05/15 14:17:11.756625 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Deadline White House/Deadline White House S2021E94 2021-05-13-1300.mpg
2021/05/15 14:17:11.757720 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Morning Joe/Morning Joe S2021E95 2021-05-13-0300.mpg
2021/05/15 14:17:11.778341 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/The Rachel Maddow Show/The Rachel Maddow Show S2021E90 2021-05-06-1800.mpg
2021/05/15 14:20:57.536459 [ERR] Could not create backup: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Database/backup-20210515.141711: input/output error
2021/05/15 14:20:57.549274 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Deadline White House/Deadline White House S2021E94 2021-05-13-1300.mpg
2021/05/15 14:20:57.550340 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/Morning Joe/Morning Joe S2021E95 2021-05-13-0300.mpg
2021/05/15 14:20:57.571455 [DVR] Deleting /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/TV/The Rachel Maddow Show/The Rachel Maddow Show S2021E90 2021-05-06-1800.mpg
2021/05/15 14:24:43.328452 [ERR] Could not create backup: mkdir /storage/62F0DDB6F0DD90A1/NVIDIA_SHIELD/DVR/Database/backup-20210515.142057: input/output error

Indicates failing hard drive or file system. First step would be to reboot or reattach the drive

Thanks for the prompt followup. I did find some posts on Shield TV support suggesting a few config tweaks to bypass any "energy saving" functionality which could be causing the drive (Seagate Backup Plus 5TB) to unmount: https://www.nvidia.com/en-us/geforce/forums/shield-tv/9/269566/usb-hard-drive-becomes-unavailable-within-a-day/

1 Like

This appears to have happened again (although no ioerr reported in logs and I haven't yet installed SeaChest to disable any energy saving settings in the fw); I did however notice that it appeared to happen during commercial detection and upon closer inspection am noticing long run times for commercial detection; e.g.:

2021/05/19 07:19:06.533830 [DVR] Commercial detection for Morning Joe S2021E99 2021-05-19-0300.mpg finished with 16 markers in 1h19m3.066204076s.

Is this expected? I assume this is an I/O intensive task?

Edit: in the meantime, with SeaChest I have determined that APM was enabled and have subsequently tried to disable it via:

.\SeaChest_PowerControl_x64_windows.exe -d PD1 --disableAPM
==========================================================================================
SeaChest_PowerControl - Seagate drive utilities - NVMe Enabled
Copyright (c) 2014-2021 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
SeaChest_PowerControl Version: 3.0.2-2_2_1 X86_64
Build Date: Apr 27 2021
Today: Wed May 19 11:43:54 2021 User: XXXX (admin)
==========================================================================================

\.\PhysicalDrive1 - BUP Portable - 00000000NABANS7E - ATA
Successfully disabled APM feature!

HOWEVER, I can't figure out how to persist this setting (after I unmount/remount, it is enabled again)--any ideas?

I did also determine that the default is standby mode disabled:

.\SeaChest_PowerControl_x64_windows.exe -d PD1 --showAPMLevel
==========================================================================================
SeaChest_PowerControl - Seagate drive utilities - NVMe Enabled
Copyright (c) 2014-2021 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
SeaChest_PowerControl Version: 3.0.2-2_2_1 X86_64
Build Date: Apr 27 2021
Today: Wed May 19 11:56:56 2021 User: maj (admin)
==========================================================================================

\.\PhysicalDrive1 - BUP Portable - 00000000NABANS7E - ATA
Current APM Level is 128 (Minimum power consumption without Standby mode)

You need to figure out how to do that on the Shield it's plugged into.
The drive power management is handled by the host OS.

In Windows 10 I have to use its POWERCFG utility, changing the POWER_SCHEME>SUB_DISK>DISKIDLE parameter.
There I use POWERCFG /CHANGE disk-timeout-ac 0 to disable drive standby/powerdown.

If I unplug the drive from the Windows 10 host and plug it into some other host, that other host controls its power management.

I'm not sure if there's an equivelent command to handle power management for an Nvidia Shield (I don't use one).

There are no ARM builds of SeaChest.

Are there better choices for USB storage (are any WD drives known to work out of box on Shield TV without hacks/changes)? While it would have been better to know beforehand (I bought this drive specifically for Channels), if the safest option is to spend $100 on different hardware then I can do that.

There has to be an Android APP to keep external Storage from going to sleep... Also have you gone into developer options and enabled stay awake on the shield.?