Thanks for replying back.
I believe those nfo files were originally created by kodi before I’ve used MySQL as a library, but i might’ve been mistaken. Anywhere, here is a preview of NCIS Los Angeles S09E07 The Silo.nfo
:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<episodedetails>
<title>The Silo</title>
<showtitle>NCIS: Los Angeles</showtitle>
<userrating>0</userrating>
<top250>0</top250>
<season>9</season>
<episode>7</episode>
<displayseason>-1</displayseason>
<displayepisode>-1</displayepisode>
<outline></outline>
<plot>Kensi is transported to a missile launch facility to help thwart a takeover of nuclear weapons.</plot>
<tagline></tagline>
<runtime>0</runtime>
<thumb>http://image.tmdb.org/t/p/original/eQMa3q3ImR2Wq6FYaAn4lCqMjlJ.jpg</thumb>
<thumb>http://image.tmdb.org/t/p/original/udetJzp3wxIHXTjWeh3akcFgs8P.jpg</thumb>
<mpaa>TV-14</mpaa>
<playcount>1</playcount>
<lastplayed>2020-04-12</lastplayed>
<id>1392500</id>
...
Let’s try to narrow it down since i can replicate this issue to a single TV Show that doesn’t contain any extra .nfo files. TV Show in question: 30 Rock (2006).
I’ve used linux ‘find’ to locate any nfo files and it found only ‘tvshow.nfo’ that is generated by sonarr:
root@sonarr:/var/lib/sonarr/logs# find /tvshows/30\ Rock\ \(2006\)\ Season\ 1-7\ S01-S07\ \(1080p\ AMZN\ WEBRip\ x265\ HEVC\ 10bit\ AAC\ 5.1\ Silence\)/ -iname '*.nfo'
/tvshows/30 Rock (2006) Season 1-7 S01-S07 (1080p AMZN WEBRip x265 HEVC 10bit AAC 5.1 Silence)/tvshow.nfo
- I’ve removed the .nfo nonetheless.
- I’ve set “Rescan Series Folder after Refresh” to “After Manual Refresh”
- Stopped sonarr
- Removed all logs
- Started sonarr
- Clicked on Refresh button for series 30 Rock
- It got stuck in task “Refresh Series”, nothing (appears to be) useful in log files.
New log files here:
sonarr.debug.txt
sonarr.trace.txt
sonarr.txt
I mean sure, rescan does appear to be completed but back when it had more than 3 TV Shows to scan it gets stuck and never proceeds further.
I got all the TV Shows scanned only after many, many service restarts.
But the stuck task when it happens on a regular/scheduled trigger will cause other tasks to stall.
Some environment info beside what’s mentioned in original thread:
- Sonarr is running as root (but originally tried to run it as same owner:group as where TV Shows are originally located)
- TV Shows are mounted using NFS Share in fstab entry:
<ip address>:/mnt/2TB/media/Serije /tvshows nfs nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10s
- Original TV Shows owner:group is 1000:1001
- Sonarr can create new files and folders in /tvshows
Feel free to ask any questions that may interest you.