Install HTPCFrontend aka maraschino on unraid


HarryRosen

Recommended Posts

I wanted to know if it would be possible to install this addon that was created for xbmc. it's a frontend server that connected to the xbmc and provides a great deal of info, it's writen in python so that shouldn't be a problem as sickbeard and couchpotato run fine, the problem is the additional components that have to be installed, I was wondering if I can install the following parts

 

python-setuptools, so that you can use easy_install for the following:

•CherryPy (easy_install cherrypy)

•Flask (easy_install Flask)

•Flask-SQLAlchemy (easy_install Flask-SQLAlchemy)

•jsonrpclib (easy_install jsonrpclib)

 

this is the project I am talking about

 

http://forum.xbmc.org/showthread.php?t=113136

http://www.maraschinoproject.com

 

Thanks for any info

Link to comment
  • 4 weeks later...
  • 2 months later...

Yeah, I'd really like to run Maraschino off my unRAID box, but seeing as I'm not very experienced with python and whatnot I'm going to have to wait for a simple solution or a detailed tutorial that outlines exactly how to get it up and running.

 

Its a shame, because the interface looks nice and I'd definitely like to use it.

 

...and now I play the waiting game.

Link to comment

I took his script and just created a .sh file using notepad++ and named it installmaraschino.sh and upgrademaraschino.sh

 

I copied it to a folder via WinSCP, did a chmod 777 on the files and then ran it using the following command.

 

./installmaraschino.sh

 

and

 

./upgrademaraschino.sh if you want to get the latest version

Link to comment

I wrote the Maraschino plugin for v5.

 

It appears to work well, although for some people I've an issue where it doesn't start first time, but stopping the service and restarting it resolves the issue.  Doesn't happen for everyone and would love some feedback as to whether it works for you.

 

It was the first time I'd written a plugin, so I've probably missed something silly and easily fixable :)

 

Chris

Link to comment

I wrote the Maraschino plugin for v5.

 

It appears to work well, although for some people I've an issue where it doesn't start first time, but stopping the service and restarting it resolves the issue.  Doesn't happen for everyone and would love some feedback as to whether it works for you.

 

It was the first time I'd written a plugin, so I've probably missed something silly and easily fixable :)

 

Chris

 

I was one of those on XBMC Forums who has trouble with it starting every time - not really a big deal though! Just wondering where the best place to keep an eye open for plugin updates is? That XBMC thread is busy, updates can get missed easily!

Link to comment

I wrote the Maraschino plugin for v5.

 

It appears to work well, although for some people I've an issue where it doesn't start first time, but stopping the service and restarting it resolves the issue.  Doesn't happen for everyone and would love some feedback as to whether it works for you.

 

It was the first time I'd written a plugin, so I've probably missed something silly and easily fixable :)

 

Chris

 

 

i am one that doenst work.....i have choosen 8084 port started but nothing...stopped returned itself to port 7000 started it again but no luck....havent tried to reboot,running beta 14

Link to comment

i am one that doenst work.....i have choosen 8084 port started but nothing...stopped returned itself to port 7000 started it again but no luck....havent tried to reboot,running beta 14

 

I'm back in front on my UnRaid machine in a couple of days - I'll have another dig around and try and resolve this properly then.

Link to comment

Hi,

 

I've had a look at the issue and I'm not sure what the problem is.  When you start your unRaid server and Maraschino doesn't start can you tell me if there is anything in

 

/var/run/maraschino

 

Does ps -ef show Maraschino running?

 

If there is a file in /var/run/maraschino then the script won't do much because it thinks it's already running (stopping it should remove the contents of /var/run/maraschino), i've updated the 0.3 plugin so that it clears the pid file on server startup - in case that affects it.

 

What is the contents of /boot/config/plugins/maraschino/maraschino.cfg?

What is the contents of settings.py in the INSTALLDIR? 

 

Cheers

Chris

Link to comment

in var/run/maraschino i have a pid file open it and it shows 18961 18962

 

