TVHeadend config persists after uninstall?
Added by dad dmac about 1 year ago
Hardware: RPI4
tvheadend: version 4.2.8 (HTSP v27).
osmc: 2023.08-1
Kernel: 5.15.92-1-osmc #1 SMP PREEMPT
Been working on various challenges, some accidentally self-imposed, with getting this configured for a couple of days (I tend to wait too long before asking for help).
The last problem I have to resolve is that since I got the client and server talking, I am no longer able to connect to 9981.
I've tried several of the suggestions in this very helpful forum.
I have:- Uninstalled/reinstalled tvheadend service several times, including in between the actions below.
- Run tvheadend server (as root) with -C.
- Run tvheadend server (as root) with --noacl.
- Used the default user/password (which is working somewhere, as the client is able to communicate with the server after I reinstall it).
- Used * and * for the user/password.
- Used blanks, both with and without tabbing through the login dialog box.
- What else should I investigate or try?
- Is it possible to manually delete the TVH server configuration without damaging the client configuration?
- Should I just start over? (I've spent as much, or more, time trying to correct this than it would take to reinstall, but, like I said, I tend to wait to long. Besides, I want to understand the problem/solution, and don't like letting the system best me...)
TIA for your time and attention!
Replies (2)
RE: TVHeadend config persists after uninstall? - Added by Jonas Lang about 1 year ago
What source did you use to install TVH from.
RE: TVHeadend config persists after uninstall? - Added by Delta Mike Charlie about 1 year ago
A few random things to try:
Do you have a firewall that could be blocking that port?
Do you get any particular message or does your browser just timeout?
You could try adding the parameter ‘--http_port nnnn’ to the tvheadend command line where nnnn is a port of your choosing. If you can connect to that port then tvheadend seems to be working and port 9981 could be in use by another task.
Do you have ssh/console access to the device? If so, if you run ‘ps aux|grep tvheadend’, how many instances do you see? (Should be 2, one for tvheadend and one for grep).
dmc@kodi-dev-v2:~$ ps aux |grep tvheadend
dmc 235568 0.1 0.7 1155680 31948 pts/3 Sl+ 09:13 0:52 ./tvheadend --noacl
dmc 237455 0.0 0.0 9212 2432 pts/10 S+ 16:56 0:00 grep --color=auto tvheadend
Assuming that you only see one real tvheadend, you can take the process ID, in my case 235568 (yours will be different) and see where it is actually running from:
dmc@kodi-dev-v2:~$ sudo ls -l /proc/235568/exe
lrwxrwxrwx 1 dmc dmc 0 Nov 12 09:13 /proc/235568/exe -> /my/secret/location/tvheadend
Perhaps that could give you some hints regarding where your configuration files are.
With your tvheadend service stopped, you could also try:
sudo cat /proc/net/tcp|grep -i 26FD
This will show you if another process is using port 9981.