ijuarez Posted February 12, 2014 Share Posted February 12, 2014 I would vote for Influencers to update his plugin for us all. +1 Quote Link to comment
hernandito Posted February 12, 2014 Share Posted February 12, 2014 Or possibly make an alternative plugging... for this version. Quote Link to comment
zoggy Posted February 14, 2014 Share Posted February 14, 2014 i didn't make it work. i switched everything in the plg and the .cfg to mr-orange and the right Branch. but after installation and successful git clone it's not starting. dunno maybe someone can make a working plg for the branch (dunno which brand is the best and latest from mr-orange to get sublime!) afaik you can copy your config.ini and sickbeard.db and even autoprocessTV.cfg to the new branch without adding everything again (http://sickbeard.com/forums/viewtopic.php?p=12901&sid=1e234bb89ca3f2efe43a721e25ab1368#p12901) you really should start with a fresh ini/db when changing forks of sickbeard. 3rd party forks usually change the ini/db and dont gracefully handle the migration on switching. (just like the official sb version isnt going to support their changes if you want to go back). Quote Link to comment
CyberMew Posted February 17, 2014 Share Posted February 17, 2014 Is he still not planning to update Transmission to the latest version? Any reason why? Some features are only available in the 2.80+ which would really be good to have. Quote Link to comment
trurl Posted February 17, 2014 Share Posted February 17, 2014 Is he still not planning to update Transmission to the latest version? Any reason why? Some features are only available in the 2.80+ which would really be good to have. I don't think he is planning to leave it on the old version. I think he doesn't have any immediate plans to do anything. He hasn't been very active on the forums lately. Such is life. Quote Link to comment
botez Posted February 19, 2014 Share Posted February 19, 2014 I found a fix for those of you who are having the issue with the port in the Couchpotato settings always being wrong (I guess this would be anyone who is using the plugin via the Unraid WebGUI and doesn't use the default CP port) To see if this effects you, simply do the following grep command on your settings.conf file: grep "port = " /boot/config/plugins/couchpotato_v2/settings.conf and if you see something like: port = 8087 port = 8087 port = 8087 smtp_port = 8087465 then you have the problem. EDIT: Go to the next page to see the updated fix. Quote Link to comment
mst3kroqs Posted February 19, 2014 Share Posted February 19, 2014 Unless I'm misunderstanding how these plugins work - it appears they do a 'git clone' or download a .tgz (in the case of sabnzbd) each time the system is booted, and the array is started. This seems to take quite a while, and also there are a number of scenarios where, even though the Internet might be down, and most of these apps would be less-than-useful for that period of time, I would still want the array to become active and locally useful in the shortest time possible. Is there a logic in the plugin scripts which would look for a local copy of the app/archive, which could be copied/used in lieu of the 'git clone' or download? I understand the benefit of cloning/downloading the latest version, but this would also have the advantage of not being subjected to occasional regressions that could creep in. Thanks! Quote Link to comment
kricker Posted February 19, 2014 Share Posted February 19, 2014 I found a fix for those of you who are having the issue with the port in the Couchpotato settings always being wrong (I guess this would be anyone who is using the plugin via the Unraid WebGUI and doesn't use the default CP port) To see if this effects you, simply do the following grep command on your settings.conf file: grep "port = " /boot/config/plugins/couchpotato_v2/settings.conf and if you see something like: port = 8087 port = 8087 port = 8087 smtp_port = 8087465 then you have the problem. The fix is very simple -- I'm guessing at some point the position of the ports in the settings.conf file changed or something was removed. The plugin just needs to reflect this by changing the lines that read and write the port value. For instance, this line in the .plg file: sed -i 's!port = '"`cat "$CONFIGFILE" | grep 'port = ' | cut -d' ' -f3 | awk 'NR==2'`"'!port = '"$PORT"'!' "$CONFIGFILE" The NR==2 is telling it to look at the second instance of "port = xxx" in the file, but it really needs to be looking at the FIRST instance. So we need to change "NR==2" to "NR==1" This needs to be done in several places, so the easiest way is a simple sed find and replace command: sed -i 's/NR==2/NR==1/g' /boot/config/plugins/couchpotato_v2_unplugged.plg You'll also need to fix your setting.conf file by removing the port values. I use port 8087, but your port may be different, so make sure you enter the right value or this won't do anything. sed -i 's/port = 8087/port = /g' /boot/config/plugins/couchpotato_v2/settings.conf After that you'll need to reinstall the plugin installplg /boot/config/plugins/couchpotato_v2_unplugged.plg Finally, you should be able to set your port value in the unraid WebGUI and start up couchpotato. I just tried this out and it worked like a charm. I'll try to update the plugin on github as well... Well, that kinda worked for me. The port number still gets put everywhere there is a "port=" in the settings.conf file. For example in the [xmpp] section and the [growl] section. For some reason every time CP starts up it acts like I need to configure it even though I have a data directory set. How can I get it to use my previous install settings? Looks like I spoke to soon. I stopped the plugin then I ended up with this mess in the webGUI settings. This happens all the time with CP now. ...and now my couchpotato_v2.cfg file looks like this: #CouchPotato v2 configuration: SERVICE="enable" INSTALLDIR="/mnt/cache/Couchpotato" CONFIGFILE="/boot/config/plugins/couchpotato_v2/settings.conf" RUNAS="nobody" PLG_STORAGESIZE="yes" PLG_DATACHECK="https://github.com/RuudBurger/CouchPotatoServer" INSTALLURL="master" BRANCH="" I could edit it by hand, but it always gets changed back to this mess. Quote Link to comment
botez Posted February 19, 2014 Share Posted February 19, 2014 Strange -- I have restarted CP now several times and it is still working fine. Did you reinstall the plugin? What do you get when you do the following: grep "port = " /boot/config/plugins/couchpotato_v2/settings.conf grep "NR==" /boot/config/plugins/couchpotato_v2_unplugged.plg Quote Link to comment
kricker Posted February 20, 2014 Share Posted February 20, 2014 Yes I re-installed the plugin. port = /usr/local/couchpotato_v2 port = /usr/local/couchpotato_v2 smtp_port=/usr/local/couchpotato_v225 port = /usr/local/couchpotato_v28182 Quote Link to comment
botez Posted February 20, 2014 Share Posted February 20, 2014 Hmm. Seems like we should be able to fix this. In the Unraid webgui, press "Stop" to stop CouchPotato and then where it says "Enable CouchPotato v2" make sure it is set as "No". Then hit "Apply". At this point, you should be able to make changes to the "settings.conf" file without anything messing with it. Go make the necessary changes in the settings.conf file and then refresh the WebGUI. Do the correct values show up there now? If so, you can probably re-enable couchpotato and things will be working again. Quote Link to comment
kricker Posted February 20, 2014 Share Posted February 20, 2014 I'll try that, but it is also my couchpotato_v2.cfg file that is getting screwed up. It doesn't even have a line for the DATADIR. It seems the webgui and the couchpotato_v2.cfg file are not in sync. The webgui has a spot to enter a DATADIR but the actual file doesn't accept that. #CouchPotato v2 configuration: SERVICE="disable" INSTALLDIR="/usr/local/Couchpotato" CONFIGFILE="/boot/config/plugins/couchpotato_v2/settings.conf" RUNAS="nobody" PLG_STORAGESIZE="yes" PLG_DATACHECK="yes" INSTALLURL="https://github.com/RuudBurger/CouchPotatoServer" BRANCH="" You can see here there is no line for the DATADIR even though I have it specified in the webgui. Then if I change anything in the webgui, I get the mess I showed in the post above. Quote Link to comment
botez Posted February 20, 2014 Share Posted February 20, 2014 My .cfg file does not have DATADIR or PORT in it either. Looking at the .plg file, those values are simply read and written directly to/from the settings.conf file. My guess is that a clean install would be the other way to fix this -- removing the settings.conf and couchpotato_v2.cfg files and reinstalling the plugin. Quote Link to comment
kricker Posted February 20, 2014 Share Posted February 20, 2014 I've done a clean install about 20 times now. Currently, I edited my settings.conf file to use port 8182. But the webgui is reading port 25. I edited the .plg file replacing all instances of "NR==2" to "NR==1", but it still doesn't seem to read the port setting properly. It is reading the value from the smtp_port setting. [torrent_providers] [awesomehd] seed_time = 40 extra_score = 20 passkey = only_internal = 1 enabled = False favor = both prefer_internal = 1 seed_ratio = 1 [pneumatic] directory = enabled = 0 manual = 0 [subtitle] languages = enabled = False [flixster] automation_ids_use = automation_ids = automation_enabled = False [automation_providers] [xmpp] username = on_snatch = 0 hostname = talk.google.com enabled = 0 to = password = port = [twitter] on_snatch = 0 screen_name = enabled = 0 access_token_key = mention = access_token_secret = direct_message = 0 [manage] cleanup = True enabled = False library = startup_scan = True [ilovetorrents] username = seed_time = 40 extra_score = 0 enabled = False password = seed_ratio = 1 [notifymywp] on_snatch = 0 enabled = 0 priority = 0 dev_key = api_key = [moviesio] automation_urls = automation_enabled = False automation_urls_use = [imdb] automation_providers_enabled = False automation_enabled = False automation_urls_use = automation_urls = automation_charts_top250 = True automation_charts_boxoffice = True automation_charts_theater = True [rottentomatoes] tomatometer_percent = 80 automation_urls = http://www.rottentomatoes.com/syndication/rss/in_theaters.xml automation_enabled = False automation_urls_use = 1 [torrentbytes] username = seed_time = 40 extra_score = 20 enabled = False password = seed_ratio = 1 [yify] domain = seed_time = 40 extra_score = 0 enabled = 0 seed_ratio = 1 [newznab] use = 0,0,0,0,0,0 extra_score = 0,0,0,0,0,0 enabled = True host = nzb.su,dognzb.cr,nzbs.org,https://index.nzbgeek.info, https://smackdownonyou.com, https://www.nzbfinder.ws custom_tag = ,,,,, api_key = ,,,,, [xbmc] username = xbmc on_snatch = 0 meta_thumbnail_name = %s.tbn meta_nfo_name = %s.nfo meta_thumbnail = True only_first = 0 enabled = 0 remote_dir_scan = 0 meta_fanart_name = %s-fanart.jpg force_full_scan = 0 meta_enabled = False meta_fanart = True host = localhost:8080 password = meta_url_only = False meta_nfo = True [growl] on_snatch = False hostname = enabled = 0 password = port = [bithdtv] username = seed_time = 40 extra_score = 20 enabled = False password = seed_ratio = 1 [download_providers] [nzbindex] enabled = True extra_score = 0 [nzb] retention = 1500 [notification_providers] [nzbvortex] delete_failed = True manual = False enabled = 0 ssl = 1 host = localhost:4321 api_key = [synology] username = enabled = 0 manual = 0 host = localhost:5000 password = use_for = both [kinepolis] automation_enabled = False [goodfilms] automation_username = automation_enabled = False [torrentpotato] use = seed_time = 40 name = extra_score = 0 enabled = False host = pass_key = , seed_ratio = 1 [automation] rating = 7.0 votes = 1000 hour = 12 required_genres = year = 2011 ignored_genres = [sabnzbd] category = delete_failed = True manual = False enabled = 0 priority = 0 ssl = 0 host = localhost:8080 remove_complete = False api_key = [moviesearcher] cron_day = * cron_hour = 15 cron_minute = 8 always_search = False run_on_launch = 0 search_on_add = 1 [email] starttls = 0 on_snatch = 0 from = to = smtp_pass = smtp_port = 25 enabled = 0 smtp_server = smtp_user = ssl = 0 [binsearch] enabled = extra_score = 0 [omgwtfnzbs] username = api_key = enabled = extra_score = 20 [rtorrent] username = rpc_url = RPC2 enabled = 0 manual = 0 label = paused = False ssl = 0 host = localhost:80 delete_files = True remove_complete = False directory = password = [core] username = ssl_key = password = ssl_cert = data_dir = /mnt/user/Couchpotato permission_folder = 0755 show_wizard = 0 url_base = debug = 0 development = 0 api_key = launch_browser = 0 port = 8182 permission_file = 0755 [torrentshack] username = seed_time = 40 extra_score = 0 enabled = False scene_only = False password = seed_ratio = 1 [nzbclub] enabled = extra_score = 0 [iptorrents] username = seed_time = 40 extra_score = 0 enabled = False freeleech = 0 password = seed_ratio = 1 [boxcar] on_snatch = 0 enabled = 0 email = [passthepopcorn] username = domain = seed_time = 40 extra_score = 20 prefer_scene = 0 passkey = enabled = False prefer_golden = 1 require_approval = 0 password = seed_ratio = 1 [letterboxd] automation_urls = automation_enabled = False automation_urls_use = [torrentday] username = seed_time = 40 extra_score = 0 enabled = False password = seed_ratio = 1 [plex] on_snatch = 0 clients = enabled = 0 media_server = localhost [nzbget] username = nzbget category = Movies delete_failed = True enabled = 0 manual = 0 priority = 0 ssl = 0 host = localhost:6789 password = [updater] enabled = 0 git_command = git notification = True automatic = True [blackhole] enabled = True manual = 0 directory = / create_subdir = 0 use_for = both [bluray] backlog = False automation_enabled = False [pushover] priority = 0 on_snatch = 0 enabled = 0 user_key = [trakt] automation_enabled = False automation_username = notification_enabled = False automation_password = remove_watchlist_enabled = False automation_api_key = [nmj] host = localhost enabled = 0 mount = database = [trailer] enabled = False name = <filename>-trailer quality = 720p [thepiratebay] domain = seed_time = 40 extra_score = 0 enabled = False seed_ratio = 1 [searcher] required_words = ignored_words = german, dutch, french, truefrench, danish, swedish, spanish, italian, korean, dubbed, swesub, korsub, dksubs, vain preferred_words = preferred_method = both [hdbits] username = seed_time = 40 extra_score = 0 passkey = enabled = False seed_ratio = 1 [toasty] on_snatch = 0 api_key = enabled = 0 [notifymyandroid] on_snatch = 0 enabled = 0 priority = 0 dev_key = api_key = [deluge] username = delete_failed = True completed_directory = enabled = 0 manual = 0 label = paused = False host = localhost:58846 delete_files = True remove_complete = True directory = password = [renamer] nfo_name = <filename>.orig.<ext> from = run_every = 1 move_leftover = False unrar = False file_name = <thename><cd>.<ext> enabled = False next_on_failed = True to = rename_nfo = True cleanup = False separator = folder_name = <namethe> (<year>) force_every = 2 foldersep = file_action = link ntfs_permission = False [transmission] username = stalled_as_failed = True delete_failed = True rpc_url = transmission enabled = 0 manual = 0 paused = False host = localhost:9091 delete_files = True remove_complete = True directory = password = [bitsoup] username = seed_time = 40 extra_score = 20 enabled = False password = seed_ratio = 1 [kickasstorrents] domain = seed_time = 40 extra_score = 0 enabled = True seed_ratio = 1 [windowsmediacenter] meta_enabled = False [prowl] priority = 0 on_snatch = 0 api_key = enabled = 0 [synoindex] enabled = 0 [publichd] seed_time = 40 seed_ratio = 1 enabled = True extra_score = 0 [itunes] automation_urls = https://itunes.apple.com/rss/topmovies/limit=25/xml, automation_enabled = False automation_urls_use = , [torrentleech] username = seed_time = 40 extra_score = 20 enabled = False password = seed_ratio = 1 [utorrent] username = delete_failed = True manual = 0 enabled = 0 label = paused = False host = localhost:8000 delete_files = True remove_complete = True password = [nzb_providers] [moviemeter] automation_enabled = False [themoviedb] api_key = 9b939aee0aaafc12a65bf448e4af9543 [pushalot] on_snatch = 0 silent = 0 auth_token = enabled = 0 important = 0 [pushbullet] on_snatch = 0 api_key = enabled = 0 devices = [sceneaccess] username = seed_time = 40 extra_score = 20 enabled = False password = seed_ratio = 1 So in my case the smtp_port comes before the port in the core section. Is it possible to have it look only in the core section of the settings.conf file? Quote Link to comment
botez Posted February 20, 2014 Share Posted February 20, 2014 Okay -- that's a good point. Why not just grab the port value from the [core] section. I found a way to do that with the following code changes in the .plg file: In the write_config() function Change sed -i 's!port = '"`cat "$CONFIGFILE" | grep 'port = ' | cut -d' ' -f3 | awk NR==2'`"'!port = '"$PORT"'!' "$CONFIGFILE" To sed -i 's!port = '"`pcregrep -M '\[core\].*(\n|.)*?port =' "$CONFIGFILE" | grep 'port = ' | cut -d' ' -f3`"'!port = '"$PORT"'!' "$CONFIGFILE" In the couchpotato_vercheck() function, change PORT=`cat "$CONFIGFILE" | grep 'port = ' | cut -d' ' -f3 | awk 'NR==2'` To PORT=`pcregrep -M '\[core\].*(\n|.)*?port =' "$CONFIGFILE" | grep 'port = ' | cut -d' ' -f3` and then in the PHP section, below the comment "// get CouchPotato v2 port" Change $couch_port = trim(shell_exec( "cat \"$couchpotato_configfile\" | grep 'port = ' | cut -d' ' -f3 | awk 'NR==2'" )); to $couch_port = shell_exec( "pcregrep -M '\[core\].*(\n|.)*?port =' $couchpotato_configfile | grep 'port = ' | cut -d' ' -f3" ); Then reinstall the plugin and see if that fixes things. Quote Link to comment
kricker Posted February 20, 2014 Share Posted February 20, 2014 Okay so after doing those edits and re-installing CP, I get the following in my settings.conf file: [growl] port = [core] data_dir = /mnt/user/Couchpotato port = 8182 Now I will start CP and see what happens. BINGO! That does the trick. The port setting stays how it should and the data directory no longer gets screwed up no matter how many times I start and stop CP or disable and enable the plugin. Thank you! Now I just need figure out how to get all my settings from the old setting.ini file in the install directory into this new settings.conf file. Quote Link to comment
smoldersonline Posted February 25, 2014 Share Posted February 25, 2014 I would vote for Influencers to update his plugin for us all. +1, would be very nice Quote Link to comment
Jaster Posted March 5, 2014 Share Posted March 5, 2014 Hi, I am using Transmission. Every time i reboot the NAS the configuration is reset. I tried editing the settings.json, but it seems to have no effect. Quote Link to comment
dalben Posted March 5, 2014 Share Posted March 5, 2014 Make sure transmission is stopped before editing the json file Quote Link to comment
PhAzE Posted March 6, 2014 Share Posted March 6, 2014 If I run the update PLG command, it seems to bring ther plugin version number down rather than install a newer version, so far on unplugged plugins for Headphones and CouchPotato. Is there a reason why this is happening? CouchPotato Plug-in Version: 2.4 downgrades to 2.3.6 when I update the plugin via webgui Headphones Plug-in Version: 2.6.2 downgrades to 2.5.1 when I update the plugin via webgui I believe I had previously just downloaded them from GIT and dropped them on to my USB drive. Did I magically get versions from the future or something? Quote Link to comment
Rick Sanchez Posted March 8, 2014 Share Posted March 8, 2014 Am I receiving this due to having no cache drive? WARNING: Your data directory is not persistent and WILL NOT survive a reboot. Please locate Data Directory on disk for persistency Quote Link to comment
smdion Posted March 8, 2014 Share Posted March 8, 2014 Am I receiving this due to having no cache drive? WARNING: Your data directory is not persistent and WILL NOT survive a reboot. Please locate Data Directory on disk for persistency Cache drive is the best place to put it, but you could make a user share and put it there or directly on a disk. /mnt/user/appdata /mnt/disk1/appdata But yes, that error is due to you not pointing it at persistent storage, yet Quote Link to comment
Rick Sanchez Posted March 8, 2014 Share Posted March 8, 2014 This error is for the install, correct? Mine are on the USB? Is that not permanent? Install dir: /usr/local/couchpotato_v2 Quote Link to comment
smdion Posted March 8, 2014 Share Posted March 8, 2014 No.. the install was correct, but its been installed into a place that won't exist after reboot. /usr is not on the USB. unRAID loads into RAM on boot. /usr is basically a RAMDISK. It needs to be either on /boot to be on the USB Quote Link to comment
unevent Posted March 8, 2014 Share Posted March 8, 2014 The install dir was fine, it is set to /usr/local so that it does not persist. That was done so the latest is always installed on reboot. It is the data dir that should be on cache drive or array (not USB). It is up to you how to handle the install dir, but that was the default for the plugin and the reason for it. Quote Link to comment
Recommended Posts
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.