Unraid / Docker Import deletes but doesn't move

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
User avatar
oldirtdog
Posts: 61
Joined: Fri Nov 04, 2016 7:52 pm

Unraid / Docker Import deletes but doesn't move

Post by oldirtdog »

I'm using Mylar (but have also tested with Mylar3) in Docker on Unraid. For some reason, whenever you go through an import, it doesn't put the comic files in the newly created folder. It actually creates new folders in the Comics folder and deletes it from my imports folder. However, I go into the folder and it never puts the files in there. If I manually put the file in and recheck, it works fine. It's very strange. Here's the log for the latest import:

2021-02-22 15:58:45 INFO [IMPORT] Import completed.
2021-02-22 15:58:45 INFO Successfully imported : King In Black: Immortal Hulk
2021-02-22 15:58:45 INFO [FILE-RESCAN] I have physically found 1 issues, ignored 0 issues, snatched 0 issues, and accounted for 0 in an Archived state [ Total Issue Count: 1 / 1 ]
2021-02-22 15:58:45 INFO [FILE-RESCAN] Total files located: 1
2021-02-22 15:58:45 INFO there are 1 files.
2021-02-22 15:58:45 INFO [FILE-RESCAN] Now checking files for King In Black: Immortal Hulk (2020) in /comics/King In Black Immortal Hulk (2020)
2021-02-22 15:58:45 INFO files_moved: [{'srid': '428914', 'filename': 'King in Black - Immortal Hulk #1 (2021).cbr', 'import_id': '92289878'}, {'srid': '428914', 'filename': '._King in Black - Immortal Hulk #1 (2021).cbr', 'import_id': '19007922'}]
2021-02-22 15:58:45 INFO moving /comics/Imports/._King in Black - Immortal Hulk #1 (2021).cbr ... to /comics/King In Black Immortal Hulk (2020)/King In Black Immortal Hulk 1 (2021).cbr
2021-02-22 15:58:45 INFO moving /comics/Imports/King in Black - Immortal Hulk #1 (2021).cbr ... to /comics/King In Black Immortal Hulk (2020)/King In Black Immortal Hulk 1 (2021).cbr
2021-02-22 15:58:45 INFO Mass import - Move files
2021-02-22 15:58:45 INFO Updating complete for: King In Black: Immortal Hulk
2021-02-22 15:58:45 INFO Now adding/updating issues for King In Black: Immortal Hulk
2021-02-22 15:58:40 INFO Sucessfully retrieved issue details for King In Black: Immortal Hulk
2021-02-22 15:58:38 INFO Attempting to retrieve the comic image for series
2021-02-22 15:58:36 INFO [DIRECTORY-CHECK] Creating comic directory (0777) : /comics/King In Black Immortal Hulk (2020)
2021-02-22 15:58:36 WARNING [DIRECTORY-CHECK] Could not find comic directory: /comics/King In Black Immortal Hulk (2020)
2021-02-22 15:58:36 INFO Previous version detected as None - seeing if update required
2021-02-22 15:58:36 INFO Sucessfully retrieved details for King In Black: Immortal Hulk
2021-02-22 15:58:36 INFO Now adding/updating: King In Black: Immortal Hulk
2021-02-22 15:58:33 INFO Attempting to add directly by ComicVineID: 132632
2021-02-22 15:58:33 INFO [IMPORT] Now adding King in Black - Immortal Hulk...
2021-02-22 15:58:33 INFO [IMPORT] There is only one result...automagik-mode enabled for King In Black: Immortal Hulk :: 132632
2021-02-22 15:58:30 INFO [IMPORT][King in Black - Immortal Hulk] Now preparing to import. First I need to determine the highest issue, and possible year(s) of the series.
2021-02-22 15:58:16 INFO Successfully scanned in directory. Enabling the importResults button now.
User avatar
oldirtdog
Posts: 61
Joined: Fri Nov 04, 2016 7:52 pm

Re: Unraid / Docker Import deletes but doesn't move

Post by oldirtdog »

*bump*... sorry
User avatar
evilhero
Site Admin
Posts: 2729
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Unraid / Docker Import deletes but doesn't move

Post by evilhero »

More of a question, why do you have:

Code: Select all

2021-02-22 15:58:45 INFO moving /comics/Imports/._King in Black - Immortal Hulk #1 (2021).cbr ... to /comics/King In Black Immortal Hulk (2020)/King In Black Immortal Hulk 1 (2021).cbr
2021-02-22 15:58:45 INFO moving /comics/Imports/King in Black - Immortal Hulk #1 (2021).cbr ... to /comics/King In Black Immortal Hulk (2020)/King In Black Immortal Hulk 1 (2021).cbr
The first move moves the file to the proper location, the 2nd move hammers the first one with whatever the ._King in Black - Immortal Hulk #1 (2021).cbr is. If the second file is of a 0 filesize, it just obliterates it with nothing.

It also states in the logs that:

Code: Select all

 INFO [FILE-RESCAN] I have physically found 1 issues, ignored 0 issues, snatched 0 issues, and accounted for 0 in an Archived state [ Total Issue Count: 1 / 1 ]
So it's picking up the file in the scan - if your directory listing isn't showing it - I dunno what is going on with your filesystem then (unless it's hidden due to the . preceding the filename).

The import process is a mess - I honestly just want to remove the entire Import section and just be done with it. I have a recode of it partially done, but it's nowhere near being ready for prime-time given how many problems users generally have with doing an import - which makes me not want to release it even more until it's been more thoroughly tested.

Your best bet is to clear the import cache via the GUI option in the Import Results Management section - and do a fresh import. But make sure you have debug logs enabled first (if you're unsure how to enable them, check here), and then generate a carepackage and share the link to it so that we can view the carepackage and see what's happening.
User avatar
oldirtdog
Posts: 61
Joined: Fri Nov 04, 2016 7:52 pm

Re: Unraid / Docker Import deletes but doesn't move

Post by oldirtdog »

Thanks man... I'll take a look at that... it might be due to that weird . file... I never paid any attention to that... if it doesn't work next time, I'll generate the care package and send it along... the rest of the app works so well, but you're right, it seems like the import process is the one that generates the most user issues... I'm hoping one day to move over to Mylar3, but in my tests, it did the same thing... which points more to the file system issue, if I'm being honest...
Post Reply