Adding a slave backend

For discussion of topics specific to MythTV on linux
Post Reply
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Adding a slave backend

Post by jameswilson1977 »

I have 4 dvbt2 usb tuners on my master but want to add a dvbs card. I have 2 but they are pci and for some reason when plugged in prevents the master from posting. So I have another spare i7 box with an intel desktop board so built it up.
I had another thread where this box wouldn't scan but that is now resolved.
The slave knows about the master and the master knows abouyt the slave. The channels scanned are showing in the guide, but with no epg data and status shows
Encoder 1 [ UNKNOWN ] is remote on myth-slave1 (currently not connected).
Encoder 2 [ DVB : /dev/dvb/adapter0/frontend0 ] is local on myth-master and is not recording.
Encoder 3 [ DVB : /dev/dvb/adapter1/frontend0 ] is local on myth-master and is not recording.
Encoder 4 [ DVB : /dev/dvb/adapter2/frontend0 ] is local on myth-master and is not recording.
Encoder 5 [ DVB : /dev/dvb/adapter3/frontend0 ] is local on myth-master and is not recording.
Encoder 6 [ DVB : /dev/dvb/adapter0/frontend0 ] is local on myth-master and is not recording.
Encoder 7 [ DVB : /dev/dvb/adapter0/frontend0 ] is local on myth-master and is not recording.
Encoder 8 [ DVB : /dev/dvb/adapter1/frontend0 ] is local on myth-master and is not recording.
Encoder 9 [ DVB : /dev/dvb/adapter1/frontend0 ] is local on myth-master and is not recording.
Encoder 10 [ DVB : /dev/dvb/adapter2/frontend0 ] is local on myth-master and is not recording.
Encoder 11 [ DVB : /dev/dvb/adapter2/frontend0 ] is local on myth-master and is not recording.
Encoder 12 [ DVB : /dev/dvb/adapter3/frontend0 ] is local on myth-master and is not recording.
Encoder 13 [ DVB : /dev/dvb/adapter3/frontend0 ] is local on myth-master and is not recording.
when I started the slave was on dhcp but is not on a static ip.
Not knowing what to do now to add this tuner so it works correctly via the master backend.
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Re: Adding a slave backend

Post by jameswilson1977 »

changed config.xml to use the myth master ip and it seems to work
But myth frontend is incredibly slow. Live tv no longer works either
But it is recording from the slave.
How do I trackdown why its so slow. Also checkeing the backend status takes an age?
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Re: Adding a slave backend

Post by jameswilson1977 »

found this?

Code: Select all

