GUI for CouchPotato isn't loading anymore.

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Just to confirm, if we are having the black screen issue, applying this update will fix the issue without needing to back up my database?
I think the black screen issue is something different then the most recent issue where CP isn't starting.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I might be the only person with the CP not starting issue, I HAD the option to click upgrade on the plugin screen but that disappeared after I restored from a snapshot.
I've "cracked the @#%ts" with it all now and just re-done CP from scratch (sigh)
I fired up a second instance, turned off my internet connection entirely and copied setting for setting between each tab so I knew I didn't lose anything. Imported my movies with the tool and I'm back in business.

I've set up a cron job to backup the movie list indefinitely now.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
diskdiddler
I would like to backup automatically with a cron job as well. Would you mind sharing your scripts etc so I could set it up on my system as I'm new to Unix. Thanks
 

samesong

Cadet
Joined
Jan 8, 2015
Messages
8
I think the black screen issue is something different then the most recent issue where CP isn't starting.

This was the issue I originally had, so I clicked the "Update" button in FreeNAS, which then led to the black screen issue.

In any case, updating to the latest version through FreeNAS solved the issue =)
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
diskdiddler
I would like to backup automatically with a cron job as well. Would you mind sharing your scripts etc so I could set it up on my system as I'm new to Unix. Thanks
You'll need to learn a little bit.
I created a cron job (tasks, left panel)
Which executes the following command.
/mnt/ARRAY/data/backup/couchpotato/./wanted.py --type backup --cfg /mnt/ARRAY/data/backup/couchpotato/couch.cfg --file /mnt/ARRAY/data/backup/couchpotato/backup.txt

On my /data/backup/couchpotato folder I have put the contents of this zip file.
https://codeload.github.com/clinton-hall/CP-BackupTool/zip/master

That job will run the python script which will make a backup of your movie list.
You WON'T save your settings sadly - but for me, the movies is the most important, there's nearly 100

If you don't know how to use putty / terminal sessions yet, you should get at least a little accustomed to it. I'm .. just a little past amateur I guess.
I'm sure someone else here could help more competently though.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Can I ask an off topic stupid question.
WHY should I let couchpotato, know about the rest of my movies on my drive? What benefit is there to this?

I'm curious what value there is in adding my entire library (2000 films) to another application?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Can I ask an off topic stupid question.
WHY should I let couchpotato, know about the rest of my movies on my drive? What benefit is there to this?

I'm curious what value there is in adding my entire library (2000 films) to another application?
You could use the CP import process to rename them and grab your prescribed nfo/subtitles/images.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
You could use the CP import process to rename them and grab your prescribed nfo/subtitles/images.
They have all been either manually renamed or matched correctly in the first place in Kodi. It's also grabbed it's own subtitles / images as required.
Is there any other benefit? I'm a Kodi / XBMC user, so once CP and Sab spit out the files, they generally are good to go for me.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
They have all been either manually renamed or matched correctly in the first place in Kodi. It's also grabbed it's own subtitles / images as required.
Is there any other benefit? I'm a Kodi / XBMC user, so once CP and Sab spit out the files, they generally are good to go for me.
none that I can think of
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Alright no stress, thanks.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
thanks for the update, everything worked great, didnt loose anything after updating.
sweet, hopefully that repo change and the associated bugs are a one time thing.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
diskdiddler
I would like to backup automatically with a cron job as well. Would you mind sharing your scripts etc so I could set it up on my system as I'm new to Unix. Thanks

Check my previous comment in this thread where I listed the shell commands to copy the whole /var/db/ directory for each of these plugins.

You can also check this forum thread for more information. I will point you to this thread and look at the Script Basics heading of the original post... so you can learn how to create a script and have proper permissions to execute.

Once you have this basic background information you can turn these commands into scripts then create some quick cron jobs to schedule when these commands run on your system.

You'll need to learn a little bit.
I created a cron job (tasks, left panel)
Which executes the following command.
/mnt/ARRAY/data/backup/couchpotato/./wanted.py --type backup --cfg /mnt/ARRAY/data/backup/couchpotato/couch.cfg --file /mnt/ARRAY/data/backup/couchpotato/backup.txt

On my /data/backup/couchpotato folder I have put the contents of this zip file.
https://codeload.github.com/clinton-hall/CP-BackupTool/zip/master

That job will run the python script which will make a backup of your movie list.
You WON'T save your settings sadly - but for me, the movies is the most important, there's nearly 100

If you don't know how to use putty / terminal sessions yet, you should get at least a little accustomed to it. I'm .. just a little past amateur I guess.
I'm sure someone else here could help more competently though.

FYI - this cron job will only backup the WANTED list from CouchPotato. Just throwing that out there so it is known.

Can I ask an off topic stupid question.
WHY should I let couchpotato, know about the rest of my movies on my drive? What benefit is there to this?

I'm curious what value there is in adding my entire library (2000 films) to another application?

It is beneficial to have CouchPotato load this in case you want to run any mass processing or movie replacing. If CP knows your current library then it will not add movies you already have and it can also replace lower quality movies with better quality. It certainly does not hurt for CP to know your library. It simply scans it into the database and WebGUI, not really hurting anything.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Check my previous comment in this thread where I listed the shell commands to copy the whole /var/db/ directory for each of these plugins.

