[mythtv-users] mythtv-backend.service startup order
Monkey Pet
monkeypet at gmail.com
Sat Feb 15 08:28:45 UTC 2025
Anyone else having issues with the startup order on Ubuntu 24.04 LTS and
mythtv v34, mythtv-backend starts up, but the hdhomerun tuners can't be
found and some other weird errors in the log. However, doing a "systemctl
restart mythtv-backend.service" after the system fully boots up, things are
fine. After I made the mythtv-backend start up a bit later like after
apache2, it seems to work fine. I don't quite understand what are the
missing dependencies in the startup sequence.
Original After= lines...
# systemctl show mythtv-backend.service |grep ^After
After=sysinit.target system.slice mariadb.service basic.target
network.target systemd-journald.socket
I am making it depend on apache2 to make it startup later..
# systemctl edit mythtv-backend.service
Added:
[Unit]
After=apache2.service
Generated:
/etc/systemd/system/mythtv-backend.service.d/override.conf
[Unit]
After=apache2.service
Now
# systemctl show mythtv-backend.service |grep ^After
After=sysinit.target network.target mariadb.service basic.target
apache2.service systemd-journald.socket system.slice
Startup sequence is fine now.
Logs when it can't find the hdhomerun tuners...
2025-02-14T23:52:40.382901-08:00 mythtv2 mythbackend: mythbackend[2071]: C
thread_unknown mythcommandlineparser.cpp:2904 (ConfigureLogging)
mythbackend version: fixes/34 [v34.0+fixes.20240210.e3e165a1-0ubuntu6]
www.mythtv.org
2025-02-14T23:52:40.382995-08:00 mythtv2 mythbackend: mythbackend[2071]: C
thread_unknown mythcommandlineparser.cpp:2908 (ConfigureLogging) Qt
version: compile: 5.15.12, runtime: 5.15.13
2025-02-14T23:52:40.383033-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown mythcommandlineparser.cpp:2910 (ConfigureLogging) Ubuntu
24.04.2 LTS (x86_64)
2025-02-14T23:52:40.383070-08:00 mythtv2 mythbackend: mythbackend[2071]: N
thread_unknown mythcommandlineparser.cpp:2912 (ConfigureLogging) Enabled
verbose msgs: general
2025-02-14T23:52:40.383115-08:00 mythtv2 mythbackend: mythbackend[2071]: N
thread_unknown logging.cpp:644 (logStart) Setting Log Level to LOG_INFO
2025-02-14T23:52:40.383161-08:00 mythtv2 mythbackend: mythbackend[2071]: I
Logger logging.cpp:262 (run) Added logging to the console
2025-02-14T23:52:40.482974-08:00 mythtv2 mythbackend: mythbackend[2071]: I
LogForward loggingserver.cpp:217 (SyslogLogger) Added syslogging
2025-02-14T23:52:40.483021-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Interrupt
handler
2025-02-14T23:52:40.483051-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Terminated
handler
2025-02-14T23:52:40.483095-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup
Segmentation fault handler
2025-02-14T23:52:40.483124-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Aborted
handler
2025-02-14T23:52:40.483161-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Floating
point exception handler
2025-02-14T23:52:40.483203-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Illegal
instruction handler
2025-02-14T23:52:40.483240-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Bus error
handler
2025-02-14T23:52:40.483274-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Real-time
signal 0 handler
2025-02-14T23:52:40.483308-08:00 mythtv2 mythbackend: mythbackend[2071]: I
thread_unknown signalhandling.cpp:183 (SetHandlerPrivate) Setup Hangup
handler
2025-02-14T23:52:40.483341-08:00 mythtv2 mythbackend: mythbackend[2071]: N
thread_unknown mythdirs.cpp:234 (InitializeMythDirs) Using runtime prefix =
/usr
2025-02-14T23:52:40.483375-08:00 mythtv2 mythbackend: mythbackend[2071]: N
thread_unknown mythdirs.cpp:235 (InitializeMythDirs) Using configuration
directory = /home/mythtv/.mythtv
2025-02-14T23:52:40.483416-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythcorecontext.cpp:264 (Init) Assumed character encoding:
en_US.UTF-8
2025-02-14T23:52:40.483450-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythcontext.cpp:595 (LoadDatabaseSettings) Empty LocalHostName.
This is typical.
2025-02-14T23:52:40.483483-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythcontext.cpp:650 (LoadDatabaseSettings) Using a profile name
of: 'mythtv2' (Usually the same as this host's name.)
2025-02-14T23:52:40.483534-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythcontext.cpp:891 (TestDBconnection) Start up testing
connections. DB mythtv2, BE , attempt 0, status dbAwake, Delay: 2000
2025-02-14T23:52:41.483782-08:00 mythtv2 mythbackend: mythbackend[2071]: N
CoreContext mythcorecontext.cpp:1825 (InitLocale) Setting QT default locale
to en_US
2025-02-14T23:52:41.483856-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythcorecontext.cpp:1858 (SaveLocaleDefaults) Current locale
en_US
2025-02-14T23:52:41.483894-08:00 mythtv2 mythbackend: mythbackend[2071]: N
CoreContext mythlocale.cpp:120 (LoadDefaultsFromXML) Reading locale
defaults from /usr/share/mythtv//locales/en_us.xml
2025-02-14T23:52:41.583694-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythpowerdbus.cpp:544 (AcquireLock) PowerDBus: Failed to delay
sleep,shutdown: Permission denied
2025-02-14T23:52:41.583736-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythpower.cpp:354 (PowerLevelChanged) Power: On AC power
2025-02-14T23:52:41.583763-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythpower.cpp:136 (Init) Power: Supported actions: None
2025-02-14T23:52:41.583789-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythtranslation.cpp:62 (load) Loading en_us translation for
module mythfrontend
2025-02-14T23:52:41.583833-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext schemawizard.cpp:117 (Compare) Current MythTV Schema Version
(DBSchemaVer): 1379
2025-02-14T23:52:41.583866-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext mythtranslation.cpp:62 (load) Loading en_us translation for
module mythfrontend
2025-02-14T23:52:41.583892-08:00 mythtv2 mythbackend: mythbackend[2071]: N
CoreContext mythbackend_main_helpers.cpp:601 (run_backend) MythBackend:
Starting up as the master server.
2025-02-14T23:52:42.084061-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext hdhrstreamhandler.cpp:390 (Connect) HDHRSH[1](1039B0E9): Added
0 devices from 1039B0E9
2025-02-14T23:52:42.084110-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext hdhrstreamhandler.cpp:398 (Connect) HDHRSH[1](1039B0E9): Unable
to find a free device
2025-02-14T23:52:42.084147-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 1039B0E9
2025-02-14T23:52:42.084192-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext mythbackend_main_helpers.cpp:240 (setupTVs) Problem with
capture cards. Card 1 failed init
2025-02-14T23:52:42.484396-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext hdhrstreamhandler.cpp:390 (Connect) HDHRSH[3](1039B0E9): Added
0 devices from 1039B0E9
2025-02-14T23:52:42.484465-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext hdhrstreamhandler.cpp:398 (Connect) HDHRSH[3](1039B0E9): Unable
to find a free device
2025-02-14T23:52:42.484506-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 1039B0E9
2025-02-14T23:52:42.484540-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext mythbackend_main_helpers.cpp:240 (setupTVs) Problem with
capture cards. Card 3 failed init
2025-02-14T23:52:42.884538-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext hdhrstreamhandler.cpp:390 (Connect) HDHRSH[5](1039B0E9): Added
0 devices from 1039B0E9
2025-02-14T23:52:42.884601-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext hdhrstreamhandler.cpp:398 (Connect) HDHRSH[5](1039B0E9): Unable
to find a free device
2025-02-14T23:52:42.884635-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 1039B0E9
2025-02-14T23:52:42.884667-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext mythbackend_main_helpers.cpp:240 (setupTVs) Problem with
capture cards. Card 5 failed init
2025-02-14T23:52:43.284811-08:00 mythtv2 mythbackend: mythbackend[2071]: I
CoreContext hdhrstreamhandler.cpp:390 (Connect) HDHRSH[6](1039B0E9): Added
0 devices from 1039B0E9
2025-02-14T23:52:43.284853-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext hdhrstreamhandler.cpp:398 (Connect) HDHRSH[6](1039B0E9): Unable
to find a free device
2025-02-14T23:52:43.284895-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext channelbase.cpp:806 (CreateChannel) ChannelBase:
CreateChannel() Error: Failed to open device 1039B0E9
2025-02-14T23:52:43.284921-08:00 mythtv2 mythbackend: mythbackend[2071]: E
CoreContext mythbackend_main_helpers.cpp:240 (setupTVs) Problem with
capture cards. Card 6 failed init
2025-02-14T23:52:43.284946-08:00 mythtv2 mythbackend: mythbackend[2071]: W
CoreContext mythbackend_main_helpers.cpp:255 (setupTVs) MythBackend: No
valid capture cards are defined in the database.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250215/03225406/attachment.htm>
More information about the mythtv-users
mailing list