root@HP:~# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 14:09 ?        00:00:03 init
root         2     0  0 14:09 ?        00:00:00 [kthreadd]
root         3     2  0 14:09 ?        00:00:00 [ksoftirqd/0]
root         6     2  0 14:09 ?        00:00:00 [migration/0]
root         7     2  0 14:09 ?        00:00:00 [migration/1]
root         9     2  0 14:09 ?        00:00:00 [ksoftirqd/1]
root        11     2  0 14:09 ?        00:00:00 [khelper]
root        12     2  0 14:09 ?        00:00:00 [kworker/u:1]
root       146     2  0 14:09 ?        00:00:25 [sync_supers]
root       148     2  0 14:09 ?        00:00:00 [bdi-default]
root       150     2  0 14:09 ?        00:00:00 [kblockd]
root       258     2  0 14:09 ?        00:00:00 [ata_sff]
root       268     2  0 14:09 ?        00:00:00 [khubd]
root       373     2  0 14:09 ?        00:00:00 [rpciod]
root       404     2  0 14:09 ?        00:00:40 [kswapd0]
root       464     2  0 14:09 ?        00:00:00 [fsnotify_mark]
root       483     2  0 14:09 ?        00:00:00 [nfsiod]
root       491     2  0 14:09 ?        00:00:00 [crypto]
root       660     1  0 14:09 ?        00:00:00 /sbin/udevd --daemon
root       748     2  0 14:09 ?        00:00:00 [scsi_eh_0]
root       750     2  0 14:09 ?        00:00:00 [scsi_eh_1]
root       751     2  0 14:09 ?        00:00:00 [scsi_eh_2]
root       772     2  0 14:09 ?        00:00:00 [scsi_eh_3]
root       773     2  0 14:09 ?        00:00:00 [scsi_eh_4]
root       774     2  0 14:09 ?        00:00:00 [scsi_eh_5]
root       776     2  0 14:09 ?        00:00:00 [kworker/u:3]
root       780     2  0 14:09 ?        00:00:00 [scsi_eh_6]
root       781     2  0 14:09 ?        00:00:00 [usb-storage]
root       883     1  0 14:09 ?        00:00:00 /usr/sbin/syslogd -m0
root       887     1  0 14:09 ?        00:00:00 /usr/sbin/klogd -c 3 -x
root       921   660  0 14:09 ?        00:00:00 /sbin/udevd --daemon
bin        996     1  0 14:09 ?        00:00:00 /sbin/rpc.portmap
root      1000     1  0 14:09 ?        00:00:00 /sbin/rpc.statd
root      1010     1  0 14:09 ?        00:00:00 /usr/sbin/inetd
root      1017     1  0 14:09 ?        00:00:00 /usr/sbin/ntpd -g -p /var/run/nt
root      1024     1  0 14:09 ?        00:00:00 /usr/sbin/acpid
81        1034     1  0 14:09 ?        00:00:00 /usr/bin/dbus-daemon --system
root      1039     1  0 14:09 ?        00:00:00 /usr/sbin/crond -l notice
daemon    1041     1  0 14:09 ?        00:00:00 /usr/sbin/atd -b 15 -l 1
root     11599     1  0 14:11 ?        00:00:01 /usr/local/sbin/emhttp
root     11660     2  0 14:11 ?        00:00:00 [mdrecoveryd]
root     11671     2  0 14:11 ?        00:00:00 [spinupd]
root     11772     1  0 14:11 ?        00:00:00 /usr/sbin/nmbd -D
root     11793     1  0 14:11 ?        00:00:00 /usr/sbin/smbd -D
root     11827 11793  0 14:11 ?        00:00:00 /usr/sbin/smbd -D
root     11865     2  0 14:11 ?        00:00:43 [unraidd]
root     12041     2  0 14:11 ?        00:00:00 [reiserfs]
root     12408     1  6 14:11 ?        00:06:01 /usr/local/sbin/shfs /mnt/user0
root     12431     1  0 14:11 ?        00:00:06 /usr/local/sbin/shfs /mnt/user -
nobody   18844     1  0 14:11 ?        00:00:27 python /usr/local/couchpotato/Co
root     18876     1  0 14:11 ?        00:00:03 /root/.dropbox-dist/dropbox
root     19022     1  0 14:11 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --d
mysql    19134 19022  0 14:11 ?        00:00:01 /usr/libexec/mysqld --basedir=/u
nobody   19175     1  5 14:11 ?        00:04:25 python /usr/local/sabnzbd/SABnzb
nobody   19238     1  0 14:12 ?        00:00:20 python /usr/local/sickbeard/Sick
nobody   19253     1  0 14:12 ?        00:00:07 transmission-daemon --port 9091
nobody   19426     1  0 14:15 ?        00:00:06 /usr/bin/python /usr/bin/flexget
root     19473     1  0 14:16 tty1     00:00:00 /sbin/agetty 38400 tty1 linux
root     19474     1  0 14:16 tty2     00:00:00 /sbin/agetty 38400 tty2 linux
root     19475     1  0 14:16 tty3     00:00:00 /sbin/agetty 38400 tty3 linux
root     19476     1  0 14:16 tty4     00:00:00 /sbin/agetty 38400 tty4 linux
root     19477     1  0 14:16 tty5     00:00:00 /sbin/agetty 38400 tty5 linux
root     19478     1  0 14:16 tty6     00:00:00 /sbin/agetty 38400 tty6 linux
root     19479   660  0 14:16 ?        00:00:00 /sbin/udevd --daemon
root     19833 11793  0 14:43 ?        00:00:00 /usr/sbin/smbd -D
root     19917     2  0 14:45 ?        00:00:01 [kworker/0:0]
root     20340     2  0 15:12 ?        00:00:00 [kworker/1:0]
root     20416     2  0 15:17 ?        00:00:00 [kworker/1:2]
root     20494     2  0 15:22 ?        00:00:00 [kworker/0:2]
root     20641     2  0 15:32 ?        00:00:00 [flush-8:16]

 

