Can't reach couchpotato ui reverse proxy
|
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Jan 31, 2017, 04:18 PM
I followed several htpc guides to get deluge working via reverse proxy with signed secure certificate. I have that working great, testing A+ on security, access via xginx reverse proxy and password great. I think I understand what I did, and thought I knew what to do to add more services on the list. My next item of business was to add couchpotato. I made sure to edit the reverse config file to include couchpotato in the 443 port redirect section (in this file: /etc/nginx/sites-available/reverse)
for reference, here is my deluge section since it's working...
Code:
# Deluge
location /deluge {
proxy_pass http://localhost:8112/;
proxy_set_header X-Deluge-Base "/deluge/";
# include snippets/proxy-control.conf;
}
I also added the couchpotato section...
Code:
# CouchPotato
location /couchpotato {
proxy_pass http://127.0.0.1:5050/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
I tried a bunch of different things here including changing the ip to localhost like deluge has. I tried port forwarding via my router to access from the outside via https://my_domain_name.com:5050 and https://my_domain_name.com/couchpotato neither of which work.
I'm stumped. I can't figure out how to access the webui from any angle. I know couchpotato needs to be set up to use the base directory of /couchpotato, but I can't do that until I can access it for the first time to do that.... now what?
Posts: 244
Threads: 1
Joined: Jul 2016
Reputation:
12
[Solved]
Jan 31, 2017, 04:35 PM
(This post was last modified: Jan 31, 2017, 04:36 PM by drake.)
Now from phone, but here is what you should do: you need to configure CouchPotato for reverse proxy. If you run CP as vpn user then indeed, you can't access CP. Change the user who runs CP to your regular user, do a daemon-reload to update systemd and restart CP service. Then access CP, set reverse proxy (check out the guide), once done, change back CP user to vpn, restart service and there you go. Just make sure you have revertes back your nginx settings to correct one.
Btw, if you don't use CP to access indexer, but Jackett, then you don't need to run CP as vpn user. Let me know if this worked for you.
Sent from Tapatalk from my Z5 Compact
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Feb 02, 2017, 09:08 PM
(Jan 31, 2017, 04:35 PM)drake Wrote: Now from phone, but here is what you should do: you need to configure CouchPotato for reverse proxy. If you run CP as vpn user then indeed, you can't access CP. Change the user who runs CP to your regular user, do a daemon-reload to update systemd and restart CP service. Then access CP, set reverse proxy (check out the guide), once done, change back CP user to vpn, restart service and there you go. Just make sure you have revertes back your nginx settings to correct one.
Btw, if you don't use CP to access indexer, but Jackett, then you don't need to run CP as vpn user. Let me know if this worked for you.
Sent from Tapatalk from my Z5 Compact
Thanks so much for the reply!
Questions:
First off... I can now access the couchpotato UI. I have everything set up as best I can, but I can't get couchpotato to connect to deluge. I think the guide uses the old version, and the new version is a little different. Some settings I'm not sure if I have to set, or how to:
SSL Cert
SSL Key
I have SSL set up, but I'm not sure what it's looking for, or what exactly to put in here. A path to my keys? Where do I find them? Is this necessary?
Use Proxy checkbox
Proxy Server
Proxy Username
Proxy Password
The guide doesn't show the use proxy box checked, nor the server's address filled in (am I looking at the wrong guide?) Proxy Username / Password, this is the nginx password, or deluge password?
In: Downloaders / Deluge
username
password
host
I'm assuming it's looking for my deluge username and password. The one I'm using works just fine to access it via the web remotely, so that's got to be correct yes? For host... Am I supposed to be able to access it locally since it's reverse ip? I can't seem to access locally nomatter what address I try even just going to a web browser.
I'm using the Test Connection button on this page to try to connect to Deluge
Thanks again.
Posts: 244
Threads: 1
Joined: Jul 2016
Reputation:
12
[Solved]
Feb 02, 2017, 09:54 PM
Run CP only as your regular user to set up reverse proxy settings in CP UI. Then change back CP systemd service to run as vpn user, if you would like to run CP as vpn user (as I said, most likely you would like to do this if you are using the built in indexers).
You have CP and Deluge Daemon running on same server, correct? Then you don't need any SSL or Proxy settings inside CP, just set the address to localhost or enter the server ip, and the username and password you have for Deluge, but NOT the password you use for Web UI, but the username and password for Deluge Daemon. If you don't have that set, then you need to enable Allow Remote Connection and set a username and password in the auth file.
Stop Deluge Daemon.
Code:
sudo nano /home/vpn/.config/deluge/core.conf
Set the to true, like this:
Code:
"allow_remote": true,
Then add a username and password (this will be used in CP). Replace username and password to your choice.
Code:
sudo echo username:password >> /home/vpn/.config/deluge/auth
Start Deluge Daemon, and try to set Deluge as client in CP. Just make sure you don't have any of the SSL or Proxy setting enabled in CP.
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Feb 02, 2017, 10:33 PM
okay sweet. Thanks so much. You know, a big thing I didn't notice until just now is that you have to restart the daemon for any setting you change in the webui to take effect. I've been changing those all day and hitting test... lol.
I did have to both enable remote connection, and add the user/pass. btw, is it safe to just nano edit the auth file? It won't take the password I want because there is a ! in it, and that screws up the command.
Thanks again!
Posts: 244
Threads: 1
Joined: Jul 2016
Reputation:
12
[Solved]
Feb 03, 2017, 07:44 AM
(Feb 02, 2017, 10:33 PM)Thumper33 Wrote: okay sweet. Thanks so much. You know, a big thing I didn't notice until just now is that you have to restart the daemon for any setting you change in the webui to take effect. I've been changing those all day and hitting test... lol.
I did have to both enable remote connection, and add the user/pass. btw, is it safe to just nano edit the auth file? It won't take the password I want because there is a ! in it, and that screws up the command.
Thanks again!
You're welcome, I'm glad it is working for you now. Yes, you always have to restart the Deluge Daemon and WEB UI if you make any changes to the configuration files. And stop the service before your edit the files.
You can use nano for editing the auth file, of course. I don't really like passwords with special characters for these things (web login is fine), they can complicate things a lot (on the other side, they are more secure).
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Feb 03, 2017, 09:46 PM
(This post was last modified: Feb 03, 2017, 09:59 PM by Thumper33.)
I have everything set up now except one thing isn't working. I'm not sure if it's a bug or settings issue.
It only finds the movies that it downloads to manage. It never sees the rest of my media library even though they're in the same place.
Thanks again for all your help.
edit: just thought of something. I don't keep the .nfo files for the movies I already have in my library. Plex dosen't seem to care if they're there or not. Is this the problem, and CP doesn't know what movies they are without them?
Also, I'm looking at permissions as a possible issue. Looking in my main library folder, the files that I have the renamer rename and move there are all owned by the vpn user, and the permissions are ...
drwxr-xr-x 2 vpn vpn 3 Feb 3 14:45 MovieFolderExample
The ones that I put there I manually changed the whole directory to drwxrwxr-x , although the owner/group is my main user, not vpn. That said, vpn is in my group, and I'm in the vpn group.
When I look at the movie however that CP put in there, it's labeled as -rw-r--r-- 1 vpn vpn, and therefore I obviously don't have permissions since the group permissions aren't set. How do I change the permissions with which these files are created? Also, the file name is in red, which I'm guessing means I don't have permission? or what does that mean?
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Feb 04, 2017, 04:50 AM
(Feb 03, 2017, 09:46 PM)Thumper33 Wrote: I have everything set up now except one thing isn't working. I'm not sure if it's a bug or settings issue.
It only finds the movies that it downloads to manage. It never sees the rest of my media library even though they're in the same place.
Thanks again for all your help.
edit: just thought of something. I don't keep the .nfo files for the movies I already have in my library. Plex dosen't seem to care if they're there or not. Is this the problem, and CP doesn't know what movies they are without them?
Also, I'm looking at permissions as a possible issue. Looking in my main library folder, the files that I have the renamer rename and move there are all owned by the vpn user, and the permissions are ...
drwxr-xr-x 2 vpn vpn 3 Feb 3 14:45 MovieFolderExample
The ones that I put there I manually changed the whole directory to drwxrwxr-x , although the owner/group is my main user, not vpn. That said, vpn is in my group, and I'm in the vpn group.
When I look at the movie however that CP put in there, it's labeled as -rw-r--r-- 1 vpn vpn, and therefore I obviously don't have permissions since the group permissions aren't set. How do I change the permissions with which these files are created? Also, the file name is in red, which I'm guessing means I don't have permission? or what does that mean?
I finally found in the couchpotato settings where it lets you assign permissions in advanced / Folder CHMOD - I wasn't even looking there cuz I thought it would just be set up right and didnt' know what the octal numbers meant without looking them up. Turns out they didnt' want other users in teh group to have write capabilities... odd. oh well, fixed.
It still doesn't see the rest of my movies. I even have them named pretty normal .. ie: Movie Name (2016). I'm anal and renamed them (folder and file) exactly how I wanted them to begin with. There are a few I could have it fix where I got lazy and didn't put in the year, so I was hoping it would see those and fix em. I guess it just doesn't know what they are without the nfo file?
Posts: 244
Threads: 1
Joined: Jul 2016
Reputation:
12
[Solved]
Feb 07, 2017, 01:40 PM
To tell you the truth I'm not a big CP fan, I did use it, and I still use it sometimes, but not too much.
About the detection: I think it requires a nfo file for proper detection. I would recommend to always include a nfo file next to your movie, and I think it helps a lot if the IMDb link is in the nfo file.
Posts: 19
Threads: 7
Joined: Jan 2017
Reputation:
0
[Solved]
Feb 07, 2017, 03:00 PM
(Feb 07, 2017, 01:40 PM)drake Wrote: To tell you the truth I'm not a big CP fan, I did use it, and I still use it sometimes, but not too much.
About the detection: I think it requires a nfo file for proper detection. I would recommend to always include a nfo file next to your movie, and I think it helps a lot if the IMDb link is in the nfo file.
What do you use instead of cp? I didn't know anything else was available like it for movies. Wish something would do movies AND TV in the same interface. I love the concept of cp, but I can't tell what's going on in the background or what some of the setting actually do, and know how to fix it when it can't identity a show when it's named... Ghostbusters (2016)... come on... what else do you want? Plex knows what it is so there must be a dB somewhere to bounce that off of, even if it needs to be manual when it can't really tell. Maybe I just don't understND the interface.
|
|
Recent Posts
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Split Tunnel Docker Containers
jonesPhedra Mar 27, 2024, 03:10 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|