[Solved] DB Access, Frontend Connections [WAS: I spoke too soon]

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

Moderator: Forum Moderators

Post Reply
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

[Solved] DB Access, Frontend Connections [WAS: I spoke too soon]

Post by pinnerite »

Having successfully restored fully MythTV, I went on to restore a backup.

Having done so I checked all my settings to the back and frontends and went to check the logs.
The only logs there date from 13 January 2022.

I was able to play a recording.
Switching to live TV at first appeared not to be working.
It is but comes up incredibly slowly.

Before it did, one attempt ended with "Error opening switch programme biuffer"
Those since first show a label such "Input 1" followed by a long delay before it comes up
Neither of my tuners are labelled like that.

I cannot set anything to record.

I generated a frontend log by starting it from a terminal: /usr/bin/mythfrontend > myth-response.txt
but could not do the same with the backend.

This is the front end log sequesterd as above :

Code: Select all

"Display: Requesting EGL for 'Mesa Project, 1.5'"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2022-01-22 15:20:30.069705 I  Setup Interrupt handler
2022-01-22 15:20:30.069731 I  Setup Terminated handler
2022-01-22 15:20:30.069738 I  Setup Segmentation fault handler
2022-01-22 15:20:30.069747 I  Setup Aborted handler
2022-01-22 15:20:30.069753 I  Setup Bus error handler
2022-01-22 15:20:30.069762 I  Setup Floating point exception handler
2022-01-22 15:20:30.069771 I  Setup Illegal instruction handler
2022-01-22 15:20:30.069782 I  Setup Real-time signal 0 handler
2022-01-22 15:20:30.069789 I  Setup User defined signal 1 handler
2022-01-22 15:20:30.069795 I  Setup User defined signal 2 handler
2022-01-22 15:20:30.069801 I  Setup Hangup handler
2022-01-22 15:20:30.069914 C  mythfrontend version: fixes/31 [v31.0-v31.0] www.mythtv.org
2022-01-22 15:20:30.069923 C  Qt version: compile: 5.12.5, runtime: 5.12.8
2022-01-22 15:20:30.069947 I  Linux Mint 20.3 (x86_64)
2022-01-22 15:20:30.069954 N  Enabled verbose msgs:  general
2022-01-22 15:20:30.069967 N  Setting Log Level to LOG_INFO
2022-01-22 15:20:30.080295 I  Added logging to the console
2022-01-22 15:20:30.080306 N  Using runtime prefix = /usr
2022-01-22 15:20:30.080334 N  Using configuration directory = /root/.mythtv
2022-01-22 15:20:30.080373 I  Assumed character encoding: en_GB.UTF-8
2022-01-22 15:20:30.080845 I  Loading en_gb translation for module mythfrontend
2022-01-22 15:20:30.080887 I  Added syslogging
2022-01-22 15:20:30.081075 I  Empty LocalHostName. This is typical.
2022-01-22 15:20:30.081082 I  Using a profile name of: 'albury.asandco' (Usually the same as this host's name.)
2022-01-22 15:20:30.081167 I  Start up testing connections. DB 192.168.1.4, BE , attempt 0, status start, Delay: 2000
2022-01-22 15:20:31.616021 N  Setting QT default locale to en_GB
2022-01-22 15:20:31.616050 I  Current locale en_GB
2022-01-22 15:20:31.616154 N  Reading locale defaults from /usr/share/mythtv//locales/en_gb.xml
2022-01-22 15:20:31.642535 I  Display: Found screen 'VGA-0'
2022-01-22 15:20:31.642581 I  Display: Using screen 'VGA-0' (Make: Rogen Tech Distribution Inc Model: B 101740)
2022-01-22 15:20:31.642627 I  Display: Geometry: 1280x1024+1280+0 Size(Qt): 376mmx301mm
2022-01-22 15:20:31.642699 I  Display: Total virtual geometry: 2560x1024+0+0
2022-01-22 15:20:31.645165 N  Display: Desktop video mode: 1280x1024 60.020Hz
2022-01-22 15:20:31.645176 N  Display: Display has custom colourspace
2022-01-22 15:20:31.673340 I  Starting process manager
2022-01-22 15:20:31.673797 I  Starting IO manager (read)
2022-01-22 15:20:31.673830 I  Starting IO manager (write)
2022-01-22 15:20:31.676282 I  Starting process signal handler
2022-01-22 15:20:31.727940 I  ScreenSaverX11Private: DPMS is disabled.
2022-01-22 15:20:31.892688 I  PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/mouse_hidpp_battery_0'
2022-01-22 15:20:31.893087 I  Power: On AC power
2022-01-22 15:20:31.901983 I  Power: Supported actions: Suspend,Hibernate,Restart,Shutdown,HybridSleep
2022-01-22 15:20:31.911742 E  Failed listening on TCP 0.0.0.0:6547 - Error 8: The bound address is already in use
2022-01-22 15:20:31.911760 E  MediaRenderer: HttpServer Create Error
2022-01-22 15:20:31.923668 I  Loading en_gb translation for module mythfrontend
2022-01-22 15:20:31.929882 E  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2022-01-22 15:20:31.929957 I  No joystick configuration found, not enabling joystick control
2022-01-22 15:20:31.929969 I  UDPListener: Enabling
2022-01-22 15:20:31.931083 E  Failed binding to UDP 0.0.0.0:6948 - Error 8: The bound address is already in use
2022-01-22 15:20:31.933943 E  Failed binding to UDP [::]:6948 - Error 8: The bound address is already in use
2022-01-22 15:20:31.993536 I  Display: Have main widget
2022-01-22 15:20:31.995637 I  UI Screen Resolution: 1280 x 1024
2022-01-22 15:20:32.050706 I  Display: Have main window
2022-01-22 15:20:32.051944 I  Display: Found screen 'VGA-0'
2022-01-22 15:20:32.066797 I  OpenGL: OpenGL vendor        : X.Org
2022-01-22 15:20:32.066803 I  OpenGL: OpenGL renderer      : AMD RV710 (DRM 2.50.0 / 5.4.0-96-generic, LLVM 12.0.0)
2022-01-22 15:20:32.066806 I  OpenGL: OpenGL version       : 3.0 Mesa 21.0.3
2022-01-22 15:20:32.066809 I  OpenGL: Qt platform          : xcb
2022-01-22 15:20:32.066856 I  OpenGL: EGL display          : Yes
2022-01-22 15:20:32.066859 I  OpenGL: EGL images           : Yes
2022-01-22 15:20:32.066861 I  OpenGL: Qt OpenGL format     : OpenGL 3.0
2022-01-22 15:20:32.066864 I  OpenGL: Qt OpenGL surface    : RGBA: 8880 Depth: 0 Stencil: 0
2022-01-22 15:20:32.066867 I  OpenGL: Max texture size     : 8192
2022-01-22 15:20:32.066869 I  OpenGL: Max texture units    : 48
2022-01-22 15:20:32.066872 I  OpenGL: Shaders              : Yes
2022-01-22 15:20:32.066875 I  OpenGL: NPOT textures        : Yes
2022-01-22 15:20:32.066877 I  OpenGL: Multitexturing       : Yes
2022-01-22 15:20:32.066880 I  OpenGL: Rectangular textures : Yes
2022-01-22 15:20:32.066882 I  OpenGL: Buffer mapping       : Yes
2022-01-22 15:20:32.066885 I  OpenGL: Framebuffer objects  : Yes
2022-01-22 15:20:32.066887 I  OpenGL: 16bit framebuffers   : Yes
2022-01-22 15:20:32.066890 I  OpenGL: Unpack Subimage      : Yes
2022-01-22 15:20:32.066892 I  OpenGL: GL_RED/GL_R8         : Yes
2022-01-22 15:20:32.073363 I  OpenGL: Initialised MythRenderOpenGL
2022-01-22 15:20:32.073369 I  OpenGL: Using full range output
2022-01-22 15:20:32.075332 I  MythUIHelper: Pruning cache directory: /root/.mythtv/cache/remotecache
2022-01-22 15:20:32.075397 I  MythUIHelper: Kept 0 files, deleted 0 files, stat error on 0 files
2022-01-22 15:20:32.075405 I  MythUIHelper: Pruning cache directory: /root/.mythtv/cache/thumbnails
2022-01-22 15:20:32.075592 I  MythUIHelper: Kept 24 files, deleted 0 files, stat error on 0 files
2022-01-22 15:20:32.403180 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.4:6543 (try 1 of 1)
[b]Cannot load libcuda.so.1[/b]
2022-01-22 15:20:32.620948 E  CECAdapter: Failed to find any CEC devices.
2022-01-22 15:20:32.621142 I  CECAdapter: Closing down CEC.
2022-01-22 15:20:32.621905 E  RAOP Device: Aborting startup - no key found.
2022-01-22 15:20:32.622437 I  AirPlay: Created airplay objects.
2022-01-22 15:20:32.622796 E  Failed listening on TCP 0.0.0.0:5100 - Error 8: The bound address is already in use
2022-01-22 15:20:32.622850 I  Listening on TCP 0.0.0.0:5101
2022-01-22 15:20:32.622897 I  Listening on TCP [::]:5101
2022-01-22 15:20:32.628482 I  Current MythTV Schema Version (DBSchemaVer): 1361
2022-01-22 15:20:32.641842 I  VDPAUHelp: Supported/available VDPAU decoders:
2022-01-22 15:20:32.651479 I  VDPAUHelp: MPEG2 Simple (Max size: 2048x1152)
2022-01-22 15:20:32.651491 I  VDPAUHelp: MPEG2 Main (Max size: 2048x1152)
2022-01-22 15:20:32.651498 I  VDPAUHelp: VC1 Simple (Max size: 2048x1152)
2022-01-22 15:20:32.651505 I  VDPAUHelp: VC1 Main (Max size: 2048x1152)
2022-01-22 15:20:32.651511 I  VDPAUHelp: VC1 Advanced (Max size: 2048x1152)
2022-01-22 15:20:32.651519 I  VDPAUHelp: H264 Baseline (Max size: 2048x1152)
2022-01-22 15:20:32.651525 I  VDPAUHelp: H264 Main (Max size: 2048x1152)
2022-01-22 15:20:32.651531 I  VDPAUHelp: H264 High (Max size: 2048x1152)
2022-01-22 15:20:32.651537 I  VDPAUHelp: H264 Constrained (Max size: 2048x1152)
2022-01-22 15:20:32.662240 I  VAAPIDec: Supported/available VAAPI decoders:
2022-01-22 15:20:32.665279 I  VAAPIDec: EGL DMABUF available for best VAAPI performance
2022-01-22 15:20:32.665294 I  VAAPIDec: MPEG2 Simple (Max size: 2048x1152)
2022-01-22 15:20:32.665299 I  VAAPIDec: MPEG2 Main (Max size: 2048x1152)
2022-01-22 15:20:32.665303 I  VAAPIDec: VC1 Simple (Max size: 2048x1152)
2022-01-22 15:20:32.665307 I  VAAPIDec: VC1 Main (Max size: 2048x1152)
2022-01-22 15:20:32.665311 I  VAAPIDec: VC1 Advanced (Max size: 2048x1152)
2022-01-22 15:20:32.665316 I  VAAPIDec: H264 Constrained (Max size: 2048x1152)
2022-01-22 15:20:32.665320 I  VAAPIDec: H264 Main (Max size: 2048x1152)
2022-01-22 15:20:32.665323 I  VAAPIDec: H264 High (Max size: 2048x1152)
2022-01-22 15:20:32.666460 I  NVDEC: No NVDEC decoders found
2022-01-22 15:20:32.737398 I  V4L2_M2M: No V4L2 decoders found
2022-01-22 15:20:33.202604 N  Registering Internal as a media playback plugin.
2022-01-22 15:20:33.205246 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2022-01-22 15:20:33.206921 W  MMUnix:UDisks2 service found. Media Monitor does not support this yet!
2022-01-22 15:20:33.210027 W  No plugins directory /usr/lib/mythtv/plugins
2022-01-22 15:20:33.335042 N  Found mainmenu.xml for theme 'MythCenter'
2022-01-22 15:20:33.399729 I  Bonjour: Service registration complete: name 'MythTV1 on albury.asandco' type '_airplay._tcp.' domain: 'local.'
2022-01-22 15:20:39.421429 E  MythSocket(7f5a04020890:43): ReadStringList: Error, timed out after 7000 ms.
2022-01-22 15:20:39.421647 C  Protocol version check failure.
			[b]The response to MYTH_PROTO_VERSION was empty.
			This happens when the backend is too busy to respond,
			or has deadlocked due to bugs or hardware failure.[/b]
2022-01-22 15:20:39.436553 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.4:6543 (try 1 of 1)
2022-01-22 15:20:46.453947 E  MythSocket(7f5a08005dc0:61): ReadStringList: Error, timed out after 7000 ms.
2022-01-22 15:20:46.454153 C  Protocol version check failure.
			[b]The response to MYTH_PROTO_VERSION was empty.
			This happens when the backend is too busy to respond,
			or has deadlocked due to bugs or hardware failure.[/b]
2022-01-22 15:20:46.454589 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.4:6543 (try 1 of 1)
2022-01-22 15:20:49.460699 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2022-01-22 15:20:49.480800 C  MythCoreContext::GenMythURL(): (192.168.1.4/remotethemes/themes.zip): Given IP address instead of hostname (ID). This is invalid.
2022-01-22 15:20:49.482387 I  Checking for theme updates every hour
2022-01-22 15:20:49.482562 I  Registering HouseKeeperTask 'HardwareProfiler'.
2022-01-22 15:20:49.484633 I  Queueing HouseKeeperTask 'HardwareProfiler'.
2022-01-22 15:20:49.484640 I  Starting HouseKeeper.
2022-01-22 15:20:49.580163 I  Bonjour: Service registration complete: name 'Mythfrontend on albury.asandco' type '_mythfrontend._tcp.' domain: 'local.'
2022-01-22 15:21:03.933836 C  MythCoreContext::GenMythURL(): (192.168.1.4/remotethemes/31/MythCenter): Given IP address instead of hostname (ID). This is invalid.
2022-01-22 15:21:09.041508 E  MythSocket(7f5a04024970:68): ReadStringList: Error, timed out after 5000 ms.
2022-01-22 15:21:09.041695 C  Protocol version check failure.
			The response to MYTH_PROTO_VERSION was empty.
			This happens when the backend is too busy to respond,
			or has deadlocked due to bugs or hardware failure.
2022-01-22 15:21:09.041726 E  RemoteFile::openSocket(control socket): Failed validation to server 192.168.1.4:6543
2022-01-22 15:21:09.045529 E  ThemeInfo: Unable to parse themeinfo.xml for myth://Temp@192.168.1.4/remotethemes/31/MythCenter
2022-01-22 15:21:09.045552 E  ThemeInfo: The theme (myth://Temp@192.168.1.4/remotethemes/31/MythCenter) is missing a themeinfo.xml file.
2022-01-22 15:21:49.945347 I  Running HouseKeeperTask 'HardwareProfiler'.
2022-01-22 15:21:49.948771 I  HouseKeeperTask 'HardwareProfiler' Failed.
2022-01-22 15:48:28.816901 I  MythUIHelper: Pruning cache directory: /root/.mythtv/cache/remotecache
2022-01-22 15:48:28.817059 I  MythUIHelper: Kept 0 files, deleted 0 files, stat error on 0 files
2022-01-22 15:48:28.817084 I  MythUIHelper: Pruning cache directory: /root/.mythtv/cache/thumbnails
2022-01-22 15:48:28.817613 I  MythUIHelper: Kept 24 files, deleted 0 files, stat error on 0 files
2022-01-22 15:48:28.820063 I  Bonjour: De-registering service '_mythfrontend._tcp.' on 'Mythfrontend on albury.asandco'
2022-01-22 15:48:28.835039 W  MythPainter: 58 images not yet de-allocated.
2022-01-22 15:48:28.835117 I  Clearing OpenGL painter cache.
2022-01-22 15:48:28.835520 I  OpenGL: MythRenderOpenGL closing
2022-01-22 15:48:28.841393 I  Display: Deleting
2022-01-22 15:48:28.844932 I  RAOP Device: Cleaning up.
2022-01-22 15:48:28.844974 I  AirPlay: Cleaning up.
2022-01-22 15:48:28.845257 I  Bonjour: De-registering service '_airplay._tcp.' on 'MythTV1 on albury.asandco'
2022-01-22 15:48:28.845544 I  PowerDBus: Closing interfaces
2022-01-22 15:48:28.846008 I  Waiting for threads to exit.
2022-01-22 15:48:29.487033 I  Exiting
2022-01-22 15:48:29.487797 I  Removing syslogging 
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: I spoke too soon

Post by bill6502 »

Whenever you see "... Error 8: The bound address is already in use" in a log, it means that there's
already an instance of the program running. Another mythfrontend in this case.

To get the best logs, use: mythfrontend --logpath /tmp

The file in /tmp will be obvious and have a date stamp in the name.
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

Re: I spoke too soon

Post by pinnerite »

I can watch live TV but not record.
Attempts to press [R] are ignored.
These are the lines in the frontend log from th time I hit the key to when I closed down.

Code: Select all

on albury.asandco' type '_mythfrontend._tcp.' domain: 'local.'
2022-01-23 20:25:09.468704 E [23880/23880] CoreContext mythdb.cpp:181 (DBError) - DB Error (UPDATE/INSERT record):
Query was:
INSERT INTO record SET type = ?, search = ?, recpriority = ?, prefinput = ?, startoffset = ?, endoffset = ?, dupmethod = ?, dupin = ?, filter = ?, inactive = ?, profile = ?, recgroup = ?, recgroupid = ?, storagegroup = ?, playgroup = ?, autoexpire = ?, maxepisodes = ?, maxnewest = ?, autocommflag = ?, autotranscode = ?, transcoder = ?, autouserjob1 = ?, autouserjob2 = ?, autouserjob3 = ?, autouserjob4 = ?, autometadata = ?, parentid = ?, title = ?, subtitle = ?, season = ?, episode = ?, description = ?, category = ?, starttime = ?, startdate = ?, endtime = ?, enddate = ?, seriesid = ?, programid = ?, inetref = ?, chanid = ?, station = ?, findday = ?, findtime = ?, findid = ?, next_record = ?, last_record = ?, last_delete = ?, avg_delay = ? ;
Bindings were:
:AUTOCOMMFLAG=true, :AUTOEXPIRE=false, :AUTOMETADATA=true, :AUTOTRANSCODE=false,
:AUTOUSERJOB1=false, :AUTOUSERJOB2=false, :AUTOUSERJOB3=false,
:AUTOUSERJOB4=false, :AVGDELAY=100, :CATEGORY="Film", :CHANID=10001,
:DESCRIPTION="After a nuclear war, a young woman believes she's the only survivor on Earth, but then gets a surprise visitor stumbling into her secluded valley. Contains some strong language.",
:DUPIN=15, :DUPMETHOD=6, :ENDDATE=2022-01-24, :ENDOFFSET=0,
:ENDTIME=01:45:00.000, :EPISODE=0, :FILTER=0, :FINDDAY=2, :FINDID=738544,
:FINDTIME=00:15:00.000, :INACTIVE=false, :INETREF="", :INPUT=0, :LASTDELETE=NULL,
:LASTREC=NULL, :MAXEPISODES=0, :MAXNEWEST=false, :NEXTREC=NULL, :PARENTID=0,
:PLAYGROUP="Default", :PROGRAMID="fp.bbc.co.uk/b/3kbb6z", :RECGROUP="Default",
:RECGROUPID=1, :RECPRIORITY=0, :RECPROFILE="Default", :SEARCHTYPE=0, :SEASON=0,
:SERIESID="", :STARTDATE=2022-01-24, :STARTOFFSET=0, :STARTTIME=00:15:00.000,
:STATION="BBC ONE Lon", :STORAGEGROUP="Default", :SUBTITLE="",
:TITLE="Z for Zachariah", :TRANSCODER=0, :TYPE=1
Driver error was [2/1062]:
QMYSQL3: Unable to execute statement
Dat
2022-01-23 20:25:41.931837 I [23880/23998] HouseKeeping housekeeper.cpp:144 (Run) - Running HouseKeeperTask 'HardwareProfiler'.
2022-01-23 20:25:41.936623 I [23880/23998] HouseKeeping housekeeper.cpp:159 (Run) - HouseKeeperTask 'HardwareProfiler' Failed.
2022-01-23 20:27:28.405760 I [23880/23880] CoreContext mythuihelper.cpp:762 (PruneCacheDir) - MythUIHelper: Pruning cache directory: /home/alan/.mythtv/cache/remotecache
2022-01-23 20:27:28.406104 I [23880/23880] CoreContext mythuihelper.cpp:819 (PruneCacheDir) - MythUIHelper: Kept 12 files, deleted 0 files, stat error on 0 files
2022-01-23 20:27:28.406147 I [23880/23880] CoreContext mythuihelper.cpp:762 (PruneCacheDir) - MythUIHelper: Pruning cache directory: /home/alan/.mythtv/cache/thumbnails
2022-01-23 20:27:28.407081 I [23880/23880] CoreContext mythuihelper.cpp:819 (PruneCacheDir) - MythUIHelper: Kept 48 files, deleted 0 files, stat error on 0 files
2022-01-23 20:27:28.409760 I [23880/23880] CoreContext bonjourregister.cpp:29 (~BonjourRegister) - Bonjour: De-registering service '_mythfrontend._tcp.' on 'Mythfrontend on albury.asandco'
2022-01-23 20:27:28.431464 W [23880/23880] CoreContext mythpainter.cpp:35 (Teardown) - MythPainter: 60 images not yet de-allocated.
2022-01-23 20:27:28.431613 I [23880/23880] CoreContext opengl/mythpainteropengl.cpp:74 (ClearCache) - Clearing OpenGL painter cache.
2022-01-23 20:27:28.432543 I [23880/23880] CoreContext opengl/mythrenderopengl.cpp:147 (~MythRenderOpenGL) - OpenGL: MythRenderOpenGL closing
2022-01-23 20:27:28.438296 I [23880/23880] CoreContext mythdisplay.cpp:197 (~MythDisplay) - Display: Deleting
2022-01-23 20:27:28.440455 I [23880/23880] CoreContext AirPlay/mythraopdevice.cpp:71 (Cleanup) - RAOP Device: Cleaning up.
2022-01-23 20:27:28.440512 I [23880/23880] CoreContext AirPlay/mythairplayserver.cpp:393 (Cleanup) - AirPlay: Cleaning up.
2022-01-23 20:27:28.440741 I [23880/23934] thread_unknown bonjourregister.cpp:29 (~BonjourRegister) - Bonjour: De-registering service '_airplay._tcp.' on 'MythTV on albury.asandco'
2022-01-23 20:27:28.442017 I [23880/23880] CoreContext main.cpp:293 (cleanup) - Shutting down UPnP client...
2022-01-23 20:27:31.692013 I [23880/23880] CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) - PowerDBus: Closing interfaces
2022-01-23 20:27:31.692718 I [23880/23880] CoreContext mythcontext.cpp:1659 (~MythContext) - Waiting for threads to exit.
2022-01-23 20:27:35.458259 I [23880/23880] CoreContext mythcontext.cpp:1665 (~MythContext) - Exiting
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: I spoke too soon

Post by bill6502 »

If you look here: https://mariadb.com/kb/en/mariadb-error-codes/ it says that 1062 duplicate entry.
Trying to insert something that's already there.

A full log, *may* have helped. I don't see the INSERT above in the v31 or v32Pre code base.

You can copy/paste it to pastebin.com and put a link to it here.
User avatar
kmdewaal
Developer
Posts: 641
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: I spoke too soon

Post by kmdewaal »

I can watch live TV but not record.
Attempts to press [R] are ignored.
It could just be that there are different storage locations specified for live TV and for recordings and that it is not allowed to write to the location used for recordings.
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

Re: I spoke too soon

Post by pinnerite »

Thanks Bill.
Here is a pastebin link to the full frontend log :
Regarding kmdewaakl's comment, there different location folders/directories for live TV and other recordings but both are beneath /home/mythtv and all the permissions are: mythtv:mythtv

The speed (or lack of it) at each and every change of channel or is painful.
Way slower than I have ever seen before.
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: I spoke too soon

Post by bill6502 »

What's the output of these two commands:

Code: Select all

ls -ld {~,~mythtv}/.mythtv/config.xml /etc/mythtv/config.xml
grep "<Host>" {~,~mythtv}/.mythtv/config.xml /etc/mythtv/config.xml
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

Re: I spoke too soon

Post by pinnerite »

~$ ls -ld {~,~mythtv}/.mythtv/config.xml /etc/mythtv/config.xml
-rw-rw---- 1 mythtv mythtv 452 Jan 19 11:02 /etc/mythtv/config.xml
-rw-rw-r-- 1 alan alan 565 Jan 21 14:51 /home/alan/.mythtv/config.xml
-rwxrwxr-x 1 mythtv mythtv 611 Jan 20 18:19 /home/mythtv/.mythtv/config.xml

$ grep "<Host>" {~,~mythtv}/.mythtv/config.xml /etc/mythtv/config.xml
/home/alan/.mythtv/config.xml: <Host>192.168.1.4</Host>
/home/mythtv/.mythtv/config.xml: <Host>192.168.1.4</Host>
/etc/mythtv/config.xml: <Host>192.168.1.4</Host>
$
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: I spoke too soon

Post by bill6502 »

Typically, {~,~mythtv}/.mythtv/config.xml are symbolic links to: /etc/mythtv/config.xml

They aren't, AND, all three have a different size. therefore, they aren't the same. Since
~ and ~mythtv aren't links, /etc/mythtv/config.xml isn't being used. I'd find out which one
has the proper password, then remove yours and mythtv's and link them to the file in
/etc/mythtv.

For backend (or backend/frontend combination) the <Host> should be localhost because
a socket is used rather than the network.

Better look at:

Code: Select all

grep " <LocalHostName>" {~,~mythtv}/.mythtv/config.xml /etc/mythtv/config.xml
Next, I'd install the plugins, however Mint does that (I recall you're running Mint.) It's probably
the mythplugins package.
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

[SOLVE]Re: I spoke too soon

Post by pinnerite »

First of all, thanks to you it is working beautifully.

I did not make the changes to host name localhost because another machine with a front-end will be accessing the BE/FE.

Now to make notes. :)
User avatar
bill6502
Developer
Posts: 2299
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: I spoke too soon

Post by bill6502 »

The <Host> in config.xml is for initiall DB access for the machine that file is on.

For a backend (or combined frontend/backend) localhost is correct.

On a remote frontend, then the <Host> is wherever the DB is located, which is usually where
the backend is too.

This has nothing to do with DB GRANTS or bind-address values which must allow access for remote
frontends.
pinnerite
Senior
Posts: 256
Joined: Mon Apr 07, 2014 2:34 pm
Great Britain

Re: [Solved] DB Access, Frontend Connections [WAS: I spoke too soon]

Post by pinnerite »

OK. That makes sense. I will make the change.
Regards, Alan
Post Reply