John Molohan wrote:
<snip>
Ok I've deleted all the relevant folders. Did an svn update, python
setup.py clean, python setup.py install and now I get this error when I
browse to my freevo box:

<type 'exceptions.OSError'>: [Errno 13] Permission denied:
'/root/tmp/kaa-77'

My settings are:
WEBSERVER_UID=77
WEBSERVER_GID=77

But that worked before. Is that a bug or something I did?
Who owns /root/tmp/kaa-77, root?
Just do a:
chown 77:77 /root/tmp/kaa-77
then it should work.

Duncan

No luck with that, didn't seem to make any difference. Here's the full traceback:

2007/09/25 22:21 IST [*web*] Main loop terminated.
2007/09/25 22:22 IST [-] Log opened.
2007/09/25 22:22 IST [*web*] twisted.web.server.Site starting on 8080
2007/09/25 22:22 IST [*web*] Starting factory <twisted.web.server.Site instance at 0xb6d8cf2c> 2007/09/25 22:23 IST [HTTPChannel,0,192.168.1.2] Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line 232, in dataReceived
            why = self.lineReceived(line)
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1004, in lineReceived
            self.allContentReceived()
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1045, in allContentReceived
            req.requestReceived(command, path, version)
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 601, in requestReceived
            self.process()
        --- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 159, in process
            resrc = self.site.getResourceFor(self)
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 514, in getResourceFor
            return resource.getChildForRequest(self.resource, request)
File "/usr/lib/python2.5/site-packages/twisted/web/resource.py", line 50, in getChildForRequest
            resource = resource.getChildWithDefault(pathElement, request)
File "/usr/lib/python2.5/site-packages/twisted/web/resource.py", line 150, in getChildWithDefault
            return self.getChild(path, request)
File "/usr/lib/python2.5/site-packages/twisted/web/rewrite.py", line 24, in getChild
            return self.resource.getChildWithDefault(path, request)
File "/usr/lib/python2.5/site-packages/twisted/web/resource.py", line 150, in getChildWithDefault
            return self.getChild(path, request)
File "/usr/lib/python2.5/site-packages/twisted/web/static.py", line 277, in getChild
            return resource.IResource(processor(fpath.path, self.registry))
File "/usr/lib/python2.5/site-packages/twisted/web/script.py", line 70, in ResourceScript
            execfile(path, glob, glob)
          File "/usr/share/freevo/htdocs/index.rpy", line 34, in <module>
            import tv.record_client
File "/usr/lib/python2.5/site-packages/freevo/tv/record_client.py", line 38, in <module>
            from util.marmalade import jellyToXML, unjellyFromXML
File "/usr/lib/python2.5/site-packages/freevo/util/__init__.py", line 74, in <module>
            from fileops import *
File "/usr/lib/python2.5/site-packages/freevo/util/fileops.py", line 43, in <module>
            import kaa.imlib2 as imlib2
File "/usr/lib/python2.5/site-packages/kaa/__init__.py", line 38, in <module>
            from tmpfile import tempfile, TEMP
File "/usr/lib/python2.5/site-packages/kaa/tmpfile.py", line 20, in <module>
            os.mkdir(TEMP, 0700)
<type 'exceptions.OSError'>: [Errno 13] Permission denied: '/root/tmp/kaa-77'

2007/09/25 22:23 IST [HTTPChannel,0,192.168.1.2] 192.168.1.2 - - [25/Sep/2007:21:23:11 +0000] "GET / HTTP/1.1" 500 27261 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7"
Ok a poke around led me to do this:

[EMAIL PROTECTED] freevo-rel-1]$ vim /usr/lib/python2.5/site-packages/kaa/tmpfile.py
[EMAIL PROTECTED] freevo-rel-1]$ export |grep TMP
declare -x GCONF_TMPDIR="/tmp"
declare -x TMP="/root/tmp"
declare -x TMPDIR="/root/tmp"
[EMAIL PROTECTED] freevo-rel-1]$ export TMPDIR=/tmp/
[EMAIL PROTECTED] freevo-rel-1]$ export |grep TMP
declare -x GCONF_TMPDIR="/tmp"
declare -x TMP="/root/tmp"
declare -x TMPDIR="/tmp/"
[EMAIL PROTECTED] freevo-rel-1]$ freevo webserver stop
webserver not running
[EMAIL PROTECTED] freevo-rel-1]$ freevo webserver start

And now the webserver works but as this was never required before is there a bug there somewhere?

John
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to