Windows Server Permissions Issue

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
dosaceos
Posts: 15
Joined: Fri Oct 09, 2015 1:10 pm

Windows Server Permissions Issue

Post by dosaceos »

I'm back, having tried a few things.

I'm running a new install of the dev branch, -- git build a09ac489519f02715437bdc826d8ba70b6113e1c. on a Windows 2011 server.

Mylar seems to be incapable of converting CBR files to CBZ files when post processing, either via script or folder monitoring. I'm using SABnzbd.

It claims that the permissions may be off, but I've installed in a number of different folders now, opening up the permissions wide open in each one as far as I can tell, and I still get the same error. Both the Cache and the destination folder should have their permissions available.

Code: Select all

2019-01-06 20:14:42	INFO	[POST-PROCESSING] Post-Processing completed for: Iceman #4
2019-01-06 20:14:41	DEBUG	writing: {'Status': 'Downloaded', 'Location': u'Iceman 4 (2017).cbr'} -- {'IssueID': u'616194'}
2019-01-06 20:14:41	DEBUG	[annchk:no] issue to update: #4
2019-01-06 20:14:41	INFO	[POST-PROCESSING][UPDATER] Updating Status (Downloaded) now complete for Iceman issue: 4
2019-01-06 20:14:41	INFO	[POST-PROCESSING][UPDATER] Setting status to Downloaded in history.
2019-01-06 20:14:41	DEBUG	[POST-PROCESSING][UPDATER] issueid: 616194
2019-01-06 20:14:41	DEBUG	[POST-PROCESSING][UPDATER] comicid: 101937
2019-01-06 20:14:41	DEBUG	incremented havefiles: 4
2019-01-06 20:14:41	DEBUG	status: Snatched
2019-01-06 20:14:41	DEBUG	totalfiles: 11
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Tidying up. Deleting original folder location : B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:40	DEBUG	sub_path: None [cacheonly: False][del_nzbdir: True]
2019-01-06 20:14:40	DEBUG	odir: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire [filename: Iceman 004 (2017) (Digital) (Zone-Empire).cbr][self.nzb_folder: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire]
2019-01-06 20:14:40	DEBUG	File Option: move [META-ENABLED: True]
2019-01-06 20:14:40	DEBUG	[FREESPACE-CHECK] B:\Media\Comic Books\Comics\Iceman (2017) has 882.8GiB free
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Renaming B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire\Iceman 004 (2017) (Digital) (Zone-Empire).cbr ..to.. B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire\Iceman 4 (2017).cbr
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] nfilename:Iceman 4 (2017).cbr
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] ofilename:Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] odir: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] self.nzb_folder: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Destination: B:\Media\Comic Books\Comics\Iceman (2017)\Iceman 4 (2017).cbr
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Source: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire\Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:40	INFO	[POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: B:\Media\Comic Books\Comics\Iceman (2017)
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] New Filename: Iceman 4 (2017)
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Original Filename: Iceman 004 (2017) (Digital) (Zone-Empire).cbr [.cbr]
2019-01-06 20:14:40	DEBUG	[POST-PROCESSING] Unable to write metadata successfully - check mylar.log file. Attempting to continue without tagging...
2019-01-06 20:14:40	WARNING	[META-TAGGER][COMIC-TAGGER][CBR-TO-CBZ] Failed to convert cbr to cbz - check permissions on folder : B:\Media\Comic Books\mylar\cache and/or the location where Mylar is trying to tag the files from.
2019-01-06 20:14:40	DEBUG	[META-TAGGER] Absolute path to script: C:\Python27\python.exe
2019-01-06 20:14:40	DEBUG	[META-TAGGER] Executing command: ['C:\\Python27\\python.exe', 'B:\\Media\\Comic Books\\mylar\\comictagger.py', '-e', '--delete-rar', u'B:\\Media\\Comic Books\\mylar\\cache\\mylar_4kkjym\\Iceman 004 (2017) (Digital) (Zone-Empire).cbr']
2019-01-06 20:14:40	DEBUG	[META-TAGGER] Enabling ComicTagger script: ['C:\\Python27\\python.exe', 'B:\\Media\\Comic Books\\mylar\\comictagger.py'] with options: ['-e', '--delete-rar', u'B:\\Media\\Comic Books\\mylar\\cache\\mylar_4kkjym\\Iceman 004 (2017) (Digital) (Zone-Empire).cbr']
2019-01-06 20:14:40	DEBUG	[META-TAGGER] CBL Tagging enabled.
2019-01-06 20:14:40	DEBUG	[META-TAGGER] CR Tagging enabled.
2019-01-06 20:14:40	DEBUG	[META-TAGGER] ComicTagger 1.25.1 [ninjas.walk.alone / SHURIKEN] being used - using personal ComicVine API key supplied via mylar.
2019-01-06 20:14:39	DEBUG	[META-TAGGER] Running the ComicTagger Add-on for Mylar
2019-01-06 20:14:39	DEBUG	[META-TAGGER] comicpath : B:\Media\Comic Books\mylar\cache\mylar_4kkjym
2019-01-06 20:14:39	DEBUG	[META-TAGGER] sabnzbdscriptpath : B:\Media\Comic Books\mylar
2019-01-06 20:14:39	DEBUG	[META-TAGGER] downloadpath : B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[META-TAGGER] scriptname : Mylar.py
2019-01-06 20:14:39	DEBUG	[META-TAGGER] Paths / Locations:
2019-01-06 20:14:39	DEBUG	New_Filepath: B:\Media\Comic Books\mylar\cache\mylar_4kkjym\Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	New_Folder: B:\Media\Comic Books\mylar\cache\mylar_4kkjym
2019-01-06 20:14:39	DEBUG	Filename: Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	Filepath: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire\Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	[META-TAGGER] Filename is : B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire\Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	ComicTagger Path location for internal comictagger.py set to : B:\Media\Comic Books\mylar\comictagger.py
2019-01-06 20:14:39	DEBUG	[META-TAGGER] dirName:B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Metatagging enabled - proceeding...
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] ofilename: Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] odir: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] ofilename: Iceman 004 (2017) (Digital) (Zone-Empire).cbr
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] odir (root): B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] New format: $Series $Issue ($Year)
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Not an annual - removing from filename parameters
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Comic Version: v3
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Comic Location: B:\Media\Comic Books\Comics\Iceman (2017)
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Year: 2017
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Series: Iceman
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Publisher: Marvel
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Issue Year : 2017
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Pretty Comic Issue is : 4
2019-01-06 20:14:39	DEBUG	Zero level supplement set to none. Issue will be set as : 4
2019-01-06 20:14:39	DEBUG	issue detected less than 10
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Zero Suppression set to : none
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] issuenumOG: 4
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] issueid: 616194
2019-01-06 20:14:39	INFO	[POST-PROCESSING] [1/1] Starting Post-Processing for Iceman issue: 4
2019-01-06 20:14:39	INFO	[DUPECHECK] Duplication detection returned no hits. This is not a duplicate of anything that I have scanned in as of yet.
2019-01-06 20:14:39	INFO	[DUPECHECK] Duplicate check for B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	INFO	[POST-PROCESSING] issuenzb found.
2019-01-06 20:14:39	INFO	[PPINFO-POST-PROCESSING-ATTEMPT] {'publisher': None, 'comicname': u'Iceman', 'issueid': u'616194', 'comiclocation': None, 'sarc': None, 'issuenumber': u'4', 'oneoff': None, 'comicid': u'101937'}
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] Issueid: 616194
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] After conversions, nzbname is : Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[NZBNAME] nzbname (remove extensions, double spaces, convert underscores to spaces): Iceman 004 2017 Digital Zone-Empire
2019-01-06 20:14:39	DEBUG	[NZBNAME] nzbname (remove chars): Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[NZBNAME]: Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] nzb folder: B:\Admin\Downloads\complete\Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	DEBUG	[POST-PROCESSING] nzb name: Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:39	INFO	Starting postprocessing for : Iceman.004.2017.Digital.Zone-Empire
2019-01-06 20:14:38	INFO	ComicRN.py version: 1.01 -- autoProcessComics.py version: 2.04
2019-01-06 20:14:38	INFO	[API] Api Call from ComicRN detected - initiating script post-processing.
2019-01-06 20:14:38	DEBUG	Received API command: forceProcess
2019-01-06 20:14:38	DEBUG	Matched to key. Api set to : normal mode.
2019-01-06 20:14:27	DEBUG	Received API command: downloadNZB
2019-01-06 20:14:27	DEBUG	Matched to key. Api set to : download mode.
2019-01-06 20:12:47	INFO	[UPDATER] Updated the status (Snatched) complete for Iceman Issue: 4
2019-01-06 20:12:47	DEBUG	[UPDATER] Provider is nzb.su
2019-01-06 20:12:47	INFO	[UPDATER] Updating status to snatched
2019-01-06 20:12:47	DEBUG	[UPDATER] issueid: 616194
2019-01-06 20:12:47	DEBUG	[UPDATER] comicid: 101937
2019-01-06 20:12:47	DEBUG	I found Iceman #4
2019-01-06 20:12:47	DEBUG	findit = found!
2019-01-06 20:12:47	INFO	setting the alternate nzbname for this download grabbed by nzb.su in the nzblog to : Iceman0042017DigitalZone-Empire
2019-01-06 20:12:47	INFO	setting the nzbid for this download grabbed by nzb.su in the nzblog to : 11756ea02b19e0a45955f6bf54758811
2019-01-06 20:12:47	DEBUG	Found matching comic...preparing to send to Updater with IssueID: 616194 and nzbname: Iceman.004.2017.Digital.Zone-Empire[Iceman0042017DigitalZone-Empire]
2019-01-06 20:12:47	INFO	Successfully sent nzb file to SABnzbd
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Windows Server Permissions Issue