You can also check this forum thread for more information. I will point you to this thread and look at the Script Basics heading of the original post... so you can learn how to create a script and have proper permissions to execute.

Once you have this basic background information you can turn these commands into scripts then create some quick cron jobs to schedule when these commands run on your system.



FYI - this cron job will only backup the WANTED list from CouchPotato. Just throwing that out there so it is known.



It is beneficial to have CouchPotato load this in case you want to run any mass processing or movie replacing. If CP knows your current library then it will not add movies you already have and it can also replace lower quality movies with better quality. It certainly does not hurt for CP to know your library. It simply scans it into the database and WebGUI, not really hurting anything.

Ok thanks man, I guess I manage my library pretty well through other means to be honest. I've got duplicate movie searchers, I've got a good indexing tool which lets me find all the .AVI or sub 2gb files easily, that kinda thing. So really, my 93 movies in my CP list have been in there MONTHS (some years) as a "if you ever get a chance, replace these" It sounds like since I've got mostly good control over my library I don't need it.

Thanks for your scripts on backing up the /var/db stuff. Can I ask a dumb .nix question.
Is /var/db ALWAYS the folder where the configuration data / user data for an application will be? because I note on all the jails you listed, it's consistently the same /var/db path.
Would I be right in thinking, if I backed up /var/db from a copy of say, crashplan or sabnzbd
Then I deleted the jail entirely, re-installed a brand new copy up to date copy, then copied that folder over the top (with the jail stopped) and fired it back up, it'd pretty much replicate ALL my settings?

If so, great.

Final question.
Any way for your script to run and backup that folder into a maximum compression archive file?
Thanks, really helpful.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok thanks man, I guess I manage my library pretty well through other means to be honest. I've got duplicate movie searchers, I've got a good indexing tool which lets me find all the .AVI or sub 2gb files easily, that kinda thing. So really, my 93 movies in my CP list have been in there MONTHS (some years) as a "if you ever get a chance, replace these" It sounds like since I've got mostly good control over my library I don't need it.

Thanks for your scripts on backing up the /var/db stuff. Can I ask a dumb .nix question.
Is /var/db ALWAYS the folder where the configuration data / user data for an application will be? because I note on all the jails you listed, it's consistently the same /var/db path.
Would I be right in thinking, if I backed up /var/db from a copy of say, crashplan or sabnzbd
Then I deleted the jail entirely, re-installed a brand new copy up to date copy, then copied that folder over the top (with the jail stopped) and fired it back up, it'd pretty much replicate ALL my settings?

If so, great.

Final question.
Any way for your script to run and backup that folder into a maximum compression archive file?
Thanks, really helpful.
programs data-directorys vary. but for the plugins I always try to set it outside of the usually PBI path so it doesn't get deleted during the pbi upgrade process.
 

statik

Explorer
Joined
Sep 8, 2013
Messages
71
I just updated to the Couchpotato autoupdate.9_5 and like most of you Couchpotato would fail to start from the FreeNAS GUI. In most cases where it fails to start in the FreeNAS GUI, and in this case because it worked for me, all you need to do is go into your Couchpotato Jails console and manually start the server: service couchpotato start

and now it works fine.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Check my previous comment in this thread where I listed the shell commands to copy the whole /var/db/ directory for each of these plugins.

You can also check this forum thread for more information. I will point you to this thread and look at the Script Basics heading of the original post... so you can learn how to create a script and have proper permissions to execute.

Once you have this basic background information you can turn these commands into scripts then create some quick cron jobs to schedule when these commands run on your system.



FYI - this cron job will only backup the WANTED list from CouchPotato. Just throwing that out there so it is known.



It is beneficial to have CouchPotato load this in case you want to run any mass processing or movie replacing. If CP knows your current library then it will not add movies you already have and it can also replace lower quality movies with better quality. It certainly does not hurt for CP to know your library. It simply scans it into the database and WebGUI, not really hurting anything.

Thanks bmcclure937. I had found the thread https://forums.freenas.org/index.ph...tato-sabnzbd-sickrage-plex-freenas-9-3.35444/ before and used to backup my settings but struggle to make a script that can be run from a cron job. I will check the Script Basics thanks for that link. It appears that it would be beneficial to backup the database directory for CP as well, so you backup the entire CP directory structure. Is there a benefit to using the command cp -ar /mnt/v1/jails/sabnzbd_1/var/db/couchpotato/ /mnt/v1/backup/FreeNAS/CouchPotato/ to copy the permissions of the folders as well? I'm not sure how the restore would work without it as I'm afraid to try it being that all is working so far after the upgrade of the CP plugin (thanks Joshua).
 
Last edited:

hertzsae

Contributor
Joined
Sep 23, 2014
Messages
118
Simply updating and then starting the plugin through the freenas web gui fixed the problem.

I had the problem with CP failing to start. Previously, I had not updated through the GUI. I let CP auto-update itself, so the "plugin version" was years at least a year behind. Also, I did backup the /var/db/couchpotato directory as anyone making any changes should.

Thanks for the help everyone.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
All - I am no script guru and currently do not have any cron jobs configured for backing up my plug-ins in any way. I am sure a very nice script could be written to handle this process but I do not currently have time to tinker with this.

Maybe someone with more scripting knowledge would be able to whip one together that will backup the config/database for the plugins and clean up old backups.
 
Status
Not open for further replies.
Top