diddlesnaps / tvheadend

MIT License
10 stars 0 forks source link

[Bug]: 401 Unauthorized #21

Open xtchall opened 2 years ago

xtchall commented 2 years ago

What happened?

I used snapd and installed Tvheadend, then ran the Wizard to completion. Then subsequent login attempts were denied for both the administrator and user accounts.

In another thread you suggested: tvheadend.reset-permissions Can you please provide detail for a snapd noob on running this command.

What should have happened?

Provide Tvheadend login credentials to localalhost:9981 and obtain access to UI.

Output of snap info $snap_name

name:      tvheadend
summary:   TV streaming server supporting DVB, ATSC, IPTV, and SAT>IP
publisher: Daniel Llewellyn (diddledani)
store-url: https://snapcraft.io/tvheadend
contact:   https://github.com/diddlesnaps/tvheadend/issues
license:   unset
description: |
  Tvheadend is a TV streaming server and digital video recorder supporting DVB-S, DVB-S2, DVB-C,
  DVB-C2, DVB-T, DVB-T2, ATSC, IPTV, SAT>IP and other formats. It can also stream and record from
  HDHomeRun devices.
  Once installed use your web browser to navigate to `http://[IP-Address]:9981/` (You can use
  `127.0.0.1` for the IP Address if your browser and tvheadend are on the same computer.)

  Once installed use your web browser to navigate to `http://[IP-Address]:9981/ `to set up the
  server. You can use `127.0.0.1` for the IP Address if your browser and tvheadend are on the same
  computer, or you can find the TVHeadend icon in your desktop menu.

  You can change the listening port and IP with `snapctl set tvheadend tvh-http-port=9981` and
  `snapctl set tvheadend tvh-ip=0.0.0.0`. You can also change the port for HTSP streaming
  connections with `snapctl set tvheadend tvh-htsp-port=9982`

  OSCam's web interface is listening on port `8888` by default. You can change this by editing the
  file returned by `tvheadend.oscam-config`. e.g. `sudo $EDITOR $(tvheadend.oscam-config)`. This is
  an ini-style file where the web interface IP Address and Port are configured as below:

      [global]
      serverip =

      [webif]
      httpport =

   See [the OSCam configuration
   reference](http://www.streamboard.tv/wiki/OSCam/en/Config/oscam.conf)  for details on the
   accepted options for the configuration file.

  - Upstream Project: https://tvheadend.org/
  - snapcraft.yaml Build Definition:
  https://github.com/diddlesnaps/tvheadend/blob/master/snap/snapcraft.yaml

  This Snap package is not maintained by the TVHeadend project. Please report issues here:
  https://github.com/diddlesnaps/tvheadend/issues
commands:
  - tvheadend.oscam-config
  - tvheadend.oscam-webui
  - tvheadend.reset-permissions
  - tvheadend.tvheadend-webui
services:
  tvheadend.oscam: simple, enabled, active
  tvheadend:       simple, enabled, active
snap-id:      BLigMwxrfwBKQpnk0iQHu8hZts8Fgf2d
tracking:     latest/stable
refresh-date: today at 07:56 PDT
channels:
  latest/stable:    4.2.8 2022-01-09 (200) 153MB -
  latest/candidate: ↑                            
  latest/beta:      ↑                            
  latest/edge:      4.2.8 2022-06-17 (216) 154MB -
installed:          4.2.8            (200) 153MB -

Output of snap connections $snap_name

Interface        Plug                       Slot           Notes
avahi-control    tvheadend:avahi-control    -              -
desktop          tvheadend:desktop          :desktop       -
dvb              tvheadend:dvb              :dvb           -
network          tvheadend:network          :network       -
network-bind     tvheadend:network-bind     :network-bind  -
opengl           tvheadend:opengl           :opengl        -
removable-media  tvheadend:removable-media  -              -

Output of snap version

snap    2.56.2-1
snapd   2.56.2-1
series  16
arch    -
kernel  5.18.5-arch1-1

Relevant log output

No response

Teminal output of app

No response

antcasjos commented 2 years ago

Exact same problem here after installing Ubuntu 22.10 Kinetic Kudu. By the way, I installed the snap package as the kinetic repo from ppa:mamarley/tvheadend-git shows the following missing dependencies: libavcodec58 (>= 7:4.4), libavfilter7 (>= 7:4.4) libavformat58 (>= 7:4.4) and libavutil56 (>= 7:4.4).