Where to find Data Directory - Config Files - Log Files - Database

Most commonly asked questions will have thire awnsers here, please search before asking!
User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

Where to find Data Directory - Config Files - Log Files - Database

Postby clinton.hall » 05 Oct 2012 04:17

For all those who have changed the port, or IP only to then not be able to start CPS, or for those who cannot add your folders into Renamer etc, here is a list of where you can find your config files to manually enter/change the settings.

The settings file is called settings.conf and is usually found in the following locations.

OSX:
/User/yourusername/Library/Application Support/couchpotato
or
~/Library/Applications Settings/Couchpotato
Please note: you have to use the command
defaults write com.apple.Finder AppleShowAllFiles YES
to get finder to show you the hidden files and folders.

Windows:
C:\Users\yourname\AppData\Roaming\CouchPotato
or
C:\Documents and Settings\yourname\Application Data\CouchPotato

Linux:
/root/.couchpotato/

QNAP (via qpkg)
/share/MD0_DATA/.qpkg/CouchPotato2/config/

SYNOLOGY (via spk)
/"volume x"/@appstore/couchpotatoserver/var/
you need to go though SSH or telnet with the root user (same pw as there normal admin user).

My appologies if any of this is incorrect. I myself only run WinXP, Win7 and QNAP. I have not used CPS on OSX or any other distribution of *nix

huxley309
Junior Member
Posts: 4
Joined: 10 Oct 2012 19:15
Contact:
Status: Offline

RE: Where to find Config Files

Postby huxley309 » 11 Oct 2012 23:30

Thank you!!!

See that's why your a super mod, deleting the settings.config worked.

What was strange was it didn't show, i had to disable hidden files, then re-enable it?!

Only then did the app data folder made a showing.

naviathan
Junior Member
Posts: 38
Joined: 30 Oct 2012 02:11
Contact:
Status: Offline

RE: Where to find Config Files

Postby naviathan » 30 Oct 2012 02:12

clinton.hall wrote:For all those who have changed the port, or IP only to then not be able to start CPS, or for those who cannot add your folders into Renamer etc, here is a list of where you can find your config files to manually enter/change the settings.

The settings file is called settings.conf and is usually found in the following locations.

OSX:
/User/yourusername/Library/Application Support/couchpotato
or
~/Library/Applications Settings/ Couchpotato

Windows:
C:\Users\yourname\AppData\Roaming\CouchPotato
or
C:\Documents and Settings\yourname\Application Data\CouchPotato

Linux:
/root/.couchpotato/

QNAP (via qpkg)
/share/MD0_DATA/.qpkg/CouchPotato2/config

My appologies if any of this is incorrect. I myself only run WinXP, Win7 and QNAP. I have not used CPS on OSX or any other distribution of *nix


For linux, does this mean that we have to run couchpotato as root? This might be why my init script won't run.

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

RE: Where to find Config Files

Postby clinton.hall » 30 Oct 2012 02:21

@naviathan

Try running as root... I don't know how your system is setup, or what the problem you have is.

Try starting with --debug and post the log in a new thread under support and I'll try and help out over there.

naviathan
Junior Member
Posts: 38
Joined: 30 Oct 2012 02:11
Contact:
Status: Offline

RE: Where to find Config Files

Postby naviathan » 30 Oct 2012 02:22

naviathan wrote:For linux, does this mean that we have to run couchpotato as root? This might be why my init script won't run.


That would be a yes. Running as root works, running as couchpotato does not. The old one would run under whatever credentials I gave it as long as the log and cache directories were writable.

valisa963
Junior Member
Posts: 1
Joined: 21 Nov 2012 13:35
Contact:
Status: Offline

RE: Where to find Config Files

Postby valisa963 » 21 Nov 2012 13:44

In the System or administrator.

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

RE: Where to find Config Files

Postby clinton.hall » 21 Nov 2012 21:08

@valisa963
Please clarify your question. What OS are you running, and what is it you want to know?

anzerman
Junior Member
Posts: 7
Joined: 21 May 2012 08:22
Contact:
Status: Offline

RE: Where to find Config Files

Postby anzerman » 14 Dec 2012 00:05

Hi, I am on windows 7 and I would like to move the settings.config file from the regular directory.
I have been able to move the database and cache files but it only seems to check the default location for the settings.config file.
Is there a way I can place the settings.config file in the main couchpotato directory and have it work?
Cheers,
Matt

PS If this is not an option am I able to make a request?
Cheers again

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

RE: Where to find Config Files

Postby clinton.hall » 14 Dec 2012 02:30

it is available by a startup option, but this currently doesn't work with the .exe (and it is known and should be fixed eventually).

If you are using the .py version, you can add the startup option --config_file /path_to_config_file/settings.conf

anzerman
Junior Member
Posts: 7
Joined: 21 May 2012 08:22
Contact:
Status: Offline

RE: Where to find Config Files

Postby anzerman » 20 Dec 2012 00:45

cant seem to get this working. I am running from python.
in target for the shortcut i have the following:
C:\APPS\CouchPotatoServer\CouchPotato.py --data_dir "C:\apps\CouchPotatoServer\settings" --config_file "c:\apps\CouchPotatoServer\settings\settings.conf" --pid_file "c:\apps\CouchPotatoServer\settings\couchpotato.pid"

running version 173c6194
I have tried with just the config file and with all of them as shown above.
cheers.

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

RE: Where to find Config Files

Postby clinton.hall » 20 Dec 2012 01:46

Ah... one of those funny things with the way python interprets windows directory structure...

if you look at your settings.conf you will see that all directories look like "C:\\Users\\clinton.hall\\Desktop\\"

I believe since "normal" (aka linux) directories use /usr/var/... the "\" required by windows is a special character and must have an extra "\" before it..

Code: Select all

C:\APPS\CouchPotatoServer\CouchPotato.py --data_dir "C:\\apps\\CouchPotatoServer\\settings" --config_file "C:\\apps\\CouchPotatoServer\\settings\\settings.conf" --pid_file "C:\\apps\\CouchPotatoServer\\settings\\couchpotato.pid"


Note, I believe this is only required for the arguments passed in to python, and is not therefore required for the first C:\APPS\CouchPotatoServer\CouchPotato.py

Try the code above and see if that works for you.

Symbiotk
Member
Posts: 179
Joined: 09 Dec 2012 09:56
Has thanked: 5 times
Contact:
Status: Offline

RE: Where to find Config Files

Postby Symbiotk » 21 Dec 2012 06:53

anzer what is the full path of your shortcut?

Try:

C:\Python27\python.exe C:\Python27\CouchPotato\CouchPotato.py --data_dir "C:\Python27\CouchPotato\settings" --config_file "C:\Python27\CouchPotato\settings\settings.conf"

I found that setting an 'arg' for the pid file didn't do any good for me..

jeremy
Junior Member
Posts: 2
Joined: 10 Oct 2013 04:28
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby jeremy » 10 Oct 2013 04:41

Thanks for the heads-up. I had trouble getting the hidden files to show in Finder. For anyone else out there as dumb as I am, try running "killall Finder" from Terminal. That did it for me.

bluemax
Junior Member
Posts: 2
Joined: 17 Nov 2013 17:55
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby bluemax » 17 Nov 2013 18:07

Hi, i've trouble finden the data directory / db file of Couchpotato.
I've installed the latest version von Couchpotato on my Ubuntu 11.10 system (/myuser/couchpotato). Unfortunately i started CP first with sudo python /myuser/couchpotato/Couchpotato.py first, configured everything, added movies etc.
Afterwards I installed CP as sservice. Now i have the following situation:
- If starting CP correctly as service (regardless of starting it as root, myuser or couchpotato) it comes up with a completely empty DB
- If starting CP again with sudo python... it comes up with the db and settings as I put it in before
- If starting CP with python... (without sudo) it comes up with a very old db from a previous CP V1 installation

Can anybody help, I have no idea where CP is storing the data and would really like to transfer the data i put in (having started CP with sudo python...) to the "service-started" CP.

Thanks a lot!

naviathan
Junior Member
Posts: 38
Joined: 30 Oct 2012 02:11
Contact:
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby naviathan » 17 Nov 2013 19:58

The upstart script for couch potato will have the user name it's using to run the program. Last time I messed with it the default was root which would make /root/.couchpotato your data directory. If it's not look in the program directory itself. I know if mine gets confused for any reason it will use the default configuration from the install directory.

bluemax
Junior Member
Posts: 2
Joined: 17 Nov 2013 17:55
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby bluemax » 18 Nov 2013 12:34

thanks that did the trick:
- starting couchpotato from command line will have CP create a .couchpotato directory in the users home directory (or root if started with sudo)
- starting couchpotato as a service will create a /var/couchpotato directory with everything in it...

naviathan
Junior Member
Posts: 38
Joined: 30 Oct 2012 02:11
Contact:
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby naviathan » 18 Nov 2013 13:42

That sounds about right. You can change the script to a specific user. I have mine set to a user specific to my home media files. This helps with security as you won't have a service that is visible to your network running with higher privileges than necessary for the task.

theeDeBo
Junior Member
Posts: 2
Joined: 25 Nov 2013 19:34
Been thanked: 2 times
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby theeDeBo » 25 Nov 2013 19:38

For all Mountain Lion (OSX 10.9) users:

The terminal syntax for showing hidden files in finder is different.

Run these commands:

Code: Select all

defaults write com.apple.finder AppleShowAllFiles TRUE


Code: Select all

killall Finder


And then navigate to this directory:

Code: Select all

/Users/{yourusername}/Library/Application Support/CouchPotato


Took me a whole lot of Google searching and page scanning, hope this helps others. :D

gergyhead
Junior Member
Posts: 2
Joined: 26 Mar 2014 05:11
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby gergyhead » 26 Mar 2014 05:51

newb here.

I too am getting a login screen that I can't get past. I change the url to http://localhost:5050/wizard and still get the login page. I tried both wiping out the user/pass from the config file and restarting CP & deleting the config and relaunching CP as well. Both scenarios still bring me to the login screen.

running win 7 64bit with Firefox v27.0.1

perhaps I missed something else.

please help
G

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

Re: Where to find Data Directory - Config Files - Log Files

Postby clinton.hall » 26 Mar 2014 07:23

First ensure there are no left-over or hanging CouchPotato processes in task manager.

Then delete the settings.conf and try starting CouchPotato.

If you still get this, you can try searching your hard drive for settings.conf to see if this is located anywhere else.


Return to “FAQ”