March 24, 201214 yr just set up a new server and having some issues. running beta 14. new build, not upgraded. Not sure if this is related to Unraid, SB or SAB. It mentions permissions that is why i haven't ruled unraid out. hopefully someone can school me a bit on the subject. im just not sure where to start. Here is what i get in SAB under script log (removed file name and used *'s): Loading config from /mnt/cache/.sickbeard/autoprocesstv/autoProcessTV.cfg Opening URL: http://localhost:8081/home/postprocess/processEpisode?nzbName=**************************************** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <title>500 Internal Server Error</title> <style type="text/css"> #powered_by { margin-top: 20px; border-top: 2px solid black; font-style: italic; } #traceback { color: red; } </style> </head> <body> <h2>500 Internal Server Error</h2> <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p> <pre id="traceback">Traceback (most recent call last): File "/usr/local/sickbeard/cherrypy/_cprequest.py", line 660, in respond response.body = self.handler() File "/usr/local/sickbeard/cherrypy/lib/encoding.py", line 193, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/usr/local/sickbeard/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/local/sickbeard/sickbeard/webserve.py", line 1517, in processEpisode result = processTV.processDir(dir, nzbName) File "/usr/local/sickbeard/sickbeard/processTV.py", line 77, in processDir fileList = ek.ek(os.listdir, dirName) File "/usr/local/sickbeard/sickbeard/encodingKludge.py", line 56, in ek result = func(*[x.encode(sickbeard.SYS_ENCODING) if type(x) in (str, unicode) else x for x in args]) OSError: [Errno 13] Permission denied: '***************************************' </pre> <div id="powered_by"> <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.0rc1</a></span> </div> </body> </html> And this is what i get when trying manual post processing: 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "/usr/local/sickbeard/cherrypy/_cprequest.py", line 660, in respond response.body = self.handler() File "/usr/local/sickbeard/cherrypy/lib/encoding.py", line 193, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/usr/local/sickbeard/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/local/sickbeard/sickbeard/webserve.py", line 1517, in processEpisode result = processTV.processDir(dir, nzbName) File "/usr/local/sickbeard/sickbeard/processTV.py", line 104, in processDir process_result = processor.process() File "/usr/local/sickbeard/sickbeard/postProcessor.py", line 791, in process self._move(self.file_path, dest_path, new_base_name, sickbeard.MOVE_ASSOCIATED_FILES) File "/usr/local/sickbeard/sickbeard/postProcessor.py", line 253, in _move self._combined_file_operation(file_path, new_path, new_base_name, associated_files, action=_int_move) File "/usr/local/sickbeard/sickbeard/postProcessor.py", line 233, in _combined_file_operation action(cur_file_path, new_file_path) File "/usr/local/sickbeard/sickbeard/postProcessor.py", line 251, in _int_move raise e IOError: [Errno 13] Permission denied: '/mnt/user0/tv/
March 25, 201214 yr IOError: [Errno 13] Permission denied: '/mnt/user0/tv/ Seems to be your problem, what user are you running sickbeard/SAB as? You need to give the user permissions to your tv folder
March 28, 201214 yr Author Thanks for the reply Swixxy! With my meager linux skills and alot of google I tried checking the permissions of the tv share by using putty, moving to the tv directory under the media share and using ls -l. It looks like its owned by "nobody". As far as i can tell sab, sb, and cp, are running under root, though im not sure if i checked correctly. the instructions i found for checking said to "su nobody" then "ps x"... the su nobody command did not look like it did anything. so im guessing the ps x command was run under root. along with many other entries i found sab, sb, and cp. also is there supposed to be a nobody entry under the users tab of unraid main?
April 18, 201214 yr Sorry for the late reply, There shouldnt be a nobody user in u raid, no need to create it. Su nobody changes your user to nobody, it should have changed the login bit e.g root#tower: to nobody#tower: basically Are you using the sab etc plugins or is it a script? Really seems like a permissions thing, try setting the permissions for the folders to give access to, or running the full permissions script in unraids gui (Utils -> New permissions) Hopefully you've got it fixed by now though as its been like 2 weeks!
April 24, 201214 yr Author Thanks for the help swixxy. I haven't been able to work on it at all since my last post. Here is what I get when I "su nobody": HAL3000 login: root Password: Linux 3.1.1-unRAID. root@HAL3000:~# su nobody root@HAL3000:~# Checking /user0 folder permissions root@HAL3000:/mnt# ls -ld user0 drwxrwx--- 1 nobody users 152 2012-02-14 14:41 user0/ If i understand correctly this means d=directory, rwx=read/white/execute for user nobody, rwx=read/write/execute for group user nobody belongs to, --- no permissions for anyone else. Seems correct to me. I looked at what sab, sb, and cp were running as. sab is running as root, sb as nobody, and cp as root. Should all these be run as nobody? Thought this may also be helpful: root@HAL3000:/mnt# ls -al /mnt/ total 0 drwxr-xr-x 7 root root 0 2011-10-09 18:13 ./ drwxr-xr-x 16 root root 0 2011-10-09 18:13 ../ drwxrwx--- 8 nobody users 192 2011-09-27 21:01 cache/ drwxr-xr-x 3 root root 0 2011-10-09 18:13 disk/ drwxrwx--- 7 nobody users 152 2012-02-14 14:41 disk1/ drwxrwx--- 1 nobody users 192 2012-02-14 14:41 user/ drwxrwx--- 1 nobody users 152 2012-02-14 14:41 user0/ root@HAL3000:/mnt/cache# ls -al /mnt/cache/ total 0 drwxrwx--- 8 nobody users 192 2011-09-27 21:01 ./ drwxr-xr-x 7 root root 0 2011-10-09 18:13 ../ drwxrwx--- 4 nobody users 152 2012-02-15 09:50 .couchpotato/ drwxrwx--- 3 nobody users 80 2011-09-27 21:36 .custom/ drwxrwx--- 5 nobody users 192 2011-10-09 18:14 .sabnzbd/ drwxrwx--- 5 nobody users 248 2011-11-09 19:20 .sickbeard/ I stopped sab and tried to run it as nobody, it will not start anymore, even as root. When trying to start it I get this Starting sabnzbd: sudo -u nobody python /usr/local/sabnzbd/SABnzbd.py -d -s 0.0.0.0:8082 --config-file /mnt/cache/.sabnzbd --pid /var/run/sabnzbd > /dev/null 2>&1 Firefox is still looking like its loading something but never does.
April 30, 201214 yr Author Stop redirecting the output to dev null to see what's happening. Thats what it says in the unraid addon. Not sure how to run the commands in terminal to try and start it. I know how on my 4.7 server. Not sure with these new plugins.
May 9, 201214 yr Author Can't figure it out so I decided to just delete 5.0 off there and use 4.7. Thanks for the help though.
Archived
This topic is now archived and is closed to further replies.