Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - HTPC-Manager (Hellowlol)

Featured Replies

  • Replies 83
  • Views 22.2k
  • Created
  • Last Reply

Change the webdir

 

5bXtDYL.png

 

I can't get it to run. My nginx config is as follows:

 

server {
listen 80;
server_name    *******;
return         301 https://$server_name$request_uri;
}

server {
listen 443 ssl default_server;

auth_basic "Restricted";
    auth_basic_user_file /config/nginx/.htpasswd;

root /config/www;
index index.html index.htm index.php;

server_name    *********;

ssl_certificate /config/keys/fullchain.pem;
ssl_certificate_key /config/keys/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;

client_max_body_size 0;

location / {
	proxy_pass			http://192.168.2.113:8085;
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
}

location /sabnzbd {
	proxy_pass			http://192.168.2.113:8080;
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
}

location /cp {
	proxy_pass			http://192.168.2.113:5050;
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
	proxy_redirect		default;
}

location /sonarr {
	proxy_pass			http://192.168.2.113:8989;
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
}

location /nzbhydra {
	proxy_pass			http://192.168.2.113:5075;
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
}

location /deluge {
	proxy_pass			http://192.168.2.113:8112/;
	proxy_set_header	X-Deluge-Base "/deluge/";
	include				/config/nginx/proxy-control.conf;
	include				/config/nginx/auth-basic.conf;
}

location ~ \.php$ {
	fastcgi_split_path_info ^(.+\.php)(/.+)$;
	# With php5-cgi alone:
	fastcgi_pass 127.0.0.1:9000;
	# With php5-fpm:
	#fastcgi_pass unix:/var/run/php5-fpm.sock;
	fastcgi_index index.php;
	include /etc/nginx/fastcgi_params;
}
}

 

The proxy-control.conf file contains:

 

proxy_connect_timeout   59s;
proxy_send_timeout      600;
proxy_read_timeout      36000s;  ## Timeout after 10 hours
proxy_buffer_size       64k;
proxy_buffers           16 32k;
proxy_pass_header       Set-Cookie;
proxy_hide_header       Vary;

proxy_busy_buffers_size         64k;
proxy_temp_file_write_size      64k;

proxy_set_header        Accept-Encoding         '';
proxy_ignore_headers    Cache-Control           Expires;
proxy_set_header        Referer                 $http_referer;
proxy_set_header        Host                    $host;
proxy_set_header        Cookie                  $http_cookie;
proxy_set_header        X-Real-IP               $remote_addr;
proxy_set_header        X-Forwarded-Host        $host;
proxy_set_header        X-Forwarded-Server      $host;
proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
proxy_set_header        X-Forwarded-Port        '443';
proxy_set_header        X-Forwarded-Ssl         on;
proxy_set_header        X-Forwarded-Proto       https;
proxy_set_header        Authorization           '';

proxy_buffering         off;
proxy_redirect          off;

## Required for Plex WebSockets
proxy_http_version      1.1;
proxy_set_header        Upgrade         $http_upgrade;
proxy_set_header        Connection      "upgrade";

 

The auth-basic.conf contains:

 

auth_basic              "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;

 

Thank you for the help!

Can you reach it from your LAN?  ie

 

http://tower:8085/htpc/

 

If so then your problem is with nginx and I can't help you I'm afraid as I use Apache. 

 

FWIW my config in Apache is pretty simple...

 

	<Location /htpc>
	ProxyPass http://192.168.0.1:8085/htpc
	ProxyPassReverse http://192.168.0.1:8085/htpc
	AuthUserFile /config/keys/.htpasswd
	AuthType Basic
	AuthName "HTPC Manager"
	Require valid-user
</Location>

I can reach it from my LAN. HTPC is also reachable via the internet, HTPC can't reach the other services ie sabnzbd. It says it is impossible to connect.

Sorry, can only tell you it works for me on Apache.  May be helpful if you posted a bit more information like some screenshots from your HTPC manager setup pages.

I can reach it from my LAN. HTPC is also reachable via the internet, HTPC can't reach the other services ie sabnzbd. It says it is impossible to connect.

 

I'm not sure I got the graps of your issues but I just want to make something clear. Htpc manager "talks" to the other services via the local ips so say you want to use the cp module the host/port should be the local ip of you computer. If you want htpc manager to open the couch potato we interface by clicking co header inside htpc manager you can add that under reverse proxy link inside htpcmanagers couchptato module settings.

 

Do not use the reverse proxy option inside htpc manager general settings.

 

If your using htpc manager as a landing page eg mydomain.net you have to change the nginx config to avoid a name clash. Say you want to open the couch potatoes own web interface at xxx.net/couchporato that will not work because that is the URL for couchpotato module for htpc manager.  That why you have to use a webdir or change the urls inside the nginx config.

 

I tried to keep this short as I have only access to my phone, I hope I makes sense. If it don't I'll post my nginx config later and explain it in detail.

  • 4 weeks later...