Post by evilhero »

This was brought up previously by one or two individuals, but we were never able to reproduce the problem on any machines.

Here are few Q's off the top of my head:
  • is the python executable in your PATH environment ?
  • do you have unrar/winrar (from rarlabs) installed on your machine ? (Mylar comes with it, but just narrowing it down)
  • in the mylar_root/lib/comictaggerlib/ct_settings/settings.ini file, do you have anything specified for the unrar_exe_path variable ? If it's nothing, can you set it to your full path to your unrar binary (from the question above) ?
  • The user running Mylar needs full access to the mylar cache directory, the original location of the file, and the final destination. However, at the point it's failing it's at the cache location (or it's at the 'copy from original location to cache).
  • Do any file(s) still exist in the given locations after a metatagging ? I realise that the cleanup is performed and most likely they're removed, but still have to ask (especially in the cache location specified).
Last option is to try it directly from the command line and paste the results herein. From the mylar root directory (where the comictagger.py file is located) issue the following command:

python comictagger.py -e "B:\Media\Comic Books\Iceman 004 (2017) (Digital) (Zone-Empire).cbr"

just replace the path with a location of a cbr that exists, or copy a cbr to a new location and use that path in the example above, either or (make sure to enclose the entire path it in double-quotation marks)
dosaceos
Posts: 15
Joined: Fri Oct 09, 2015 1:10 pm

Re: Windows Server Permissions Issue

Post by dosaceos »

is the python executable in your PATH environment ? - I'm ashamed to admit that I don't actually know what you mean by PATH environment. It's on the C drive of the server which both stores the comics and runs Mylar on a separate raided B drive.

do you have unrar/winrar (from rarlabs) installed on your machine ? - I didn't have a separate install, so I just installed it and updated the .ini.

The user running Mylar needs full access to the mylar cache directory, the original location of the file, and the final destination. However, at the point it's failing it's at the cache location - I think I have the permissions set wide open there to everyone, so if that is the issue I don't know why.

Do any file(s) still exist in the given locations after a metatagging ? - The completed download folder almost always get's cleaned up unless something else goes wrong, and the leftover files are removed. However, the .nzb files and series .jpg's are not cleaned out of the cache folder after a new series is added and/or the file is processed.
dosaceos
Posts: 15
Joined: Fri Oct 09, 2015 1:10 pm

Re: Windows Server Permissions Issue

Post by dosaceos »

Mmm, installing winrar seems to have fixed it. Though if I didn't have it now, I don't think I ever had it, so I wonder why it started to matter a few months ago.

Edit: Forgot to say thanks for the help!
Post Reply