jameswilson@myth-master:~$ sudo systemctl status mythtv-backend.service
● mythtv-backend.service - MythTV Backend
   Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mythtv-backend.service.d
           └─override.conf
   Active: active (running) since Sun 2019-08-18 15:26:43 BST; 2h 29min ago
     Docs: https://www.mythtv.org/wiki/Mythbackend
 Main PID: 2132 (mythbackend)
    Tasks: 48 (limit: 4915)
   CGroup: /system.slice/mythtv-backend.service
           └─2132 /usr/bin/mythbackend --quiet --syslog local7

Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[5]: TuningFrequency
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: W TVRecEvent recorders/dvbsignalmonitor.cpp:92 (DVBSignalMonitor) DVBSigMon[5](/dev/dvb/adapter3/front
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: E TVRecEvent recorders/dvbchannel.cpp:1270 (GetSNR) DVBChan[5](/dev/dvb/adapter3/frontend0): Getting F
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: W TVRecEvent recorders/dvbsignalmonitor.cpp:94 (DVBSignalMonitor) DVBSigMon[5](/dev/dvb/adapter3/front
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: E TVRecEvent recorders/dvbchannel.cpp:1341 (GetBitErrorRate) DVBChan[5](/dev/dvb/adapter3/frontend0):
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: W TVRecEvent recorders/dvbsignalmonitor.cpp:96 (DVBSignalMonitor) DVBSigMon[5](/dev/dvb/adapter3/front
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: E TVRecEvent recorders/dvbchannel.cpp:1405 (GetUncorrectedBlockCount) DVBChan[5](/dev/dvb/adapter3/fro
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[5](/dev/dvb/adapter3/front
                                                                       eno: Unknown error 524 (524)
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[3]: TuningFrequency
Aug 18 17:56:11 myth-master mythbackend[2132]: mythbackend[2132]: I TVRecEvent recorders/dvbchannel.cpp:770 (Tune) DVBChan[3](/dev/dvb/adapter1/frontend0): Next tuning
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Adding a slave backend

Post by bill6502 »

Try this: journalctl --no-pager --boot --unit mythtv-backend.service

Without the --no-pager switch the lines are truncated to fit the number of columns
on the screen. Or, you may find logs in /var/log/mythtv/mythbackend.log (depends on
you logging is setup in the service.) systemctl cat mythtv-backend will answer that.

I'd look at the journal on the remote backend 1st with similar commands.
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Re: Adding a slave backend

Post by jameswilson1977 »

HI bill
I have run the command and it returns a lot. Ive copied the last few bits below

Code: Select all

Aug 19 19:16:16 myth-slave1 mythbackend[2523]: mythbackend[2523]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[17](/dev/dvb/adapter0/frontend0): Cannot count Uncorrected Blocks
                                                                       eno: Unknown error 524 (524)
Aug 19 19:20:01 myth-slave1 mythbackend[2523]: mythbackend[2523]: E MythSocketThread(-1) mythsocket.cpp:713 (WriteStringListReal) MythSocket(7f794c0178f0:48): WriteStringList: Error, invalid string list.
Aug 19 19:20:32 myth-slave1 mythbackend[2523]: mythbackend[2523]: N CoreContext mainserver.cpp:8277 (reconnectTimeout) MainServer: Connecting to master server: 192.168.0.3:6543
Aug 19 19:20:32 myth-slave1 mythbackend[2523]: mythbackend[2523]: N CoreContext mainserver.cpp:8288 (reconnectTimeout) MainServer: Connected successfully
Aug 19 19:21:20 myth-slave1 mythbackend[2523]: mythbackend[2523]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[17]: TuningFrequency
Aug 19 19:21:21 myth-slave1 mythbackend[2523]: mythbackend[2523]: E TVRecEvent recorders/dvbchannel.cpp:1405 (GetUncorrectedBlockCount) DVBChan[17](/dev/dvb/adapter0/frontend0): Getting Frontend uncorrected block count failed.
                                                                       eno: Unknown error 524 (524)
Aug 19 19:21:21 myth-slave1 mythbackend[2523]: mythbackend[2523]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[17](/dev/dvb/adapter0/frontend0): Cannot count Uncorrected Blocks
                                                                       eno: Unknown error 524 (524)
Aug 19 19:26:25 myth-slave1 mythbackend[2523]: mythbackend[2523]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[17]: TuningFrequency
Aug 19 19:26:27 myth-slave1 mythbackend[2523]: mythbackend[2523]: E TVRecEvent recorders/dvbchannel.cpp:1405 (GetUncorrectedBlockCount) DVBChan[17](/dev/dvb/adapter0/frontend0): Getting Frontend uncorrected block count failed.
                                                                       eno: Unknown error 524 (524)
Aug 19 19:26:27 myth-slave1 mythbackend[2523]: mythbackend[2523]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[17](/dev/dvb/adapter0/frontend0): Cannot count Uncorrected Blocks
                                                                       eno: Unknown error 524 (524)
Aug 19 19:29:32 myth-slave1 mythbackend[2523]: mythbackend[2523]: E MythSocketThread(-1) mythsocket.cpp:713 (WriteStringListReal) MythSocket(7f794c0178f0:48): WriteStringList: Error, invalid string list.
Aug 19 19:30:03 myth-slave1 mythbackend[2523]: mythbackend[2523]: N CoreContext mainserver.cpp:8277 (reconnectTimeout) MainServer: Connecting to master server: 192.168.0.3:6543
Aug 19 19:30:03 myth-slave1 mythbackend[2523]: mythbackend[2523]: N CoreContext mainserver.cpp:8288 (reconnectTimeout) MainServer: Connected successfully
Aug 19 19:31:31 myth-slave1 mythbackend[2523]: mythbackend[2523]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[17]: TuningFrequency
Aug 19 19:31:32 myth-slave1 mythbackend[2523]: mythbackend[2523]: E TVRecEvent recorders/dvbchannel.cpp:1405 (GetUncorrectedBlockCount) DVBChan[17](/dev/dvb/adapter0/frontend0): Getting Frontend uncorrected block count failed.
                                                                       eno: Unknown error 524 (524)
Aug 19 19:31:32 myth-slave1 mythbackend[2523]: mythbackend[2523]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[17](/dev/dvb/adapter0/frontend0): Cannot count Uncorrected Blocks
                                                                       eno: Unknown error 524 (524)
Aug 19 19:34:19 myth-slave1 systemd[1]: Stopping MythTV Backend...
Aug 19 19:34:20 myth-slave1 mythbackend[2523]: mythbackend[2523]: C CoreContext signalhandling.cpp:305 (handleSignal) Received Terminated: Code 0, PID 1, UID 0, Value 0x00000000
Aug 19 19:34:20 myth-slave1 mythbackend[2523]: mythbackend[2523]: I CoreContext mythdbcon.cpp:431 (PurgeIdleConnections) New DB connection, total: 9
Aug 19 19:34:20 myth-slave1 mythbackend[2523]: mythbackend[2523]: N CoreContext main_helpers.cpp:743 (run_backend) MythBackend exiting
Aug 19 19:34:20 myth-slave1 mythbackend[2523]: mythbackend[2523]: I CoreContext bonjourregister.cpp:28 (~BonjourRegister) Bonjour: De-registering service '_mythbackend._tcp.' on 'Mythbackend on myth-slave1'
Aug 19 19:34:24 myth-slave1 systemd[1]: Stopped MythTV Backend.
Aug 19 19:34:24 myth-slave1 systemd[1]: Started MythTV Backend.
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: C thread_unknown mythcommandlineparser.cpp:2607 (ConfigureLogging) mythbackend version:  [v30.0] www.mythtv.org
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: C thread_unknown mythcommandlineparser.cpp:2609 (ConfigureLogging) Qt version: compile: 5.9.5, runtime: 5.9.5
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: N thread_unknown mythcommandlineparser.cpp:2611 (ConfigureLogging) Enabled verbose msgs:  general
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: N thread_unknown logging.cpp:734 (logStart) Setting Log Level to LOG_INFO
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I Logger logging.cpp:296 (run) Added logging to the console
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrupt handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I LogForward loggingserver.cpp:246 (SyslogLogger) Added syslogging
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Terminated handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Segmentation fault handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Aborted handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Bus error handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Floating point exception handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Illegal instruction handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Real-time signal 0 handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Hangup handler
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: N thread_unknown mythdirs.cpp:203 (InitializeMythDirs) Using runtime prefix = /usr
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: N thread_unknown mythdirs.cpp:205 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcorecontext.cpp:272 (Init) Assumed character encoding: en_GB.UTF-8
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcontext.cpp:641 (LoadDatabaseSettings) Empty LocalHostName. This is typical.
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcontext.cpp:650 (LoadDatabaseSettings) Using a profile name of: 'myth-slave1' (Usually the same as this host's name.)
Aug 19 19:34:24 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcontext.cpp:900 (TestDBconnection) Start up testing connections. DB 192.168.0.3, BE , attempt 0, status dbAwake, Delay: 2000
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mythcorecontext.cpp:1780 (InitLocale) Setting QT default locale to en_GB
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcorecontext.cpp:1813 (SaveLocaleDefaults) Current locale en_GB
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythtranslation.cpp:64 (load) Loading en_gb translation for module mythfrontend
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext schemawizard.cpp:120 (Compare) Current MythTV Schema Version (DBSchemaVer): 1350
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythtranslation.cpp:64 (load) Loading en_gb translation for module mythfrontend
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext mythcorecontext.cpp:1677 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Aug 19 19:34:26 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext main_helpers.cpp:609 (run_backend) MythBackend: Running as a slave backend.
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext housekeeper.cpp:649 (RegisterTask) Registering HouseKeeperTask 'JobQueueRecover'.
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext housekeeper.cpp:649 (RegisterTask) Registering HouseKeeperTask 'HardwareProfiler'.
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext housekeeper.cpp:722 (Start) Starting HouseKeeper.
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6544
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6544
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6554
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6554
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6549
Aug 19 19:34:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6549
Aug 19 19:34:33 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext main_helpers.cpp:698 (run_backend) Main::Registering HttpStatus Extension
Aug 19 19:34:33 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6543
Aug 19 19:34:33 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6543
Aug 19 19:34:34 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext bonjourregister.cpp:117 (BonjourCallback) Bonjour: Service registration complete: name 'Mythbackend on myth-slave1' type '_mythbackend._tcp.' domain: 'local.'
Aug 19 19:34:34 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8277 (reconnectTimeout) MainServer: Connecting to master server: 192.168.0.3:6543
Aug 19 19:34:34 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8288 (reconnectTimeout) MainServer: Connected successfully
Aug 19 19:34:35 myth-slave1 mythbackend[23650]: mythbackend[23650]: E MythSocketThread(-1) mythsocket.cpp:713 (WriteStringListReal) MythSocket(5556dbfd1f20:43): WriteStringList: Error, invalid string list.
Aug 19 19:35:06 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8277 (reconnectTimeout) MainServer: Connecting to master server: 192.168.0.3:6543
Aug 19 19:35:06 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8288 (reconnectTimeout) MainServer: Connected successfully
Aug 19 19:35:08 myth-slave1 mythbackend[23650]: mythbackend[23650]: E MythSocketThread(-1) mythsocket.cpp:713 (WriteStringListReal) MythSocket(7fb340003600:42): WriteStringList: Error, invalid string list.
Aug 19 19:35:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I CoreContext housekeeper.cpp:740 (Run) Queueing HouseKeeperTask 'JobQueueRecover'.
Aug 19 19:35:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I HouseKeeping housekeeper.cpp:142 (Run) Running HouseKeeperTask 'JobQueueRecover'.
Aug 19 19:35:30 myth-slave1 mythbackend[23650]: mythbackend[23650]: I HouseKeeping housekeeper.cpp:160 (Run) HouseKeeperTask 'JobQueueRecover' Finished Successfully.
Aug 19 19:35:38 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8277 (reconnectTimeout) MainServer: Connecting to master server: 192.168.0.3:6543
Aug 19 19:35:38 myth-slave1 mythbackend[23650]: mythbackend[23650]: N CoreContext mainserver.cpp:8288 (reconnectTimeout) MainServer: Connected successfully
Aug 19 19:36:21 myth-slave1 mythbackend[23650]: mythbackend[23650]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[17]: TuningFrequency
Aug 19 19:36:22 myth-slave1 mythbackend[23650]: mythbackend[23650]: E TVRecEvent recorders/dvbchannel.cpp:1405 (GetUncorrectedBlockCount) DVBChan[17](/dev/dvb/adapter0/frontend0): Getting Frontend uncorrected block count failed.
                                                                        eno: Unknown error 524 (524)
Aug 19 19:36:22 myth-slave1 mythbackend[23650]: mythbackend[23650]: W TVRecEvent recorders/dvbsignalmonitor.cpp:98 (DVBSignalMonitor) DVBSigMon[17](/dev/dvb/adapter0/frontend0): Cannot count Uncorrected Blocks

would appear the issue is with the slave backen
The fact its timing out, it not sleeping is on the same switch as the master?

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

Re: Adding a slave backend

Post by bill6502 »

Hi,

Not sure about the question above. I can tell you that I've had a slave backend running two
"switches away" from the master backend.
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Re: Adding a slave backend

Post by jameswilson1977 »

Sorry
I was meaning it looks like the timeout is what's causing the issue. How do I fix that?

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

Re: Adding a slave backend

Post by bill6502 »

Unfortunately, there are about 90 calls to the WriteStringList method. That error
fires when the list is empty.

On the remote backend:

If you do the sytemctl cat above and you see EnvironmentFile=-/etc/mythtv/additional.args,
add to or create that file with: ADDITIONAL_ARGS="--loglevel debug" and restart the
slave backend. See if that log has more clues.

Also, is the remote backend wired or WiFi?
jameswilson1977
Junior
Posts: 35
Joined: Fri Jan 06, 2017 12:22 am
Great Britain

Re: Adding a slave backend

Post by jameswilson1977 »

The remote be is wired
I will do the command and report back
halucigenia
Senior
Posts: 122
Joined: Tue Nov 11, 2014 11:03 am
Great Britain

Re: Adding a slave backend

Post by halucigenia »

Did you get anywhere with this jameswilson1977?

I think that I am having similar issues - when the slave backend mythtv-backend service is running I notice that in MythWeb it takes a long time to refresh the Backend Status screen. When I stop the slave mythtv-backend service the Backend Status screen refreshes immediately.

From the master backend logs I can see that the slave backend intermittently disconnects.

Code: Select all

Nov 23 08:31:39 kb01 mythbackend: mythbackend[31736]: I ProcessRequest mainserver.cpp:1852 (HandleAnnounce) MainServer: adding: myth01 as a slave backend server
Nov 23 08:31:39 kb01 mythbackend: mythbackend[31736]: I Scheduler scheduler.cpp:2355 (HandleReschedule) Reschedule requested for PLACE SlaveConnected
Nov 23 08:31:39 kb01 mythbackend: mythbackend[31736]: I Scheduler scheduler.cpp:2472 (HandleReschedule) Scheduled 727 items in 0.3 = 0.00 match + 0.00 check + 0.29 place
Nov 23 08:31:46 kb01 mythbackend: mythbackend[31736]: E MythSocketThread(129) mythsocket.cpp:825 (ReadStringListReal) MythSocket(5652c6a660d0:129): ReadStringList: Error, timed out after 7000 ms.
Nov 23 08:31:46 kb01 mythbackend: mythbackend[31736]: E MythSocketThread(129) mainserver.cpp:7856 (connectionClosed) MainServer: Slave backend: myth01 no longer connected
Nov 23 08:31:46 kb01 mythbackend: mythbackend[31736]: I MythSocketThread(129) mainserver.cpp:7925 (connectionClosed) Monitor sock(5652c6a660d0) 'myth01' disconnected
Nov 23 08:31:46 kb01 mythbackend: mythbackend[31736]: I Scheduler scheduler.cpp:2355 (HandleReschedule) Reschedule requested for PLACE SlaveDisconnected
This slave backend is also my main frontend so I have ended up just stopping the slave mythtv-backend service when I use this device as the frontend.
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: Adding a slave backend

Post by blm-ubunet »

Does it work better if you start the remote backend from terminal & without using "--syslog local7" & not using systemd service file?

My experience with MythTv BE-FE using network interface for remote FE/BE & systemd is that:-
- need to compile MythTV with systemd support
- can NOT use "--syslog local7"

If you use the old init cmd line in systemd service file & use remote FE/BE then the MBE server interface slows/stalls/consumes memory/crashes.. the MBE continues to record but server interfaces are dead.

The MythTV wiki systemd service file example did not work for me.

# /etc/systemd/system/mythbackend.service.d/environment.conf
[Service]
# Command line arguments to be passed by systemd to mythbackend on startup.
# This variable must be defined or the service will not start.
#Environment="MYTHBACKEND_ARGS=--logpath=/var/log/mythtv --verbose=none"
Environment="MYTHBACKEND_ARGS=--systemd-journal --quiet"

# Environment variables for the mythbackend program itself
Environment=MYTHCONFDIR=/home/mythtv/.mythtv

YMMV
Post Reply