dtv2 and journalctl log very the same: root@david-945GCMX-S2:/# journalctl -xeu tvheadend.service fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --threadid Add the thread ID to debug fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --libav More verbose libav log fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --uidebug Enable web UI debug (non-minified JS) fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: -A, --abort Immediately abort fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: -D, --dump Enable coredumps for daemon fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --noacl Disable all access control checks fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --nobat Disable DVB bouquets fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: -j, --join Subscribe to a service permanently fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: Testing options fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --tsfile_tuners Number of tsfile tuners fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --tsfile tsfile input (mux file) fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --tprofile Gather timing statistics for the code fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: --thrdebug Thread debugging fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: For more information please visit the Tvheadend website: fev 22 15:00:03 david-945GCMX-S2 tvheadend[2303]: https://tvheadend.org fev 22 15:00:03 david-945GCMX-S2 systemd[1]: tvheadend.service: Can't open PID file /run/tvheadend.pid (yet?) after start: Operation not permitted fev 22 15:00:03 david-945GCMX-S2 systemd[1]: tvheadend.service: Failed with result 'protocol'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit tvheadend.service has entered the 'failed' state with result 'protocol'. fev 22 15:00:03 david-945GCMX-S2 systemd[1]: Failed to start Tvheadend - a TV streaming server and DVR. ░░ Subject: A start job for unit tvheadend.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit tvheadend.service has finished with a failure. ░░ ░░ The job identifier is 3034 and the job result is failed.
Jon M dtv2 Can't open PID file /run/tvheadend.pid (yet?) after start: Operation not permitted> Possible clue there. Does this file already exist? What are its permissions?
dtv2 the file not exist at /run/ either at /var/run/ and does not exist too when a start manualy tvheadend.
Jonas Lang Try searching for the file tvheadend.pid on your system and see exactly where it is located before proceeding any further.
Jon M dtv2 isn't that because it's systemd which creates the tvheadend.pid file, rather than tvheadend itself? So I think you would not expect to see that file if you start it manually.
Jon M Actually, looking at the command which gets run from systemd on my system, it's like so: /usr/bin/tvheadend -f -p /run/tvheadend.pid -u hts Are you starting it (manually) with a command like this?
dtv2 I start manualy just whit this command: tvheadend I think error was do an install of python3-certbot-apache in the system , i do a fresh install and tvheadend start auto again then afther the install of python3-certbot-apache the error happening.
Jonas Lang What method did you use to install TVH. Did you compile it yourself or install from prebuilt packages. What hardware is TVH installed on.
dtv2 i install the script (Official Sources) in the link above in downloads. hardware is 2x digitaldevices. anyway afther new instalation and this time stunnel install the error come back so any app who write in service for startup kill the tvheadend to auto boot. i will try backwards. (first install apache then tvheadend)
Jonas Lang You’ll probably need to adjust your TVH service file depending on which service you need to load first.