linuxserver / docker-tvheadend

GNU General Public License v3.0
171 stars 90 forks source link

403 Forbidden #152

Closed muldy closed 4 years ago

muldy commented 4 years ago

Hi, Just installed, I get a "403 forbidden" in host:9981

Log on docker says: [ ERROR] http: 10.10.10.168: HTTP/1.1 GET (1) /extjs.html -- 403 I used sample docker-compose, with no "RUN_OPTS" Did i missed something?

I used to run tvheadend but not in docker...

tobbenb commented 4 years ago

Please supply all information we ask for in the issue template.

muldy commented 4 years ago

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

After install, open https://host:9981 and see a web interface

Current Behavior

I get a forbidden 403

Steps to Reproduce

  1. Install using docker-compose bellow
  2. docker-compose up -d
  3. open up: https://host:9981

Environment

OS: Ubuntu server 19.04
CPU architecture: x86_64
How docker service was installed: docker-compose up -d

Command used to create docker container (run/create/compose/screenshot)

version: "2" services: tvheadend: image: linuxserver/tvheadend container_name: tvheadend environment:

Docker logs

2019-12-30 20:10:18.604 [ INFO] transcode: 'audio' context type registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHH264Decoder' decoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHTHEORADecoder' decoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHAACDecoder' decoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHVORBISDecoder' decoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHOPUSDecoder' decoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHH264Encoder' encoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHHEVCEncoder' encoder helper registered 2019-12-30 20:10:18.604 [ INFO] transcode: '&TVHAACEncoder' encoder helper registered 2019-12-30 20:10:18.604 [ INFO] codec: 'mpeg2video' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'mp2' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'aac' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'vorbis' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'flac' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libx264' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libx265' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libvpx' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libvpx-vp9' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libtheora' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libvorbis' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'libopus' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'h264_vaapi' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'hevc_vaapi' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'vp8_vaapi' encoder registered 2019-12-30 20:10:18.604 [ INFO] codec: 'vp9_vaapi' encoder registered 2019-12-30 20:10:18.615 [ INFO] codec: 'webtv-vp8' codec profile created 2019-12-30 20:10:18.615 [ INFO] codec: 'webtv-vorbis' codec profile created 2019-12-30 20:10:18.615 [ INFO] codec: 'webtv-h264' codec profile created 2019-12-30 20:10:18.615 [ INFO] codec: 'webtv-aac' codec profile created 2019-12-30 20:10:18.623 [ INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS) 2019-12-30 20:10:18.623 [ INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu) 2019-12-30 20:10:18.624 [ INFO] iptv: Using 2 input thread(s) 2019-12-30 20:10:18.631 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0 2019-12-30 20:10:18.631 [ INFO] dvr: Creating new configuration '' 2019-12-30 20:10:18.632 [ INFO] epggrab: module uk_freesat created 2019-12-30 20:10:18.632 [ INFO] epggrab: module uk_freesat_eit created 2019-12-30 20:10:18.632 [ INFO] epggrab: module uk_freeview created 2019-12-30 20:10:18.632 [ INFO] epggrab: module nz_freeview2 created 2019-12-30 20:10:18.632 [ INFO] epggrab: module nz_freeview1 created 2019-12-30 20:10:18.632 [ INFO] epggrab: module viasat_baltic created 2019-12-30 20:10:18.632 [ INFO] epggrab: module Bulsatcom_39E created 2019-12-30 20:10:18.632 [ INFO] epggrab: module uk_cable_virgin created 2019-12-30 20:10:18.632 [ INFO] epggrab: module eit created 2019-12-30 20:10:18.632 [ INFO] epggrab: module psip created 2019-12-30 20:10:18.635 [ INFO] epggrab: module opentv-skyit created 2019-12-30 20:10:18.635 [ INFO] epggrab: module opentv-ausat created 2019-12-30 20:10:18.635 [ INFO] epggrab: module opentv-skyuk created 2019-12-30 20:10:18.636 [ INFO] epggrab: module opentv-skynz created 2019-12-30 20:10:18.636 [ INFO] epggrab: module xmltv created 2019-12-30 20:10:18.636 [ INFO] spawn: Executing "/usr/bin/tv_find_grabbers" 2019-12-30 20:10:18.801 [ INFO] scanfile: DVB-S - loaded 1 regions with 115 networks 2019-12-30 20:10:18.801 [ INFO] scanfile: DVB-T - loaded 44 regions with 1135 networks 2019-12-30 20:10:18.801 [ INFO] scanfile: DVB-C - loaded 19 regions with 62 networks 2019-12-30 20:10:18.801 [ INFO] scanfile: ATSC-T - loaded 2 regions with 12 networks 2019-12-30 20:10:18.801 [ INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks 2019-12-30 20:10:18.801 [ INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_wg created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_file created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_is created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_huro created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_il created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_na_dd created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_eu_dotmedia created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_se_tvzon created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_combiner created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_fr created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_it created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_pt_meo created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_tr created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_ar created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_fi created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_dk_dr created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_se_swedb created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_fi_sv created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_ch_search created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson_sqlite created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_eu_xmltvse created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_na_tvmedia created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_uk_tvguide created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_pt_vodafone created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_uk_bleb created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_na_dtv created 2019-12-30 20:10:20.186 [ INFO] epggrab: module /usr/bin/tv_grab_dtv_la created 2019-12-30 20:10:20.186 [ INFO] tbl-eit: module eit - scraper disabled by config 2019-12-30 20:10:20.186 [ INFO] epgdb: gzip format detected, inflating (ratio 138.6% deflated size 79) 2019-12-30 20:10:20.186 [ INFO] epgdb: parsing 57 bytes 2019-12-30 20:10:20.187 [ INFO] epgdb: loaded v3 2019-12-30 20:10:20.187 [ INFO] epgdb: config 1 2019-12-30 20:10:20.187 [ INFO] epgdb: broadcasts 0 2019-12-30 20:10:20.187 [ INFO] dvr: Purging obsolete autorec entries for current schedule 2019-12-30 20:10:20.187 [ NOTICE] START: HTS Tvheadend version 4.3-1857~g221c29b40 started, running as PID:308 UID:1000 GID:1000, CWD:/run/s6/services/tvheadend CNF:/config 2019-12-30 20:10:32.115 [ ERROR] http: 10.10.10.168: HTTP/1.1 GET (1) /extjs.html -- 403

tobbenb commented 4 years ago

Is 1000 the real UID and GID of the owner of your host config folder?

muldy commented 4 years ago

Yes, I use this UID & GUI on other docker containers from linuxserver.io

tobbenb commented 4 years ago

Just tested it here in case it was a bug in the latest release, but it works here. So it's something in your setup that is the problem.

How did you install docker? Using the repository version or followed the install guide on docker.com?

What is the output of ls -al on the config dir on host? Have you tried using the full path instead of the compose files folder?

muldy commented 4 years ago

I've removed the ./config folder and recreated container instead of just recreating the container, and I've got a working webui. The auth system is still tricky... sometimes gives me a 403 forbidden, to which I go to /logout and force a logout.