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
SlackMaster Offline
Donor
Posts: 51
Joined: Jul 2010
Reputation: 0
Information  RE: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC Post: #1701
Hello,

First off, awesome creation. My hat's off to those that spend their time working on this. I've donated $20 to the cause. Keep up the great work and thanks for everything!

I have Maraschino running on openelec. Like others, I had issues with the disk drives in the latest beta 4 eden release. To fix this, I did like the post said and created an autostart.sh file in the .config directory (if you're a noob like me and using a PC to make your files, be sure to use an editor like textpad and select "UNIX" not "PC" when saving the file).

Here's my issue now, Maraschino is running on my XBMC machine, but my entire media library is on a server in the other room, I'm streaming via samba shares. To get the samba shares to show up, I had to mount them. So again, I followed the directions of others and added some additional lines to my autostart.sh file. Here's what I have so far.

Code:
#!/bin/sh
(sleep 20; \
mount -t cifs "//192.168.0.100/tv" /storage/tvshows -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive" "/storage/Movie Archive 1" -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive 2" "/storage/Movie Archive 2" -o username=myusername,password=mypassword
python /storage/.xbmc/addons/service.web.maraschino/maraschino-cherrypy.py
)&

Everything starts up fine, but here's what my disk space module looks like:

[Image: diskspace.png]

As you can see, the used space on the tv share seems a bit off. I assume this is because that share is actually 4 2TB drives in a JBOD, whereas the other two drives are stand alone. ( I may be wrong about that ).

Anyone else got any idea what might be causing this issue and if so, perhaps how to fix it?

Thanks

Thank you to everyone for this awesome software!
find quote
steve1977 Offline
Posting Freak
Posts: 1,576
Joined: Dec 2006
Reputation: 0
Post: #1702
(2012-06-09 11:27)guy_smiley:) Wrote:  I swear I do this every couple of months Tongue

Thanks, this is helpful. I am conscious that you have been helping before, so even more appreciated.

Two more questions:

1) I assume that this description is what works with Apache. I keep reading that Maraschino may ditch support for Apache. Under this circumstance, what would I need to do to set it up with cherrypy (still only opening port 80).

2) I just installed Apache server (UniServer) at a friend's computer and set up everything as I thought I had done myself before. Issue is that Maraschino does not show up. Instead, I am getting the file directory (authors, maraschino.py, etc.). I have the wsgi-file set-up and also thought I had done everything done the same way as before. Any idea what I could have done wrong?

Thanks in advance!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Member
Posts: 88
Joined: May 2011
Reputation: 0
Post: #1703
(2012-06-09 21:02)steve1977 Wrote:  
(2012-06-09 11:27)guy_smiley:) Wrote:  I swear I do this every couple of months Tongue

Thanks, this is helpful. I am conscious that you have been helping before, so even more appreciated.

Two more questions:

1) I assume that this description is what works with Apache. I keep reading that Maraschino may ditch support for Apache. Under this circumstance, what would I need to do to set it up with cherrypy (still only opening port 80).

2) I just installed Apache server (UniServer) at a friend's computer and set up everything as I thought I had done myself before. Issue is that Maraschino does not show up. Instead, I am getting the file directory (authors, maraschino.py, etc.). I have the wsgi-file set-up and also thought I had done everything done the same way as before. Any idea what I could have done wrong?

Thanks in advance!

I had this set up before. The only issue is you need to have Maraschino in it's own directory, i.e.: ,myserver.dyndns.org/maraschino. Add the following to your httpd.conf;
Code:
ProxyPass /maraschino http://localhost:7000/
ProxyHTMLURLMap http://localhost:7000/ /maraschino/
<Location /maraschino>
ProxyPassReverse http://localhost:7000/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /maraschino/
ProxyHTMLURLMap /maraschino/ /maraschino/
</Location>

Have you set up the file maraschino in sites-available and enabled it? This is what enables the wsgi, not just having the maraschino.wsgi in that folder;
Code:
<VirtualHost *>
    WSGIDaemonProcess maraschino user=xbmc group=www-data threads=5
    WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

    <Directory /var/www/maraschino>
        WSGIProcessGroup maraschino
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>
find quote
steve1977 Offline
Posting Freak
Posts: 1,576
Joined: Dec 2006
Reputation: 0
Post: #1704
(2012-06-10 00:05)guy_smiley:) Wrote:  Have you set up the file maraschino in sites-available and enabled it? This is what enables the wsgi, not just having the maraschino.wsgi in that folder;
Code:
<VirtualHost *>
    WSGIDaemonProcess maraschino user=xbmc group=www-data threads=5
    WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi

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

I tried adding the lines above, but this doesn't work. After adding, I cannot start the service. I checked my "old" working install and noticed that I had added the following line:

> LoadModule wsgi_module modules/mod_wsgi.so

I also did add this line, but unfortunately, this did not improve anything...

