• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 146
Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC
#46
HarryRosen Wrote:damn I still can't get it to load properly.

I think i did everything right

all applications installed apache2, mod_wsgi python and all the setup tools

made my maraschino.wsgi that looks like this

import sys
sys.path.insert(0, "/var/www/maraschino")
from maraschino import app as application

renamed the settings.py

created the file in /etc/apache2/sites-available called maraschino

that looks like this

<VirtualHost *>
ServerName maraschino

WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

then I ran sudo a2ensite maraschino

then sudo /etc/init.d/apache2 restart

only error I get is

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]

but don't think that is a problem, am I missing something else?

when i goto http://192.168.1.146 which is my xbmc machine i get nothing

Please help Thanks

A couple of things to try.

First, in your wsgi file, try "from htpcfrontend import app as application" (as the .py file is still called htpcfrontend, I didn't want to break people's installations further).

Second, in your browser, try entering the local IP of the webserver (e.g. 192.168.0.3). To find it out type "ifconfig" in a terminal on the machine. If the page loads successfully then you'll need to set up port forwarding to view the site on your WAN IP.
Reply
#47
I followed the instructions and everything from Post 31. I checked it everything like 5 times...seems all to be configured right.

But when i go to 192.168.1.16 (which is my xbmc machine)

I just get:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.


Anybody know whats wrong?
Reply
#48
mybrain87 Wrote:I followed the instructions and everything from Post 31. I checked it everything like 5 times...seems all to be configured right.

But when i go to 192.168.1.16 (which is my xbmc machine)

I just get:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.


Anybody know whats wrong?

try http://192.168.1.16/maraschino
Reply
#49
Aenima99x Wrote:try http://192.168.1.16/maraschino

Just getting an index page:

Index of /maraschino
Reply
#50
Heres everything i did;

1. Installed mod_wsgi, python-setuptools, flask and jsonrpclib (apache & Python were already installed)

2. cloned the git repository into "/var/www/maraschino"

3. copied settings_example.py to settings.py

4. created a wsgi file "maraschino.wsgi" in the directory that I cloned maraschino into with the folowing content (the py is still called htpcfrontend):

import sys
sys.path.insert(0, "/var/www/maraschino")
from htpcfrontend import app as application

5. created an Apache configuration file "maraschino" for the site in sites-available:

<VirtualHost *:80>
ServerName maraschino

WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

6. enable that site with: sudo a2ensite maraschino

7. restarted apache without error with: sudo /etc/init.d/apache2 restart

Meanwhile I already tried rebooting the system which didn't work either.
So what am I missing?
Reply
#51
Wow! Looks like an incredible project!
Image
Reply
#52
mybrain87 Wrote:Heres everything i did
...

Hmmm, nothing really jumps out at me as being wrong.

Have you checked your Apache logs?
Reply
#53
Here is my error log file

