Results 1 to 10 of 10

Thread: Run python script == CouchPotato

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    20

    Run python script == CouchPotato

    Hi,
    I'm attempting to run CouchPotato, a python script, since no package yet exists for Fedora 16/Vortexbox.

    The application instructions are very sparse:
    1. extract anywhere
    2. run "python CouchPotato.py -d" (daemon mode)

    I'm unsure where the best location for this directory should be on Vortexbox. The directory may contain a config file and the python script file.
    Will I need to install this as a service, to have it start at boot? I'd sure like to be able to start/stop the daemon.

    Any help is appreciated.

  2. #2
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    You're going to have to do some scripting to get it working.

    When I make new daemon's, I usually copy one that already exists on VortexBox. The ripping service /etc/rc.d/init.d/vortexbox is a good place to start. Here's an example of one for installing and running qBittorrent as a service, auto-started at boot: http://info.vortexbox.org/tiki-index...ge=qBittorrent

    I'd put CouchPotato in /opt/:
    Code:
    cd /opt
    git clone https://github.com/RuudBurger/CouchPotato
    I'd then make a small bash script that executes the python script, and call the bash script in your service script under "prog".

    I'll play around with CouchPotato and report back with a wiki if I get it working myself. Good luck!

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    20
    Thanks for the direction. I'll blunder on and try to cobble something togather. Please let me know if you set up a wiki. My solution may work, but it won't be elegant at my experience level.

    Also, I really appreciate the support. Most Senior members on many boards I have visited over the years tend to be irrated by novice requests. And I can understand this response to new users who fail to even search out the basics.
    It's fantastic you kept the patience to help us less experienced users.

  4. #4
    Junior Member
    Join Date
    Mar 2009
    Posts
    20
    I found this link which may help.
    http://forums.amahi.org/viewtopic.php?f=26&t=2594
    It has a script file for Coachpotato.
    What do you think?

  5. #5
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    Thanks for the kind words. I looked at the script in question (alternative link here: http://pastebin.com/SFe6Z7Qd) but it seemed overly complex.

    I created a wiki of what seems to work on my end: http://info.vortexbox.org/tiki-index...ge=CouchPotato

    Happy hacking!

  6. #6
    Junior Member
    Join Date
    Mar 2009
    Posts
    20
    Wow, you saved me hours of cobbling togather and testing code (not to mention oodles of more support questions. lol). I will implement your wiki this evening. Many thanks.

  7. #7
    Junior Member
    Join Date
    Mar 2009
    Posts
    20
    A little more advise, please.

    I followed the wiki
    (mostly. I was lazy, so I created the bash script in windows notepad and copied it to my Vortexbox. I opened it with nano but there were no unusual characters. Could this be the source of my problem?)

    Process fails with error as below:

    EXESTART= /etc/rc.d/init.d/couchpotato start (code=exited, status=203/EXEC)

    I've read this could be a user permission error or a run error for exec
    But both python.py and couchpotato are owned by root and I made couchpotato executable.

  8. #8
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    Well I just started from scratch and followed the wiki, rebooted, and everything worked great for me.

    Where exactly are you seeing this error? Please try starting from scratch and following the wiki closely. Using nano is just as easy as notepad if you're remotely logged in (i.e. copy + paste); see http://info.vortexbox.org/tiki-index.php?page=Login for some good ways to remotely logged in, since I don't know if you're doing this or with keyboard and monitor.

    Also post the output of these if the above doesn't work:
    Code:
    systemctl status couchpotato.service
    and
    Code:
    ls -lh /etc/rc.d/init.d/couchpotato

  9. #9
    Junior Member
    Join Date
    Mar 2009
    Posts
    20
    Oh I do apologize. It was problems caused by notepad. I had been using a kb and monitor on my box, but I followed your advise and used CryptoTerm; much easier.
    After removing the coachpotato file, I followed your wiki, used nano and pasted your code directly. A complete success on reboot. Thanks for your help.

  10. #10
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    Great to hear! Feel free to fill in the blanks on our CouchPotato wiki with more info on graphical configuration of newsgroups and torrent clients. Actually, we're lacking a wiki on configuring Usenet providers and setting up newsgroup clients. That would be a great addition as a wiki on its own.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •