Resolved: Mythbackend sees no tuners

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
dualboot
Junior
Posts: 28
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Resolved: Mythbackend sees no tuners

Post by dualboot » Thu Aug 23, 2018 5:57 pm

I suspect this might have been happening since install, and I just hadn't rebooted it after getting it working...

After a reboot, no tuners show up in status and there are no 'upcoming recording'.

Doing grep dvb /var/log/mythtv/mythbackend.log I get

Code: Select all

Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[3](/dev/dvb/adapter0/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[3](/dev/dvb/adapter0/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter0/frontend0
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[4](/dev/dvb/adapter0/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[4](/dev/dvb/adapter0/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter0/frontend0
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[5](/dev/dvb/adapter1/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[5](/dev/dvb/adapter1/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter1/frontend0
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[6](/dev/dvb/adapter1/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[6](/dev/dvb/adapter1/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Aug 23 18:39:53 Amilo mythbackend: mythbackend[834]: E CoreContext recorders/channelbase.cpp:870 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter1/frontend0
justin@Amilo:~$ ps -Aa | grep myth
  834 ?        00:00:00 mythbackend
justin@Amilo:~$ kill 834
-bash: kill: (834) - Operation not permitted
justin@Amilo:~$ sudo !!
sudo kill 834
[sudo] password for justin: 
If I kill mythbackend (I always forget to sudo first time! and then run mythbackend in a tmux session as myself (justin) it comes back fine.

I looked at groups and found mythtv wasn't in video and I wasn't in mythtv, but neither of those has helped.

Any troubleshooting tips greatly appreciated :)

Code: Select all

justin@Amilo:~$ cat /etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:syslog,justin
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:mythtv
fax:x:21:
voice:x:22:
cdrom:x:24:justin,mythtv
floppy:x:25:
tape:x:26:
sudo:x:27:justin
audio:x:29:pulse,mythtv
dip:x:30:justin
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:mythtv
sasl:x:45:
plugdev:x:46:justin
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
systemd-journal:x:101:
systemd-timesync:x:102:
systemd-network:x:103:
systemd-resolve:x:104:
systemd-bus-proxy:x:105:
input:x:106:
crontab:x:107:
syslog:x:108:
netdev:x:109:
messagebus:x:110:
uuidd:x:111:
ssl-cert:x:112:
lpadmin:x:113:justin
lightdm:x:114:
nopasswdlogin:x:115:
ssh:x:116:
whoopsie:x:117:
mlocate:x:118:
avahi-autoipd:x:119:
avahi:x:120:
bluetooth:x:121:
scanner:x:122:saned
colord:x:123:
pulse:x:124:
pulse-access:x:125:
rtkit:x:126:
saned:x:127:
justin:x:1000:justin
sambashare:x:128:justin
mysql:x:129:
ntp:x:130:
mythtv:x:131:justin,mythtv
justin@Amilo:~$ 
Last edited by dualboot on Fri Aug 24, 2018 7:51 pm, edited 1 time in total.

User avatar
Steve Goodey
Moderator
Posts: 74
Joined: Fri Feb 07, 2014 6:30 pm
Location: Colchester, England
Great Britain

Re: Mythbackend sees no tuners

Post by Steve Goodey » Thu Aug 23, 2018 9:39 pm

Sounds like you need to delay the startup of mythbackend until the tuners are up.

For systemd you might want to look at https://www.mythtv.org/wiki/Systemd_myt ... nitialized

dualboot
Junior
Posts: 28
Joined: Mon Oct 26, 2015 8:53 am
Great Britain

Re: Mythbackend sees no tuners

Post by dualboot » Fri Aug 24, 2018 7:50 pm

Thankyou.

Thats fixed it.

I followed the second set of advice:

Code: Select all

"sudo systemctl edit mythtv-backend.service" and then add the following two lines:

[Service]
ExecStartPre=/bin/sleep 20

User avatar
ruthless
Newcomer
Posts: 7
Joined: Sat Jan 02, 2016 4:05 pm
Location: Norwich, UK
Great Britain

Re: Resolved: Mythbackend sees no tuners

Post by ruthless » Wed Dec 26, 2018 1:22 pm

Hi,

I just upgraded from Ubuntu 16.04 to 18.04 and am having the same issue, if I manually stop the backend and restart, it works fine. I've tried adding the code below but it doesn't work for me I still have same issue.

Code: Select all

"sudo systemctl edit mythtv-backend.service" and then add the following two lines:

[Service]
ExecStartPre=/bin/sleep 20
Also this command brings up a blank file, I had to find mine its was located in /etc/systemd/system/multi-user.target.wants

Code: Select all

"sudo systemctl edit mythtv-backend.service"
I even increased the time to see if it would resolve it but no joy :(

Below is fresh dump of the mythbackend.log

Code: Select all

Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: C thread_unknown mythcommandlineparser.cpp:2619 (ConfigureLogging) mythbackend version: fixes/29 [v29.1-13-g329c235] www.mythtv.org
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: C thread_unknown mythcommandlineparser.cpp:2621 (ConfigureLogging) Qt version: compile: 5.9.4, runtime: 5.9.5
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: N thread_unknown mythcommandlineparser.cpp:2623 (ConfigureLogging) Enabled verbose msgs:  general
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: N thread_unknown logging.cpp:927 (logStart) Setting Log Level to LOG_INFO
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I Logger logging.cpp:313 (run) Added logging to the console
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrupt handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Terminated handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Segmentation fault handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Aborted handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Bus error handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Floating point exception handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Illegal instruction handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Real-time signal 0 handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Hangup handler
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: N thread_unknown mythdirs.cpp:195 (InitializeMythDirs) Using runtime prefix = /usr
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: N thread_unknown mythdirs.cpp:197 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythcorecontext.cpp:271 (Init) Assumed character encoding: en_GB.UTF-8
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: N CoreContext mythcontext.cpp:599 (LoadDatabaseSettings) Empty LocalHostName.
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythcontext.cpp:607 (LoadDatabaseSettings) Using localhost value of Media-Center
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythcontext.cpp:852 (TestDBconnection) Start up testing connections. DB localhost, BE , attempt 0, status dbAwake
Dec 26 12:55:31 Media-Center mythbackend: mythbackend[1493]: I LogForward loggingserver.cpp:302 (SyslogLogger) Added syslogging
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: N CoreContext mythcorecontext.cpp:1768 (InitLocale) Setting QT default locale to en_GB
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythcorecontext.cpp:1801 (SaveLocaleDefaults) Current locale en_GB
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: N CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythtranslation.cpp:73 (load) Loading en_gb translation for module mythfrontend
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: I CoreContext schemawizard.cpp:120 (Compare) Current MythTV Schema Version (DBSchemaVer): 1348
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: I CoreContext mythtranslation.cpp:73 (load) Loading en_gb translation for module mythfrontend
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: N CoreContext main_helpers.cpp:597 (run_backend) MythBackend: Starting up as the master server.
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[7](/dev/dvb/adapter0/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[7](/dev/dvb/adapter0/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext recorders/channelbase.cpp:789 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter0/frontend0
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext main_helpers.cpp:202 (setupTVs) Problem with capture cards. Card 7 failed init
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: W CoreContext recorders/dvbchannel.cpp:245 (Open) DVBChan[9](/dev/dvb/adapter1/frontend0): Opening DVB frontend device failed.#012#011#011#011eno: No such file or directory (2)
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext recorders/dvbchannel.cpp:250 (Open) DVBChan[9](/dev/dvb/adapter1/frontend0): Failed to open DVB frontend device due to fatal error or too many attempts.
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext recorders/channelbase.cpp:789 (CreateChannel) ChannelBase: CreateChannel() Error: Failed to open device /dev/dvb/adapter1/frontend0
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: E CoreContext main_helpers.cpp:202 (setupTVs) Problem with capture cards. Card 9 failed init
Dec 26 12:55:32 Media-Center mythbackend: mythbackend[1493]: W CoreContext main_helpers.cpp:217 (setupTVs) MythBackend: No valid capture cards are defined in the database.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext programinfo.cpp:2382 (CheckProgramIDAuthorities) Found 47 distinct programid authorities
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I Scheduler mythdbcon.cpp:462 (getStaticCon) New static DB connectionSchedCon
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'LogClean'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'DBCleanup'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'ThemeUpdateNotifications'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'RecordedArtworkUpdate'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'MythFillDB'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'JobQueueRecover'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:633 (RegisterTask) Registering HouseKeeperTask 'HardwareProfiler'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:699 (Start) Queueing HouseKeeperTask 'HardwareProfiler'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:699 (Start) Queueing HouseKeeperTask 'ThemeUpdateNotifications'.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:706 (Start) Starting HouseKeeper.
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP 0.0.0.0:6544
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP [::]:6544
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP 0.0.0.0:6554
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP [::]:6554
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP 0.0.0.0:6549
Dec 26 12:55:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP [::]:6549
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I Scheduler scheduler.cpp:2356 (HandleReschedule) Reschedule requested for MATCH 0 0 0 - SchedulerInit
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I Scheduler scheduler.cpp:2469 (HandleReschedule) Scheduled 0 items in 0.0 = 0.01 match + 0.00 check + 0.01 place
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I Scheduler scheduler.cpp:2538 (HandleRunSchedulerStartup) Scheduler: Seem to be woken up by USER
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I CoreContext main_helpers.cpp:687 (run_backend) Main::Registering HttpStatus Extension
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP 0.0.0.0:6543
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: I CoreContext serverpool.cpp:422 (listen) Listening on TCP [::]:6543
Dec 26 12:55:36 Media-Center mythbackend: mythbackend[1493]: N CoreContext autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
Dec 26 12:55:37 Media-Center mythbackend: mythbackend[1493]: I CoreContext bonjourregister.cpp:118 (BonjourCallback) Bonjour: Service registration complete: name 'Mythbackend on Media-Center' type '_mythbackend._tcp.' domain: 'local.'
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:725 (Run) Queueing HouseKeeperTask 'DBCleanup'.
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:725 (Run) Queueing HouseKeeperTask 'JobQueueRecover'.
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I CoreContext housekeeper.cpp:725 (Run) Queueing HouseKeeperTask 'LogClean'.
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:135 (Run) Running HouseKeeperTask 'HardwareProfiler'.
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I SystemManager mythsystemunix.cpp:276 (run) Starting process manager
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I SystemSignalManager mythsystemunix.cpp:509 (run) Starting process signal handler
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I SystemIOHandlerR mythsystemunix.cpp:92 (run) Starting IO manager (read)
Dec 26 12:56:33 Media-Center mythbackend: mythbackend[1493]: I SystemIOHandlerW mythsystemunix.cpp:92 (run) Starting IO manager (write)
Dec 26 12:56:34 Media-Center mythbackend: mythbackend[1493]: I ProcessRequest mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Monitor
Dec 26 12:56:34 Media-Center mythbackend: mythbackend[1493]: I ProcessRequest mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: Media-Center(557ecbd40340) as a client (events: 0)
Dec 26 12:56:41 Media-Center mythbackend: mythbackend[1493]: I MythSocketThread(46) mainserver.cpp:7643 (connectionClosed) Monitor sock(557ecbd40340) 'Media-Center' disconnected
Dec 26 12:56:41 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:153 (Run) HouseKeeperTask 'HardwareProfiler' Finished Successfully.
Dec 26 12:56:41 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:135 (Run) Running HouseKeeperTask 'ThemeUpdateNotifications'.
Dec 26 12:56:41 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping backendhousekeeper.cpp:397 (DoRun) Loading themes for 29
Dec 26 12:56:42 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping backendhousekeeper.cpp:411 (DoRun) Loading themes for 29.1
Dec 26 12:56:42 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping backendhousekeeper.cpp:450 (LoadVersion) HouseKeeper: Failed to download http://themes.mythtv.org/themes/repository/29.1/themes.zip remote themes info package.
Dec 26 12:56:42 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:153 (Run) HouseKeeperTask 'ThemeUpdateNotifications' Finished Successfully.
Dec 26 12:56:42 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:135 (Run) Running HouseKeeperTask 'DBCleanup'.
Dec 26 12:56:44 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:153 (Run) HouseKeeperTask 'DBCleanup' Finished Successfully.
Dec 26 12:56:44 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:135 (Run) Running HouseKeeperTask 'JobQueueRecover'.
Dec 26 12:56:44 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:153 (Run) HouseKeeperTask 'JobQueueRecover' Finished Successfully.
Dec 26 12:56:44 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:135 (Run) Running HouseKeeperTask 'LogClean'.
Dec 26 12:56:44 Media-Center mythbackend: mythbackend[1493]: I HouseKeeping housekeeper.cpp:153 (Run) HouseKeeperTask 'LogClean' Finished Successfully.
Dec 26 12:56:52 Media-Center mythbackend: mythbackend[1493]: N Expire autoexpire.cpp:251 (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
Any suggestions?

User avatar
bill6502
Developer
Posts: 1221
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Resolved: Mythbackend sees no tuners

Post by bill6502 » Thu Dec 27, 2018 3:09 pm

1st, an easy ones, when using systemctl edit, a blank file is expected if it hasn't
been run before. That's because systemctl is creating a new override file.

/etc/systemd/system/multi-user.target.wants/ just has links to the real .service files
which are usually located in /lib/sysemd/system and should never be edited because
if the package manager updates it, your changes vanish. To look at any .service,
always use systemctl cat <someServiceNameHere>. That will tell you the real
location as well as any overrides.

To be clear, when you "manually stop the backend and restart", are you using
systemctl (as opposed to running the mythbackend directly from the command
line?)

There's a lot of info here: https://www.mythtv.org/wiki/Systemd_myt ... nitialized
with that specific section about making sure the tuners have initialized.

User avatar
ruthless
Newcomer
Posts: 7
Joined: Sat Jan 02, 2016 4:05 pm
Location: Norwich, UK
Great Britain

Re: Resolved: Mythbackend sees no tuners

Post by ruthless » Sat Dec 29, 2018 3:17 pm

Hi bill6502,

Thank you for responding and explaining about the blank file.

I was stop and restarting using.

Code: Select all

systemctl stop mythtv-backend
systemctl start mythtv-backend
I've now entered the delay code ExecStartPre=/bin/sleep 20 into the override.conf and my issue has now been resolves :D

Below is the output from systemctl cat mythtv-backend.service

Code: Select all

# /etc/systemd/system/mythtv-backend.service
[Unit]
Description=MythTV Backend
Documentation=https://www.mythtv.org/wiki/Mythbackend
After=mysqld.service network.target
 
[Service]
User=mythtv
EnvironmentFile=-/etc/mythtv/additional.args
ExecStartPre=/usr/bin/nm-online --quiet --timeout=5 
ExecStart=/usr/bin/mythbackend --quiet --syslog local7 $ADDITIONAL_ARGS
StartLimitBurst=10
StartLimitInterval=10m
Restart=on-failure
RestartSec=1
 
[Install]
WantedBy=multi-user.target

# /etc/systemd/system/mythtv-backend.service.d/override.conf

[Service]
ExecStartPre=/bin/sleep 20
A big THANK YOU!

Post Reply