2011-11-08, 00:16
I got the wsgi file working but I can't save anything with the applications
lastimp Wrote:Sorry for the noob questions, but I can't for the life of me get this to run on Ubuntu 10.04 I keep getting...
"You need to specify DATABASE in settings.py"
when I run "python setup.py"
and I do have the Database path specified in "settings.py"
DATABASE = '/var/www/maraschino/maraschino.db'
mrkipling Wrote:Serving from a location other than root? I'm not entirely sure, but it should be possible to do now, I think? Although I haven't tried to do so myself.
[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
HarryRosen Wrote:I got the wsgi file working but I can't save anything with the applications
sudo chmod 755 /var/www -R
Zenshi Wrote:When changing the WSCGIScriptAlias to /maraschino (so as to server the page at http://server/maraschino) this is what I get on my apache error.logI think you've missed a tree.
Code:[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
I'm thinking something is hardcoded to run as "/" instead of being able to run of a location.
MrK, could you try to see if you get the same errors in your system?
Cheers,
Zenshi.
DejaVu Wrote:I think you've missed a tree.
File does not exist: /var/www/static
is meant to be
/var/www/maraschino/static
Hence the files not existing.
Maraschino is created using relative links.
Nothing is absolute so should work no matter where you install it. I think has something to do with your WSGI file.
Zenshi Wrote:When changing the WSCGIScriptAlias to /maraschino (so as to server the page at http://server/maraschino) this is what I get on my apache error.log
Code:[Mon Nov 07 22:36:02 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:06 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:11 2011] [error] [client 192.168.10.3] File does not exist: /var/www/xhr, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
[Mon Nov 07 22:36:14 2011] [error] [client 192.168.10.3] File does not exist: /var/www/static, referer: http://server/maraschino
I'm thinking something is hardcoded to run as "/" instead of being able to run of a location.
MrK, could you try to see if you get the same errors in your system?
Cheers,
Zenshi.
drdextro Wrote:Hi there,
I really love youre work so far. I got it to work on a win7 machine and OSX atm.
Also I commited a little add for the Sabnzbd module.
Keep up the good work!
mrkipling Wrote:Hmm - appears to be because the XHR URLs in the JS are hard-coded as (for example) "/xhr/controls/stop", so they're relative to the root. Same goes for static media.
For now at least, serving this app on its own domain is the better choice. I'm guessing that you have a different web interface or site running on port 80 already. If this is the case then perhaps you could serve it on a different port?
Zenshi Wrote:Yes, that's the case, I wanna install it on my main web server (testing it on my macbook) but have other things already being served there.
Since you changed things about, how do I change the port now?
Cheers,
Zenshi.
vdrfan Wrote:Too bad it's standalone. Would be nice if it could be a XBMC web addon.