Any thoughts?

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Member
Posts: 88
Joined: May 2011
Reputation: 0
Post: #1705
(2012-06-10 06:35)steve1977 Wrote:  I tried adding the lines above, but this doesn't work. After adding, I cannot start the service. I checked my "old" working install and noticed that I had added the following line:

> LoadModule wsgi_module modules/mod_wsgi.so

I also did add this line, but unfortunately, this did not improve anything...

Any thoughts?

Yes actually. Based on that;
Code:
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod wsgi

That should install and then enable it.
find quote
steve1977 Offline
Posting Freak
Posts: 1,576
Joined: Dec 2006
Reputation: 0
Post: #1706
Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
guy_smiley:) Offline
Member
Posts: 88
Joined: May 2011
Reputation: 0
Post: #1707
(2012-06-10 07:51)steve1977 Wrote:  Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Sorry, no idea unfortunately. I believe some other users use Windows that might be able to help you. I'm trying to avoid it at the moment Tongue
find quote
steve1977 Offline
Posting Freak
Posts: 1,576
Joined: Dec 2006
Reputation: 0
Post: #1708
(2012-06-10 08:00)guy_smiley:) Wrote:  
(2012-06-10 07:51)steve1977 Wrote:  Thanks for your continued help. I am running Uniserver on Win7x64. I have installed activepythonx32 and uniserverx32. I have downloaded a pre-compiled modwsgi.so and added the line above. Unfortunately, it does not work. Uniserver comes with Apache 2.4 and modwsgi appears to be for Apache 2.2. Could this be the issue and any idea how to resolve i?

Sorry, no idea unfortunately. I believe some other users use Windows that might be able to help you. I'm trying to avoid it at the moment Tongue

Thanks for your replies.

All, has anyone set-up Maraschino on Apache successfully with Win7x64. I am struggling to get wsgi running and thus cannot host Maraschino. Any help appreciated!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
SlackMaster Offline
Donor
Posts: 51
Joined: Jul 2010
Reputation: 0
Post: #1709
(2012-06-09 11:55)SlackMaster Wrote:  Hello,

First off, awesome creation. My hat's off to those that spend their time working on this. I've donated $20 to the cause. Keep up the great work and thanks for everything!

I have Maraschino running on openelec. Like others, I had issues with the disk drives in the latest beta 4 eden release. To fix this, I did like the post said and created an autostart.sh file in the .config directory (if you're a noob like me and using a PC to make your files, be sure to use an editor like textpad and select "UNIX" not "PC" when saving the file).

Here's my issue now, Maraschino is running on my XBMC machine, but my entire media library is on a server in the other room, I'm streaming via samba shares. To get the samba shares to show up, I had to mount them. So again, I followed the directions of others and added some additional lines to my autostart.sh file. Here's what I have so far.

Code:
#!/bin/sh
(sleep 20; \
mount -t cifs "//192.168.0.100/tv" /storage/tvshows -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive" "/storage/Movie Archive 1" -o username=myusername,password=mypassword
mount -t cifs "//192.168.0.100/Movie Archive 2" "/storage/Movie Archive 2" -o username=myusername,password=mypassword
python /storage/.xbmc/addons/service.web.maraschino/maraschino-cherrypy.py
)&

Everything starts up fine, but here's what my disk space module looks like:

[Image: diskspace.png]

As you can see, the used space on the tv share seems a bit off. I assume this is because that share is actually 4 2TB drives in a JBOD, whereas the other two drives are stand alone. ( I may be wrong about that ).

Anyone else got any idea what might be causing this issue and if so, perhaps how to fix it?

Thanks

FYI... I figured out why this is happening. It's because my server is running on an installation of Windows Home Server 2003. I have (4) 2TB Drives and WHS uses windows drive extender to JBOD these into one logical drive, where I have my tv share located. It seems there is a bug where explorer (and several other places) show the total disk space to be that of the initial drive of the JBOD rather than the entire combined sizes. Therefore it shows 2.82TB used of 1.8TB total, which makes the OS go all funky, hence the issue in XBMC showing the wrong disk size and I assume also causing the issue with Maraschino. It's a small eye sore, but apparently one I'll have to live with.

Just thought I'd update in case anyone else ran into this issue.

Thank you to everyone for this awesome software!
find quote
steve1977 Offline
Posting Freak
Posts: 1,576
Joined: Dec 2006
Reputation: 0
Post: #1710
Quick follow-up. Anyone succeeded to get WSGI working on win7? It used to work for me before, but does not work on clean-install. My suspiciion is WSGI not being compatible with apache 2.4 (which came with the new uniserver install), but just a suspicion.

any help welcome!!!

Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 12 GB DDR3 | 256 GB SSD, 40 TB (1 x 4 TB, 6 x 3TB, 9 x 2 TB)
HTPC 1: Apple Mac Mini (mid-2011) | Intel Core i5 2.5 GHz | 4GB DDR3 | 500 GB
HTPC 2: Apple Mac Mini (mid-2007) | Intel Core 2 Duo 2.0 GHz | 4 GB DDR2 | 16 GB SSD
find quote
Post Reply