Forums » Tutorial and setups »
Not possible to save manual mux list?
Added by David Tordrup almost 12 years ago
Hi everyone,
I have a feeling this is an incredibly simple issue - but I have Googled wide and far, and can't even find anyone with the same problem. I have installed TVHeadEnd (compiled from source) v. "3.3.186~g7f39475", and am using a DVB-T tuner which works fine. I have added muxes manually, and I can watch TV without problems.
The issue is - my mux list doesn't seem to be saved anywhere. When I restart the server (or TVHeadend) I have to re-enter all the mux'es. I have tried setting Configuration > General > DVB scan files path = /usr/share/dvb (and the directory exists) followed by Save Changes, assuming this is where the mux list would be placed. But the directory is always empty. The server is run by user "daemon" if it makes any difference.
Any hints would be most appreciated!
I'm running on Ubuntu 10.04 on an old kernel (2.6.32.9), and on an ARM device (Cubox).
Best,
Dave
Replies (7)
RE: Not possible to save manual mux list? - Added by Prof Yaffle almost 12 years ago
Gut feeling: you have a permissions problem. You're on a self-build system, so I'd track back through how I built it and the user under which it's installed - and where the config files are, and whether they can be written. The default is /home/hts/.hts/tvheadend, although the fact you're running as "daemon" suggests that they could be somewhere else. There will be (should be) a directory called dvbmuxes that contains all your mux information, arranged under directories named after your tuners.
I don't really know what that Configuration setting is for - I've certainly never used it, and I don't think it's for the config files you're looking for anyway.
RE: Not possible to save manual mux list? - Added by David Tordrup over 11 years ago
Thanks for your reply. The server process is in fact running under a normal user account (cubox), and the config folder you mentioned is here:
/home/cubox/.hts/tvheadend/
however the contents of this folder is only a folder "accesscontrol" and a file epgdb.v2, neither of which have anything to do with the mux list. There are no hidden files etc.
Is there any way I can check where the config files in reality are, or check a log file for what's going on? There's nothing in /var/log...
RE: Not possible to save manual mux list? - Added by Prof Yaffle over 11 years ago
Random thoughts (it's late!).
Can you do a ps -eaf | grep tvheadend so we know exactly what account/GID you're running under, please.
I still suspect that something can't write to where it's trying - although that doesn't explain why you've been able to save the files you mention above.
You can get rid of the DVB Scan files path setting as well, I don't think it's helping.
Can you explain how you're starting tvheadend?
Other thought - switch on tvheadend debugging, maybe that gives some more information (everything is written to syslog). Find the file /etc/default/tvheadend and set TVH_DEBUG=1, then restart tvheadend and see what gets written out.
RE: Not possible to save manual mux list? - Added by David Tordrup over 11 years ago
Of course. In fact, I've been running the server with two different commands, but there appears to be no difference in whether mux list is stored. Output of ps -eaf | grep tvheadend:
As "tvheadend &" (logged in with the cubox user account)
cubox 26912 26586 0 11:38 pts/0 00:00:00 tvheadend
As "sudo tvheadend -C -f":
daemon 26977 1 4 11:41 ? 00:00:00 tvheadend -C -f
I looked for the /etc/default/tvheadend but there was not such file in the /etc/default directory. Any idea where it might be in that case? I couldn't find an option to enable debugging in the web interface, and the web interface also gives no output from the system.
RE: Not possible to save manual mux list? - Added by Prof Yaffle over 11 years ago
I this all comes from the fact that you've never installed it (i.e. created a .deb file or similar). I would guess that user 'daemon' doesn't have write permission to /home/cubox/.hts/tvheadend, or is trying to create config files elsewhere where they're failing - perhaps /home/daemon, or perhaps daemon doesn't have a home directory at all. A lack of installation explains the lack of /etc/default/tvheadend - apologies, I should have realised that beforehand. You can switch debugging on in the web interface by opening the message pane (double chevron in the bottom right) and then clicking the gear symbol that appears.
You're starting it as a daemon (-f) which defaults to daemon/video, but the -C option is switching off access control, which would have shown up a config problem earlier, I suspect (since you wouldn't have been able to log in to the web UI and wouldn't have been able to create the access control rules properly).
Personally, I'd be inclined to use autobuild to create a deb package and then install that through dpkg. This will install tvheadend just as if it had come from a PPA, including all the config files, startup files, etc.
If that's not an option, do some digging into the command-line options (I think there's one to specify where the config resides, for example; -c <config_directory>, I think); check the permissions on the .hts/tvheadend directory (must be writeable by daemon). Also, do a find / -name tvheadend to see if there's something elsewhere that we've missed.
Apologies, short on time to help more at the moment.
RE: Not possible to save manual mux list? - Added by Anonymous over 9 years ago
Hi all.
I have same problem and I'm using geexbox. Just for clarify, geexbox use only root users and launch tvheadend as deamon using :
/usr/bin/tvheadend -c /etc/tvheadend -s
command.
Also, mounts drives correctly in RW mode so I exclude write access problem.
Doesn't exists .hts folder in /home/cubox : as home folder geexbox use /root folser and lloking for .hts subfolser I only found:
./.Trash-0/files/usr/share/xbmc/addons/pvr.hts
./root/.xbmc/userdata/addon_data/pvr.hts
./usr/share/xbmc/addons/pvr.hts
folders.
I'm not able do know what test I can do for discover the solution
RE: Not possible to save manual mux list? - Added by Prof Yaffle over 9 years ago
If you're not running it as hts then there's no reason to have a hts directory anywhere.
You could search for tvheadend, as that's the real config directory - the -c option you're passing should store the config in /etc/tvheadend, though, so what's there?
Also, -s sends debugging to syslog, so is there anything there that might tell you something?