maraschino.cfg

# maraschino configuration
SERVICE="enable"
INSTALLDIR="/usr/local/maraschino"
DATADIR="/mnt/cache/maraschino"
RUNAS="nobody"

 

install dir? wich file?

 

regards

maraschino.JPG.61c502c243c57cc1cccafebeb16671e6.JPG

Link to comment

in var/run/maraschino i have a pid file open it and it shows 18961 18962

 

 

Ahh, that might explain it - I used to get the double PID appearing when I first wrote the script - it seems to happen when both the 'at' command and python are running - I fixed it by increasing the sleep time from 1 to 5 seconds - maybe just increasing it again to 10 secs will resolve the problem.

 

I've updated the plugin - try this one

 

http://dl.dropbox.com/u/6592585/XBMC/maraschino-0.4.plg

 

and see if it helps.

Link to comment
  • 3 months later...

Maraschino has gone through some major changes and now supports daemon, port, pidfile, logfile, database, develop and webroot args.

maraschino-cherrypy.py has been removed and Maraschino.py is now the only way to run (it still uses the cherrypy server).

settings.py is also gone with the new args covering all settings options (auth is now in the ui)

 

This plugin will need to be updated to reflect this.

 

so something like: python /usr/local/maraschino/Maraschino.py --pidfile /var/run/maraschino/maraschino.pid --log /mnt/cache/.maraschino/maraschino.log --database /mnt/cache/.maraschino/maraschino.db

 

In the future i intend to have a datadir arg which will cover database, log and also anything we are caching (only trakt images atm)

 

BTW there is also an auto updater now.

 

Cheers.

 

 

Link to comment
  • 2 months later...

I installed Maraschino a few months ago and has been working great even autoupdates for me without any issues, if anyone wants to install it then you can follow this guideline that I found on the maraschino website thanks to acruther for putting this together.

 

http://forums.maraschinoproject.com/showthread.php?tid=20&page=3

 

 

Anyway, the steps I did were:

 

git clone https://github.com/mrkipling/maraschino.git /mnt/cache/.maraschino

 

[i edited the /mnt/cache/default file with a text editor to update my app path]

 

mkdir /etc/default

 

cp -p /mnt/cache/.maraschino/initd /etc/rc.d/rc.maraschino

cp -p /mnt/cache/.maraschino/default /etc/default/maraschino

 

chmod a+x /etc/rc.d/rc.maraschino

 

saved init-functions to /lib/lsb/init-functions (rename the file attached and delete the .txt extension )

saved start-stop-daemon to /sbin/start-stop-daemon (rename the file attached and delete the .txt extension )

 

/etc/rc.d/rc.maraschino start

 

voila - works!

 

I actually changed my install of the initd file to go to /etc/rc.d/rc.maraschino just to keep it not only cleaner but I was unsure if putting it in a init.d folder would fail it to autostart on a reboot.

start-stop-daemon.txt

start-stop-daemon.txt

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.