same problem  :(

And what problem is that? It would be really helpfully with a description of the problem, logs, screenshot of settings, config file if it's related to reverse proxy etc.

And what problem is that? It would be realt helpfull with a description of the problem, logs, screenshot of settings, config file if it's related to reverse proxy etc.

Took the words right out of my mouth....

 

Sent from my LG-H815 using Tapatalk

 

 

Well that was the only way you were ever going to get it without posting what the problem was in the first place....

 

Sent from my LG-H815 using Tapatalk

 

speak for yourself, i'm psychic and knew what his problem was all along, but i just didn't feel like sharing.

That'll be why you're a way more valuable member of ls.io than humble little me then... lol

 

Sent from my LG-H815 using Tapatalk

 

Well that was the only way you were ever going to get it without posting what the problem was in the first place....

 

Sent from my LG-H815 using Tapatalk

 

speak for yourself, i'm psychic and knew what his problem was all along, but i just didn't feel like sharing.

 

Et Tu Sparkles?

IS there a special trick to getting the SMART system working? A previous post mention smartmontools as not being included.

  • 1 month later...

I can't get systeminfo to work.

It shows no drives/mnts.

 

Can anyone post a screenshot of their config for this section?

  • 2 months later...
  • 5 months later...

Anyone ever figure out why Plex needed to be run in host mode?  I'm having the same problem... HTPCManager won't connect if it is in bridge mode.

Anyone ever figure out why Plex needed to be run in host mode?  I'm having the same problem... HTPCManager won't connect if it is in bridge mode.

 

Our Plex container needs to be run in host mode.  That's just the way it is.

Hey guys, how can I switch the git branch for htpc manager?

Hey guys, how can I switch the git branch for htpc manager?

 

Fork our repo and edit the dockerfile and build.

:) Ok, I'll give it a shot. Thanks!
  • 1 month later...

Hi there

 

Another fantastic docker image, thanks for your hard work.

 

I am having trouble getting the tvheadend section working. I am not sure if i have done something wrong on the tvheadend side or not i don't understand the error.

 

I know the username and password work over the network as it is used by kodi.

 

Here is the error message. Let me know if you need any more details.

 

2017-02-14 22:13:41 :: cherrypy.error.47333621572752 :: ERROR :: [14/Feb/2017:22:13:41] HTTP

 

Traceback (most recent call last):

File "/app/htpcmanager/libs/cherrypy/_cprequest.py", line 670, in respond

response.body = self.handler()

File "/app/htpcmanager/libs/cherrypy/lib/encoding.py", line 217, in __call__

self.body = self.oldhandler(*args, **kwargs)

File "/app/htpcmanager/libs/cherrypy/lib/jsontools.py", line 63, in json_handler

value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)

File "/app/htpcmanager/libs/cherrypy/_cpdispatch.py", line 61, in __call__

return self.callable(*self.args, **self.kwargs)

File "/app/htpcmanager/modules/tvheadend.py", line 83, in DVRList

return self.fetch("api/dvr/entry/grid_" + strType, None)

File "/app/htpcmanager/modules/tvheadend.py", line 113, in fetch

self.logger.error('%s %s failed error: %s' % strQuery, rgpData, e)

 

TypeError: not enough arguments for format string

 

Thanks in advance for any help.

Hi there

 

Another fantastic docker image, thanks for your hard work.

 

I am having trouble getting the tvheadend section working. I am not sure if i have done something wrong on the tvheadend side or not i don't understand the error.

 

I know the username and password work over the network as it is used by kodi.

 

Here is the error message. Let me know if you need any more details.

 

2017-02-14 22:13:41 :: cherrypy.error.47333621572752 :: ERROR :: [14/Feb/2017:22:13:41] HTTP

 

Traceback (most recent call last):

File "/app/htpcmanager/libs/cherrypy/_cprequest.py", line 670, in respond

response.body = self.handler()

File "/app/htpcmanager/libs/cherrypy/lib/encoding.py", line 217, in __call__

self.body = self.oldhandler(*args, **kwargs)

File "/app/htpcmanager/libs/cherrypy/lib/jsontools.py", line 63, in json_handler

value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)

File "/app/htpcmanager/libs/cherrypy/_cpdispatch.py", line 61, in __call__

return self.callable(*self.args, **self.kwargs)

File "/app/htpcmanager/modules/tvheadend.py", line 83, in DVRList

return self.fetch("api/dvr/entry/grid_" + strType, None)

File "/app/htpcmanager/modules/tvheadend.py", line 113, in fetch

self.logger.error('%s %s failed error: %s' % strQuery, rgpData, e)

 

TypeError: not enough arguments for format string

 

Thanks in advance for any help.

 

As far as I know, the TVHeadend part of HTPC-Manager doesn't work currently and is outside our control as its due to the application itself. Best thing to do will be report the error on the HTPC-Manager github. :-)

OK thanks for the reply.

 

I'll give that a go.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.