[Wed Nov 02 11:50:39 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:53:48 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 11:53:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:56:37 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 11:56:38 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations


when i go to http://192.168.1.146/maraschino all i get it a directory listing
Reply
#54
HarryRosen Wrote:Here is my error log file

[Wed Nov 02 11:50:39 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:53:48 2011] [error] Exception KeyError: KeyError(-1216100608,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:53:48 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 11:53:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:56:37 2011] [error] Exception KeyError: KeyError(-1217415424,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 11:56:37 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 11:56:38 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations


when i go to http://192.168.1.146/maraschino all i get it a directory listing

Seems like I'm not the only one who can't get it to work. Here is my log:

[Wed Nov 02 09:56:25 2011] [notice] Apache/2.2.14 (Ubuntu) configured -- resuming normal operations
[Wed Nov 02 09:57:42 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 09:57:43 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 09:58:48 2011] [error] Exception KeyError: KeyError(140715076155200,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 09:58:48 2011] [error] Exception KeyError: KeyError(140715076155200,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 09:58:48 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 09:58:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 10:03:41 2011] [notice] SIGUSR1 received. Doing graceful restart
[Wed Nov 02 10:03:41 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 10:03:41 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 10:03:41 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Wed Nov 02 10:03:47 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 10:03:47 2011] [error] Exception KeyError: KeyError(140207005849408,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Wed Nov 02 10:03:47 2011] [notice] caught SIGTERM, shutting down
[Wed Nov 02 10:03:48 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
Reply
#55
I haven't downloaded or tried this yet but was just looking through the github pages and install instruction and screen shots and I must say it looks gorgeous!

Coming from mediafrontpage where I helped out a little I would like to give my two cents in saying that requiring a web server is a bad idea. This is where most of users come stuck. I would suggest if possible to find a python framework that allows you to incorporate everything together much like sickbeard which doesn't need a separate web server. Other than that it looks amazing and I can't wait to try it out.

Regards
Reply
#56
This is seriously impressive! I too have been using/editing/struggling with Mediafrontpage to the point of giving up.

I thought the JSON RPC API changes would be its death, but see this as its replacement.

Could I make a coulpe of suggestions/requests...

hard drive capacity widget and frontend settings editing.

Will be installing this now. Smile
Image
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
Reply
#57
if anyone has been able to get this to work can you please post your process and maybe your config files please

Thanks
Reply
#58
Here is my FULL process for XBMCLive from the start that does not work... yet.
XBMCLive with 31 October 2011 nightly build - users available are "xbmc" and "root". (WSGI will be blocked if run as root.) As far as I can tell XBMCLive does not use a user group.

to make sure apache2 was installed correctly
Code:
sudo apt-get install apache2

installed mod_wsgi as required.
Code:
sudo apt-get install libapache2-mod-wsgi

made sure python was installed and uptodate.
Code:
sudo apt-get install python

setup python-setuptools as required.
Code:
sudo apt-get install python-setuptools

'Easy Installed' Flask
Code:
sudo easy_install Flask

'Easy Installed' jsonrpclib
Code:
sudo easy_install jsonrpclib

Install git if not done already
Code:
sudo apt-get install git-core

Clone the repo to the correct place
Code:
sudo git clone https://github.com/mrkipling/maraschino.git /var/www/htpc-frontend

Created the correct settings.py file for htpc-frontend to run.
Code:
sudo cp /var/www/htpc-frontend/settings_example.py /var/www/htpc-frontend/settings.py

Create a WSGI file
Code:
sudo nano /var/www/htpc-frontend/htpcfrontend.wsgi

Paste in this file -
Code:
import sys
sys.path.insert(0, "/var/www/htpc-frontend")
from htpcfrontend import app as application

So far so good - that's the easy-ish bit out of the way.

Apache
On XMBLive is located in /etc/apache2
We have 'sites-available' and 'sites-enabled' folders. As far as I can tell, 'sites-available' is ignored (available does not mean it's enabled!).

So 'sites-enabled' should have a new file in it called 'htpcfrontend.conf' with the following in it -

Code:
<VirtualHost *>
ServerName htpcfrontend

WSGIDaemonProcess htpcfrontend user=xbmc threads=5
WSGIScriptAlias / /var/www/htpc-frontend/htpcfrontend.wsgi

<Directory /var/www/htpc-frontend>
WSGIProcessGroup htpcfrontend
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

Enable the site (just incase) -
Code:
a2ensite htpcfrontend
= ERROR: Site htpcfrontend does not exist!
Ignoring that - Restarted XBMCLive machine just to make sure Apache restarts properly. It does.

Going to http://xbmclive, http://xbmclive/htpc-frontend, http://192.168.0.4 or http://192.168.0.4/htpc-frontend still just brings up the directory listing.
http://htpcfrontend brings up a 404 Error.

I cannot help thinking something needs enabling in mod_wsgi in the conf's somewhere - removing a '#' perhaps in /etc/apache2/mods-enabled/wsgi.conf?

If mrkipling can go through the above and confirm it's all good. There is something still seriously wrong - this being the case and to save a lot more headaches, can I suggest - http://www.cherrypy.org/ as per SB and CP. Wink

Has ANYONE got this working properly yet on any system other than mrkipling!?
Image
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
Reply
#59
under the apache part put the file in the sites-available part and when you run the

a2ensite htpcfrontend

it should put it in the sites-enabled

thats what I did, but it still won't start only list the dir structure
Reply
#60
I still get

ERROR: Site htpcfrontend does not exist!

when doing that way too. Sad
Image
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 146

Logout Mark Read Team Forum Stats Members Help
Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC4