thedude459 Posted January 24, 2013 Share Posted January 24, 2013 Do this it fixed mine. --- couchpotato/runner.py.broken 2013-01-13 20:34:58.252578108 +0000 +++ couchpotato/runner.py.fixed 2013-01-13 20:33:57.869622110 +0000 @@ -214,6 +214,7 @@ 'port': tryInt(Env.setting('port', default = 5000)), 'ssl_cert': Env.setting('ssl_cert', default = None), 'ssl_key': Env.setting('ssl_key', default = None), + 'host': Env.setting('host', default = "0.0.0.0"), } # Static path @@ -258,7 +259,7 @@ while try_restart: try: - server.listen(config['port']) + server.listen(config['port'], config['host']) loop.start() except Exception, e: try: Link to comment
jangjong Posted January 24, 2013 Share Posted January 24, 2013 Do this it fixed mine. This probably doesn't mean anything to some people.. lol SO here is the broken down version: Open up runner.py located in CP_INSTALLATION_DIR/couchpotato/runner.py Find this line config = { 'use_reloader': reloader, 'port': tryInt(Env.setting('port', default = 5000)), 'host': Env.setting('host', default = ''), 'ssl_cert': Env.setting('ssl_cert', default = None), 'ssl_key': Env.setting('ssl_key', default = None), } Change it to look like this: config = { 'use_reloader': reloader, 'port': tryInt(Env.setting('port', default = 5000)), 'host': Env.setting('host', default = ''), 'ssl_cert': Env.setting('ssl_cert', default = None), 'ssl_key': Env.setting('ssl_key', default = None), 'host': Env.setting('host', default = "0.0.0.0"), } Then... Find this lines: try: server.listen(config['port']) loop.start() change that to try: server.listen(config['port'], config['host']) loop.start() Link to comment
lionelhutz Posted January 24, 2013 Share Posted January 24, 2013 And then turn off the auto updates in CP until this issue is fixed so the file doesn't get overridden. Link to comment
Influencer Posted January 24, 2013 Author Share Posted January 24, 2013 Also be sure to remove the runner.pyc to ensure the changes get picked up. Link to comment
manolodf Posted January 24, 2013 Share Posted January 24, 2013 I did not remove the runner.pyc since I did not see that on certain instructions and it is booting up correctly, is this something I need to do anyways or just wait for the fixes to be pushed? Link to comment
Influencer Posted January 24, 2013 Author Share Posted January 24, 2013 No, you don't have to if it worked. The runner.pyc is a "compiled" version of runner.py. Deleting it is just added security, python *should* detect changes and recompile automatically, but thought I'd add it just in case. Link to comment
r1ckzilla Posted January 24, 2013 Share Posted January 24, 2013 Couch Potato Server 2 doesn't see my movie library. I have it installed correctly as according to the unplugged setup guide. My app is installed on usr/local/cp2 & my cp2 data directory is in a hidden folder on my cache drive... call it /.appdata/cp2. I have the manage library pointing to /mnt/user/Movies as that is where my user share is located. It says "selected folder is empty". I let it save anyway and go to the main page>manage and it says "Seems like you don't have anything in your library yet. Add your existing movie folders in Settings > Manage". Has anyone else had this issue? Any fix? Btw: Sickbeard and sab work fine. running all apps as "nobody" and nobody:users owns my files. I have also did a fix permisions in simple features. Have also tried running cp2 as root or other users, no luck so far. :'( Link to comment
Influencer Posted January 25, 2013 Author Share Posted January 25, 2013 Run this: ls -l /mnt/user/ Report back with the output Link to comment
r1ckzilla Posted January 25, 2013 Share Posted January 25, 2013 drwxrwxrwx 1 rick users 128 2013-01-20 09:18 Applications/ drwxrwxrwx 1 nobody users 152 2013-01-17 23:57 Books/ drwxrwxrwx 1 nobody users 184 2013-01-05 10:49 Documents/ drwxrwxrwx 1 nobody users 192 2013-01-21 03:40 Downloads/ drwxrwxrwx 1 nobody users 1880 2013-01-22 04:00 Movies/ drwxrwxrwx 1 nobody users 184 2013-01-22 04:27 Pr0n/ drwxrwxrwx 1 nobody users 432 2013-01-24 20:15 TV\ Shows/ drwxr-xr-x 1 root root 240 2013-01-24 18:38 couchpotato_v2/ Link to comment
Influencer Posted January 25, 2013 Author Share Posted January 25, 2013 It should definitely find it then... Whats the couchpotato_v2 directory owned by root there? Link to comment
r1ckzilla Posted January 25, 2013 Share Posted January 25, 2013 not sure, it must have been created when I was trying out different directories. i have since deleted it and chown all the directories again. new results below. i'm confused as it def should see it (as sickbeard does) drwxrwxrwx 1 nobody users 128 2013-01-20 09:18 Applications/ drwxrwxrwx 1 nobody users 152 2013-01-17 23:57 Books/ drwxrwxrwx 1 nobody users 184 2013-01-05 10:49 Documents/ drwxrwxrwx 1 nobody users 192 2013-01-21 03:40 Downloads/ drwxrwxrwx 1 nobody users 1880 2013-01-22 04:00 Movies/ drwxrwxrwx 1 nobody users 184 2013-01-22 04:27 Pr0n/ drwxrwxrwx 1 nobody users 432 2013-01-24 20:15 TV\ Shows/ Link to comment
Influencer Posted January 25, 2013 Author Share Posted January 25, 2013 Try this, for shits and giggles... Make a new share through the unraid webgui, set it to cache only. Call it...apps Then point CP's data directory to the new share, /mnt/cache/apps/cp/ You can copy all of your settings from your existing directory over to the new one if you'd like. Or just run CP at the new data directory and see if it'll see the movies from there. I've had strange issues with CP and hidden directories, but can't say thats your issue. Link to comment
r1ckzilla Posted January 25, 2013 Share Posted January 25, 2013 tried that with no success. So I created a new user share "videos" and put a movie in there. CP saw that this video directory had data and allowed to populate in the manage library database. So it appears that something is funky with that share. But before I go move 2TB's of video files to a new user share I tried one more time... Still it will not see the data in Movies directory when entering it in the library section. But after I entered the path for Movies, instead of hitting the "green button", I just refreshed the web page, and then hit the green button. It worked. It slowly is populating into the database. I don't trust this too much, but I really only use the manage library database get better quality versions of old rips/screeners , also to not download the same file twice. Although it seems like something is awry with my Movie share, I have no clue what that could be. This share is roughly 2TB, and spans across 4 drives. If i discover any other oddities I'll post it here.thanks for help though influencer! Link to comment
Influencer Posted January 25, 2013 Author Share Posted January 25, 2013 Its not your share, its a bug in CP as far as I can tell, my cache drive failed today and setting CP back up I have the exact same problem. Interesting to note, it found one directory perfectly fine, but can't see another. Link to comment
needo Posted January 25, 2013 Share Posted January 25, 2013 Starting about two days ago after my last reboot I notice that my Sickbeard and sabnzbd interface is missing a number of images and is not being displayed correctly. It is still functionally there. I did a search on the file system and the images are present but they are not being displayed. I did a fresh reboot this morning and the problem persists. Is anyone else seeing this? Thank you. Link to comment
thedude459 Posted January 25, 2013 Share Posted January 25, 2013 I believe the problem with the runner.py is fixed. Link to comment
brimnac Posted January 25, 2013 Share Posted January 25, 2013 I updated my Couch Potato v2 today and it is working - if that's worth anything. Link to comment
Influencer Posted January 25, 2013 Author Share Posted January 25, 2013 Good, it had a fix for nzbsrus too Link to comment
rx8freehk Posted January 25, 2013 Share Posted January 25, 2013 I like others notice my CP stopped working couple days ago... was just now able to take a look at everything. Its doing the same thing for me, stops as soon as it starts. Ive gone as far as to delete all CP Related files on /boot and /cache and reinstalled CP with no change. heres the Syslog via Pastebin Link to comment
kricker Posted January 25, 2013 Share Posted January 25, 2013 Same going on for me as well. So far I've not had any luck getting it back up and running. Link to comment
Timbiotic Posted January 25, 2013 Share Posted January 25, 2013 same here getting weird error and starts stops, I also have simplefeatures error: [Errno 97] Address family not supported by protocol I get these errors in the couch potato log Link to comment
Timbiotic Posted January 25, 2013 Share Posted January 25, 2013 nevermind the runner.py fix worked for me too Link to comment
kricker Posted January 25, 2013 Share Posted January 25, 2013 nevermind the runner.py fix worked for me too What's that fix exactly? Link to comment
isochronous Posted January 25, 2013 Share Posted January 25, 2013 Literally ONE page back, very first post. C'mon, man. Effort. Link to comment
kricker Posted January 25, 2013 Share Posted January 25, 2013 ahh, I went back and looked, but did not scroll up far enough. I was in the middle of working/childcare and juggling many other things. I gotta learn to multi-task better. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.