Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
avus m3 Offline
Senior Member
Posts: 247
Joined: May 2010
Reputation: 0
Post: #51
Wow! Looks like an incredible project!

[Image: widget]
find quote
mrkipling Offline
Senior Member
Posts: 214
Joined: Apr 2011
Reputation: 3
Post: #52
mybrain87 Wrote:Heres everything i did
...

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

Have you checked your Apache logs?
find quote
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #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
find quote
mybrain87 Offline
Junior Member
Posts: 40
Joined: Dec 2008
Reputation: 0
Post: #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
find quote
_Mikie_ Offline
Senior Member
Posts: 220
Joined: May 2011
Reputation: 5
Location: South Africa
Post: #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
find quote
DejaVu Offline
Posting Freak
Posts: 1,155
Joined: May 2010
Reputation: 2
Location: United Kingdom
Post: #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: watched-fanart.jpg]
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
(This post was last modified: 2011-11-03 00:03 by DejaVu.)
find quote
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #57
if anyone has been able to get this to work can you please post your process and maybe your config files please

Thanks
find quote
DejaVu Offline
Posting Freak
Posts: 1,155
Joined: May 2010
Reputation: 2
Location: United Kingdom
Post: #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: watched-fanart.jpg]
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
(This post was last modified: 2011-11-03 02:48 by DejaVu.)
find quote
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #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
find quote
DejaVu Offline
Posting Freak
Posts: 1,155
Joined: May 2010
Reputation: 2
Location: United Kingdom
Post: #60
I still get

ERROR: Site htpcfrontend does not exist!

when doing that way too. Sad

[Image: watched-fanart.jpg]
Maraschino - Web based HTPC Organiser. Keep track of all your web based programs all in one place.
Home Page - Repo - Bug Tracker - Support Forum.
find quote
Post Reply