First off I'd like to say a big thanks for Mylar. I've been experimenting with it for a while now and its really great. However, what I believe are permission problems are driving me INSANE.
I am running whatever is the latest development build of Mylar on a Freenas server. I have about 130 different comic series , organised into separate folder (named "Series (Date)". Files are names "Series VolDate Issues (Year)". Everytime I try to run an import of my collection, about 1/4 of the series import fine, but the remainder don't. The problem seems to occur in realtion to the "comic.jpg" file. The error I get is given in the example below (for "Rat Queens" series):
Code: Select all
2015-08-21 19:42:15 WARNING [Warning] ComicID: 67680 is incomplete - Removing from DB. You should try to re-add the series.
2015-08-21 19:42:08 ERROR Uncaught exception: Traceback (most recent call last):
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/logger.py", line 159, in new_run
old_run(*args, **kwargs)
File "/usr/pbi/mylar-amd64/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/importer.py", line 462, in addComictoDB
shutil.copy(coverfile, comiclocal)
File "/usr/pbi/mylar-amd64/lib/python2.7/shutil.py", line 120, in copy
copymode(src, dst)
File "/usr/pbi/mylar-amd64/lib/python2.7/shutil.py", line 91, in copymode
os.chmod(dst, mode)
OSError: [Errno 1] Operation not permitted: '/mylar_1/comics/Rat Queens (2013)/cover.jpg'
2015-08-21 19:42:08 INFO Successfully retrieved cover for Rat Queens
2015-08-21 19:42:08 INFO Image header check: jpeg
2015-08-21 19:42:07 INFO Directory (/mylar_1/comics/Rat Queens (2013)) already exists! Continuing...
2015-08-21 19:42:07 INFO Sucessfully retrieved details for Rat Queens
2015-08-21 19:42:07 INFO Now adding/updating: Rat Queens
2015-08-21 19:42:05 INFO Attempting to add directly by ComicVineID: 67680
2015-08-21 19:42:00 INFO comicname is :Rat Queens
So far I've tried the following:
- Changing the user:group of my comics folder to media:wheel
- Changed my comics folder to 777 permissions
- Added the user "media" and group "wheel" to the mylar setting ("Comic Location" section)
- Deleted all existing "comic.jpg" and "cvinfo" files from my series folders and tried re-importing
All these things still result in the above errors - but not for all series. I've cheched the user perimissions of my comic folder in freenas and it is indeed "media:wheel".
Any help would be awesome.
Thanks, Rich