Mylar/SABNzbd - Permission errors

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Mylar/SABNzbd - Permission errors

Post by summerside »

Hi Everyone...

Though I would start here first. I am having permission errors with Mylar during the post processing and moving files.

Here is my specs:

Intel NUC mini PC kit NUC7i7BNH
  • Open Media Vault 3 installed
    Docker Containers:
    • Mylar - master git build 053626a96bd1a8601b2ca87066261408e8c1cd30
      SABnzbd
Synology DS2413+
  • All media storage - with read/write permissions for open media vault user
A little background with the OMV3 install. I have SABnzbd, Sonarr and Radarr up and running with no permission errors at all. So I've confirmed that my permissions are working (at least for their folders).

I've used Mylar and SABnzbd on windows, so I understand the setup.

Here's the problem. When I search and add a new comic series, a folder is created in my comic directory on the synology (named exactly the way I indicated in Mylar settings). I then change a status of an issue to wanted. SABnzbd gets the comic, starts the rpocessing (as indicated my the script ComicRN.py flashing in the status). The SAB says "Post-Processing aborted" and the Mylar log is as follows:

2018-01-25 17:31:43 WARNING [POST-PROCESSING] Post-Processing ABORTED
2018-01-25 17:31:43 WARNING [POST-PROCESSING] Failed to move /config/mylar/cache/mylar_TVrblq/X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbz - check directories and manually re-run.
2018-01-25 17:31:43 INFO [POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: /comics/Marvel/X-Men Blue (2017)
2018-01-25 17:31:43 INFO [POST-PROCESSING] Sucessfully wrote metadata to .cbz (X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbz) - Continuing..
2018-01-25 17:31:43 INFO [META-TAGGER][COMIC-TAGGER] Successfully wrote Comicbooklover tagging [/config/mylar/cache/mylar_TVrblq/X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbz]
2018-01-25 17:31:39 INFO [META-TAGGER] Comicbooklover tagging meta-tagging processing started.
2018-01-25 17:31:39 INFO [META-TAGGER][COMIC-TAGGER] Successfully wrote ComicRack tagging [/config/mylar/cache/mylar_TVrblq/X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbz]
2018-01-25 17:31:36 INFO [META-TAGGER] ComicRack tagging meta-tagging processing started.
2018-01-25 17:31:34 INFO Attempting to move: move
2018-01-25 17:31:34 INFO New_Filepath: /config/mylar/cache/mylar_TVrblq/X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbr
2018-01-25 17:31:34 INFO New_Folder: /config/mylar/cache/mylar_TVrblq
2018-01-25 17:31:34 INFO Filename: X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbr
2018-01-25 17:31:34 INFO Filepath: /downloads/X-Men.Blue.008.2017.Digital.Zone-Empire/X-Men Blue 008 (2017) (Digital) (Zone-Empire).cbr
2018-01-25 17:31:34 INFO [POST-PROCESSING] [1/1] Starting Post-Processing for X-Men: Blue issue: 8

So it shows the above in the log, but the comic is there and in the proper folder and renamed as well. Mylar still indicates that it has been snatched. I press "recheck files" and I get this error:

2018-01-25 17:32:52 INFO [FILE-RESCAN] I have physically found 8 issues, ignored 0 issues, snatched 0 issues, and accounted for 0 in an Archived state [ Total Issue Count: 8 / 21 ]
2018-01-25 17:32:52 ERROR Could not change permissions : /comics/Marvel/X-Men Blue (2017). Exiting...
2018-01-25 17:32:52 INFO [FILE-RESCAN] Total files located: 8
2018-01-25 17:32:52 INFO [FILE-RESCAN] Updated the status of 12 issues for X-Men: Blue (2017) that were not found.
2018-01-25 17:32:52 INFO there are 8 files.
2018-01-25 17:32:52 INFO [FILE-RESCAN] Now checking files for X-Men: Blue (2017) in /comics/Marvel/X-Men Blue (2017)

I look back at the issue on Mylar and it now indicates "downloaded" Mylar is also not deleting the cache after processing.

I'm really hoping it's something simple I'm missing with permissions.

Thanks for your help!

Dave
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar/SABNzbd - Permission errors

Post by evilhero »

Well based on your description, it's putting the file into the correct series after the pp has failed, but it's unable to delete from the cache location.

When mylar does metatagging, it copies (or moves depending on your settings) the file into the cache folder, does its metatagging then moves the completed file to your series directory, deletes the file and then updates the status. So because it's failing at the deleting part, it never updates the status properly.

It might have something to do with the fact that mylar is running in a docker (and thereby the cache), so it might not have the necessary perms to delete if the file being sent from sab is owned by another user (don't run docker so really just a guess).

I would start by checking the perms on the cache folder, and then the mylar_xxxxx folder where the metatagging has taken place, and then even the files therein since the .cbr file would have the original perms.

You can also run Mylar in debug mode for more verbose logging. If you go into the Logs tab, and then click on the button in the upper right labelled something like 'Turn verbose On', and then download an issue again it will provide more info as to what's happening hopefully.
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: Mylar/SABNzbd - Permission errors

Post by summerside »

Thanks for getting back to me! Very appreciated.

Here is the debug log when I added an issue:

2018-01-26 16:15:49 INFO Update complete
2018-01-26 16:15:49 DEBUG ReScheduled job: DB Updater to 2018-01-26 22:20:49
2018-01-26 16:15:49 DEBUG Refresh sequence set to fire every 5 minutes for 7 day(s)
2018-01-26 16:14:32 WARNING [POST-PROCESSING] Post-Processing ABORTED
2018-01-26 16:14:32 WARNING [POST-PROCESSING] Failed to move /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1/X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr - check directories and manually re-run.
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Renaming /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1/X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr ..to.. /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1/X-Men Blue V2017 20 (March 2018).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] nfilename:X-Men Blue V2017 20 (March 2018).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] ofilename:X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] odir: /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] self.nzb_folder: /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Destination: /comics/Marvel/X-Men Blue (2017)/X-Men Blue V2017 20 (March 2018).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Source: /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1/X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr
2018-01-26 16:14:31 INFO [POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: /comics/Marvel/X-Men Blue (2017)
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] New Filename: X-Men Blue V2017 20 (March 2018)
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Original Extension: .cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Original Filename: X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] ofilename: X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] odir: /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] ofilename: X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm).cbr
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] odir (root): /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] New format: $Series $VolumeY $Issue ($monthname $Year)
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Not an annual - removing from filename parameters
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] New format is now: $Series $VolumeY $Issue ($monthname $Year)
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] No version # found for series, removing from filename
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Comic Version: None
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Comic Location: /comics/Marvel/X-Men Blue (2017)
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Year: 2017
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Series: X-Men: Blue
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Publisher: Marvel
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Issue Year : 2018
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Pretty Comic Issue is : 20
2018-01-26 16:14:31 DEBUG Zero level supplement set to none.Issue will be set as : 20
2018-01-26 16:14:31 DEBUG issue detected greater than 10, but less than 100
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Zero Suppression set to : none
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] issuenumOG: 20
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] issueid: 655516
2018-01-26 16:14:31 INFO [POST-PROCESSING] [1/1] Starting Post-Processing for X-Men: Blue issue: 20
2018-01-26 16:14:31 INFO [DUPECHECK] Duplication detection returned no hits. This is not a duplicate of anything that I have scanned in as of yet.
2018-01-26 16:14:31 INFO [DUPECHECK] Duplicate check for /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 INFO [POST-PROCESSING] issuenzb found.
2018-01-26 16:14:31 INFO [PPINFO-POST-PROCESSING-ATTEMPT] {'publisher': None, 'comicname': u'X-Men: Blue', 'issueid': u'655516', 'comiclocation': None, 'sarc': None, 'issuenumber': u'20', 'oneoff': None, 'comicid': u'100712'}
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] Issueid: 655516
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] After conversions, nzbname is : X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:31 DEBUG [NZBNAME] nzbname (remove extensions, double spaces, convert underscores to spaces): X-Men Blue 020 2018 digital Minutemen-Bookworm
2018-01-26 16:14:31 DEBUG [NZBNAME] nzbname (remove chars): X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:31 DEBUG [NZBNAME]: X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] nzb folder: /downloads/X-Men.Blue.020.2018.digital.Minutemen-Bookworm.1
2018-01-26 16:14:31 DEBUG [POST-PROCESSING] nzb name: X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:31 INFO Starting postprocessing for : X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:31 INFO ComicRN.py version: 1.01 -- autoProcessComics.py version: 1.0
2018-01-26 16:14:24 INFO [UPDATER] Updated the status (Snatched) complete for X-Men: Blue Issue: 20
2018-01-26 16:14:23 DEBUG [UPDATER] Provider is nzb.su
2018-01-26 16:14:23 INFO [UPDATER] Updating status to snatched
2018-01-26 16:14:23 DEBUG [UPDATER] issueid: 655516
2018-01-26 16:14:23 DEBUG [UPDATER] comicid: 100712
2018-01-26 16:14:23 DEBUG findit = found!
2018-01-26 16:14:23 DEBUG Deleted stale entry from nzblog for IssueID: 655516 [nzb.su]
2018-01-26 16:14:23 INFO setting the nzbid for this download grabbed by nzb.su in the nzblog to : 9f92403c9ccb067f2873d9b15ede9333
2018-01-26 16:14:23 DEBUG Found matching comic...preparing to send to Updater with IssueID: 655516 and nzbname: X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG we should break out now - sucessful search previous
2018-01-26 16:14:23 INFO Successfully sent nzb file to SABnzbd
2018-01-26 16:14:23 DEBUG Recieved API command: downloadNZB
2018-01-26 16:14:23 INFO {u'status': True, u'nzo_ids': [u'SABnzbd_nzo_6SfF0B']}
2018-01-26 16:14:23 DEBUG Matched to key. Api set to : download mode.
2018-01-26 16:14:23 INFO sending now to http://localhost:8080/api
2018-01-26 16:14:23 INFO parameters set to {'nzbname': u'X-Men.Blue.020.2018.digital.Minutemen-Bookworm.nzb', 'apikey': u'4676b9f5e6c73b4db99e0eec03d5e8a0', 'name': u'http://172.16.1.87:8090/api?apikey=49eb ... okworm.nzb', 'cmd': 'downloadNZB', 'cat': u'comics', 'priority': '-100', 'mode': 'addurl', 'output': 'json'}
2018-01-26 16:14:23 ERROR Could not change permissions : /config/mylar/cache. Exiting...
2018-01-26 16:14:23 DEBUG Cache Directory successfully found at : /config/mylar/cache. Ensuring proper permissions.
2018-01-26 16:14:23 DEBUG [FILENAME] end nzbname: X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [FILENAME] nzbname (\s): X-Men Blue 020 2018 digital Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [FILENAME] filename (remove chars): X-Men Blue 020 2018 digital Minutemen-Bookworm
2018-01-26 16:14:23 INFO download-retrieved headers: {'content-length': '6914', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'content-disposition': 'attachment; filename="X-Men_Blue_020_(2018)_(digital)_(Minutemen-Bookworm).nzb"', 'strict-transport-security': 'max-age=2592000', 'x-dnzb-name': 'X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm)', 'expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'server': 'nginx', 'connection': 'keep-alive', 'x-dnzb-details': 'https://api.nzb.su/details/9f92403c9ccb ... b15ede9333', 'pragma': 'no-cache', 'cache-control': 'no-store, no-cache, must-revalidate', 'date': 'Fri, 26 Jan 2018 22:14:23 GMT', 'x-dnzb-category': 'Books > Comics', 'content-type': 'application/x-nzb'}
2018-01-26 16:14:23 INFO Download URL: https://api.nzb.su/api?apikey=b41af9cd4 ... b15ede9333 [VerifySSL:True]
2018-01-26 16:14:23 DEBUG link given by: nzb.su
2018-01-26 16:14:23 INFO Found X-Men: Blue (2018) issue: 20 using nzb.su
2018-01-26 16:14:23 DEBUG issues match!
2018-01-26 16:14:23 DEBUG nzbname used for post-processing:X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [SEARCHER] end nzbname: X-Men.Blue.020.2018.digital.Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [SEARCHER] nzbname (\s): X-Men Blue 020 2018 digital Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [SEARCHER] nzbname (remove chars): X-Men Blue 020 2018 digital Minutemen-Bookworm
2018-01-26 16:14:23 DEBUG [SEARCHER] entry[title]: X-Men Blue 020 (2018) (digital) (Minutemen-Bookworm)
2018-01-26 16:14:23 DEBUG integer value of issue we have found : 20000
2018-01-26 16:14:23 DEBUG issue we found for is : 020
2018-01-26 16:14:23 DEBUG integer value of issue we are looking for : 20000
2018-01-26 16:14:23 DEBUG issue we are looking for is : 20
2018-01-26 16:14:23 DEBUG this should be a match!
2018-01-26 16:14:23 DEBUG it's a go captain... - we matched 100.0%!
2018-01-26 16:14:23 DEBUG Match to series : 100.0 %.
2018-01-26 16:14:23 DEBUG splitit-len:3
2018-01-26 16:14:23 DEBUG scount:3
2018-01-26 16:14:23 DEBUG word matched on : blue
2018-01-26 16:14:23 DEBUG 2 Comparing: blue .to. blue
2018-01-26 16:14:23 DEBUG scount : 2
2018-01-26 16:14:23 DEBUG splitit: blue
2018-01-26 16:14:23 DEBUG word matched on : men
2018-01-26 16:14:23 DEBUG 1 Comparing: men .to. men
2018-01-26 16:14:23 DEBUG scount : 1
2018-01-26 16:14:23 DEBUG splitit: men
2018-01-26 16:14:23 DEBUG word matched on : x
2018-01-26 16:14:23 DEBUG 0 Comparing: x .to. x

Here is the debug log when I recheck files:

2018-01-26 16:17:13 INFO [FILE-RESCAN] I have physically found 12 issues, ignored 0 issues, snatched 0 issues, and accounted for 0 in an Archived state [ Total Issue Count: 12 / 21 ]
2018-01-26 16:17:13 ERROR Could not change permissions : /comics/Marvel/X-Men Blue (2017). Exiting...
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Ensuring permissions/ownership enforced for series: X-Men: Blue
2018-01-26 16:17:13 INFO [FILE-RESCAN] Total files located: 12
2018-01-26 16:17:13 INFO [FILE-RESCAN] Updated the status of 9 issues for X-Men: Blue (2017) that were not found.
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 43599366
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 4 (July 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#4 --- 4000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [597208] Issue match - fcdigit: 4000 ... int_iss: 4000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 4
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 41352690
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 2 (June 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#2 --- 2000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [593277] Issue match - fcdigit: 2000 ... int_iss: 2000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 2
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 45899332
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 6 (August 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#6 --- 6000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [605139] Issue match - fcdigit: 6000 ... int_iss: 6000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 6
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 42467536
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 3 (July 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#3 --- 3000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [594979] Issue match - fcdigit: 3000 ... int_iss: 3000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 3
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 88108121
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 10 (January 2017).cbr
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#10 --- 10000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [617858] Issue match - fcdigit: 10000 ... int_iss: 10000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 10
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 100188203
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 7 (September 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#7 --- 7000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [608266] Issue match - fcdigit: 7000 ... int_iss: 7000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 7
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 58293795
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 1 (June 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#1 --- 1000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [591772] Issue match - fcdigit: 1000 ... int_iss: 1000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 1
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 44177000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 5 (August 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#5 --- 5000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [601813] Issue match - fcdigit: 5000 ... int_iss: 5000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 5
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 90644815
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 9 (January 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#9 --- 9000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [615039] Issue match - fcdigit: 9000 ... int_iss: 9000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 9
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 41169849
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 20 (March 2018).cbr
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#20 --- 20000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [655516] Issue match - fcdigit: 20000 ... int_iss: 20000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 20
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 53013849
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 Annual 1 (March 2018).cbr
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...annual issue: X-Men: Blue#1 --- 1000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [100712] Annual match - issue : 1000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: Annual 1
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filesize: 48603276
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] .......filename: X-Men Blue V2017 8 (September 2017).cbz
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] Matched...issue: X-Men: Blue#8 --- 8000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] [610543] Issue match - fcdigit: 8000 ... int_iss: 8000
2018-01-26 16:17:13 DEBUG [FILE-RESCAN] temploc: 8
2018-01-26 16:17:13 DEBUG [ANNUAL-CHK] No annuals with identical issue numbering across annual volumes were detected for this series
2018-01-26 16:17:13 DEBUG No issues with identical issue numbering were detected for this series
2018-01-26 16:17:13 DEBUG [MATCH: X-Men Blue] X-Men Blue V2017 4 (July 2017).cbz
2018-01-26 16:17:13 DEBUG series title possibly: X-Men Blue
2018-01-26 16:17:13 DEBUG sf_highest_series_pos: ['X-Men', 'Blue']
2018-01-26 16:17:13 DEBUG Volume detected as : v2017
2018-01-26 16:17:13 DEBUG issue verified as : 4
2018-01-26 16:17:13 DEBUG issue_position: 3
2018-01-26 16:17:13 DEBUG possible_issuenumbers: [{'position': 3, 'validcountchk': False, 'number': '4', 'mod_position': 17}]
2018-01-26 16:17:13 DEBUG highest_series_position: 4
2018-01-26 16:17:13 DEBUG year verified as: 2017
2018-01-26 16:17:13 DEBUG year verified as : July 2017
2018-01-26 16:17:13 DEBUG sctd: 2018
2018-01-26 16:17:13 DEBUG datecheck: [{'date': 'July 2017', 'position': 4, 'mod_position': 19}]
2018-01-26 16:17:13 DEBUG date: 2017
2018-01-26 16:17:13 DEBUG checking date : July 2017
2018-01-26 16:17:13 DEBUG volume label detected as : Volume 2017 @ position: 2
2018-01-26 16:17:13 DEBUG [MATCH: X-Men Blue] X-Men Blue V2017 2 (June 2017).cbz
2018-01-26 16:17:13 DEBUG series title possibly: X-Men Blue
2018-01-26 16:17:13 DEBUG sf_highest_series_pos: ['X-Men', 'Blue']
2018-01-26 16:17:13 DEBUG Volume detected as : v2017
2018-01-26 16:17:13 DEBUG issue verified as : 2
2018-01-26 16:17:13 DEBUG issue_position: 3
2018-01-26 16:17:13 DEBUG possible_issuenumbers: [{'position': 3, 'validcountchk': False, 'number': '2', 'mod_position': 12}]
2018-01-26 16:17:13 DEBUG highest_series_position: 4
2018-01-26 16:17:13 DEBUG year verified as: 2017
2018-01-26 16:17:13 DEBUG year verified as : June 2017
2018-01-26 16:17:13 DEBUG sctd: 2018
2018-01-26 16:17:13 DEBUG datecheck: [{'date': 'June 2017', 'position': 4, 'mod_position': 19}]
2018-01-26 16:17:13 DEBUG date: 2017
2018-01-26 16:17:13 DEBUG checking date : June 2017
2018-01-26 16:17:13 DEBUG volume label detected as : Volume 2017 @ position: 2
2018-01-26 16:17:13 DEBUG [MATCH: X-Men Blue] X-Men Blue V2017 6 (August 2017).cbz
2018-01-26 16:17:13 DEBUG series title possibly: X-Men Blue
2018-01-26 16:17:13 DEBUG sf_highest_series_pos: ['X-Men', 'Blue']

I'll ssh into OMV3 and take look at the permissions

Thanks again for your help!
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: Mylar/SABNzbd - Permission errors

Post by summerside »

So I changed permissions to read / write for everyone for the Mylar cache. The problem is every time Mylar creates a folder or file inside the cache folder it makes it read only and has forbidden access to everyone but the owner

Any suggestions?

Thanks again
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar/SABNzbd - Permission errors

Post by evilhero »

Within the Mylar configuration GUI/Web Interface tab, there is an option to enforce permissions.

Try setting those to either the correct user/group, and/or set the permission bits directly there (ie if you have it set to 0700 that would indicate what you just mentioned about it being accessible only by the owner). Keep in mind tho, that the user running Mylar has to have complete rwx to the given files for usage - and these permissions will be enforced aside from just the cache folder (it will enforce on Recheck Files, Refreshes, and on post-processing).

But depending on your setup, this might not be what you want.

If it's not, you might want look into inherited permissions for the cache folder, or setting a default group so that when new files are created in that directory the default group is assigned thereby allowing:

Code: Select all

chgrp mylar /config/mylar/cache
chmod g+s /config/mylar/cache
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: Mylar/SABNzbd - Permission errors

Post by summerside »

Thanks for taking the time to get back to me. I tried both of your suggestions but still having the same error. The cache folder remains r/w for the appropriate users, but Mylar is creating folders inside cache with no access. In the end, the files are downloading, renamed and placed where they should be. I just have to go in and clean things up in the SAB completed folder and the Mylar cache
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: Mylar/SABNzbd - Permission errors

Post by summerside »

So I figured out what I was doing wrong! ugh! Not sure how (or why) I missed it. I have a synology NAS that I use to store everything. The reason I am using unraid and docker containers is that synology cannot handle multiple apps running at once (well at least my model can't). I always planned to keep the NAS as it's perfect for storage. So in unraid, I mounted my shares from synology. So it must have been just habit, but I used a smb connection to map...ugh! I unmounted and removed all of them and re-mount with nsf connection (synology lets you set shares with multiple types of connections) then reconfigured all the docker containers with the nsf path (for the comics).



It now works perfectly! No errors!!
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: Mylar/SABNzbd - Permission errors

Post by summerside »

Thanks for taking the time to investigate and help :)
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Mylar/SABNzbd - Permission errors

Post by evilhero »

summerside wrote: Fri Feb 02, 2018 8:15 pm So I figured out what I was doing wrong! ugh! Not sure how (or why) I missed it. I have a synology NAS that I use to store everything. The reason I am using unraid and docker containers is that synology cannot handle multiple apps running at once (well at least my model can't). I always planned to keep the NAS as it's perfect for storage. So in unraid, I mounted my shares from synology. So it must have been just habit, but I used a smb connection to map...ugh! I unmounted and removed all of them and re-mount with nsf connection (synology lets you set shares with multiple types of connections) then reconfigured all the docker containers with the nsf path (for the comics).

It now works perfectly! No errors!!
Well glad you got it all worked out - I was gonna ask about the mount permissions, but thought it might be something else so started down the wrong fork of the right road :)

Sometimes just asking questions yourself makes you go down the right road eventually - happens to me alot I'll admit as well.

If you have any other problems, just give a shout!
Post Reply