Closed Roshri closed 10 months ago
You need to look into Plex media scanner logs for crash errors
I didn't add code for anidb4 and to be honest don't understand the point of it, so will not answer that point.
You are showing on a bug report for the scanner:
Token if not working
Title for search function missing bracket co tent as if ASS wasn't the scanner...Are you 100% sure ASS in showing as scanner in your library currently?
Yup, library shows ASS as the scanner Plex Media Scanner.log Plex Media Scanner.1.log
I'm aware I'm missing per series logs but I'm also unable to generate or locate them at the moment, which is really worrisome as I don't know how to troubleshoot that part.
AFAIK to get the per series agent logs I only need to create the X-Plex-Token.id
file at the root of my Plex data folder right?
If no scanner logs, then it crashed and left logs in the Plex scanner logs:
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\genericpath.py", line 57, in getsize return os.stat(filename).st_size WindowsError: (3, 'The system cannot find the path specified', 'V:\Anime\Shin Kimagure Orange Road Soshite, Ano Natsu no Hajimari\Shin Kimagure Orange Road (1996) (DVDRip 720x480p x265 HEVC AC3 2.0)[sxales]\Shin Kimagure Orange Road Soshite, Ano Natsu no Hajimari (1996) - TV Spot Collection (DVDRip 720x480p x265 HEVC AC3 2.0)[sxales].mkv')
Why cannot your OS find that file? Path length issue seemingly... Try to enable long dos path in registry
Since scanner crashed, need to change folder content to rescan or do the Plex dance ..
Fixed the problem file and then it created the log for that particular movie, but after doing a Plex dance a couple of times, the rest of the new folders haven't created new log files. Multiple series are affected by this. Apart from Highschool DxD, Akebi-chan no Sailor Fuku is also affected, for example.
Bumping this because I think it's related to a similar or the same problem I'm having — anidb4
doesn't produce any logs and the series are sorted like anidb1
.
During my research of a different issue here, I noticed that if Python crashes, the log file doesn't generate, and thus I believe the problem here also lies in a silent crash / bug in the code for anidb3
and anidb4
. I'm currently looking over it to see if I can find anything...
if it doesn't create logs, it probably crashed bad but do not know where to start, and further series will not be added Logs show nothing actionnable/. The only way to proceed would be to comment all tvdb4 section of the code lines 790-807, and see if it works, then narrow down by replacing the except else part with "pass", then output somethign that doesn't crash...
#tvdb4 - Absolute numbering in any season arrangements aka saga mode
elif source=='tvdb4' and folder_season==None: #1-folders nothing to do, 2-local, 3-online
try:
file_fullpath = os.path.join(root, path, "tvdb4.mapping")
if os.path.isfile(file_fullpath):
tvdb4_mapping_content = read_file(file_fullpath).strip()
Log.info(u"TVDB season mode (%s) enabled, tvdb4 mapping file: '%s'" % (id, file_fullpath))
else:
tvdb4_mapping_content = etree.fromstring(read_cached_url(ASS_MAPPING_URL).strip()).xpath("/tvdb4entries/anime[@tvdbid='%s']" % id)[0].text.strip()
Log.info(u"TVDB season mode (%s) enabled, tvdb4 mapping url: '%s'" % (id, ASS_MAPPING_URL))
for line in filter(None, tvdb4_mapping_content.splitlines()):
season = line.strip().split("|")
for absolute_episode in range(int(season[1]), int(season[2])+1): tvdb_mapping[absolute_episode] = (int(season[0]), int(absolute_episode))
if "(unknown length)" in season[3].lower(): unknown_series_length = True
except Exception as e:
tvdb_mapping = {}
if str(e) == "list index out of range": Log.error("tvdbid: '%s' not found in online season mapping file" % id)
else: Log.error("Error opening tvdb4 mapping, Exception: '%s'" % e)
Any update ?
Any update ?
Any update ? This seem to crash on tvdb4 alone, so if you remove the tvdb4 part of the code and it doesn't crash, i know the issue is in there, but it is extremely difficult to resolve something not creating any logs...
Once it crashes, all other series won't be scanned, so it should be one of the series not scanning
As mentioned in issue #476 it seems the problem was the really old agent taking precedence, just tried on a new library with anidb4
I tried testing anidb4 with series I haven't yet added to my plex library, but those seem to be added as plain anidb. Series in question is Highschool DxD and all subsequent seasons and OVAs
Deleted from the library, did a rescan, emptied trash, moved directories back, rescan, still picked up as anidb.
Tried looking for the per-series logs but those haven't been created at all. Double checked and updated Plex Token just in case. Still no logs for new series. Issue seems to have started around New Years, because I just noticed no series added in January have per-series logs in the folder
The folders have this structure
Platform
Operating system and version: Win 10 Plex version: 1.25.3.5409
Expected Behavior
Add a series with anidb4 keys and have them mapped into a single series with multiple seasons
Current Behavior
Series fallback to anidb1
Steps to Reproduce
root.agent.log
root.agent.log
_unknown_folder.agent-search.log _unknown_folder.agent-update.log Plex Media Scanner (custom ASS) - filelist .log