WEIRD Error in the Logs

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
jackkerouac
Posts: 3
Joined: Sun Jun 28, 2015 2:37 pm

WEIRD Error in the Logs

Post by jackkerouac »

Hello,

I am getting a weird error in my logs:

Code: Select all

Uncaught exception: Traceback (most recent call last):
File "/opt/mylar/mylar/logger.py", line 158, in new_run
old_run(*args, **kwargs)
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/mylar/mylar/importer.py", line 577, in addComictoDB
updater.forceRescan(comicid)
File "/opt/mylar/mylar/updater.py", line 1365, in forceRescan
filechecker.setperms(rescan['ComicLocation'])
File "/opt/mylar/mylar/filechecker.py", line 1436, in setperms
chgroup = getgrnam(mylar.CHGROUP)[2]
KeyError: 'getgrnam(): name not found: mylar'
I think it has something to do with Mylar running as user mylar in Ubuntu 15.10. Does anyone know what this error means?
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: WEIRD Error in the Logs

Post by evilhero »

Make sure that in the Configuration tab / Web-Interface section that you set the group name (or ID) to a group that exists within your system. By default, mylar will assume that the user running mylar will also belong to the identically-named group, unless you specifically specify one within the Mylar configuration.

You could try to do one of 2 things:
- blank out both the owner and group fields within the Mylar configuration, save the configuration and then restart Mylar. Mylar will then assume that all subsequent permissions will be based on the user running mylar, and the group having the same name (so in your case, ownership permissions would be set to mylar:mylar)
- create the 'mylar' group and add the user 'mylar' to the group. Note it could be any group, so long as the mylar user is in the group, and that group is specified within the Mylar configuration.
Post Reply