[Solved] tmdb3 crashes

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

Moderator: Forum Moderators

Post Reply
marcw
Junior
Posts: 18
Joined: Tue May 03, 2016 4:49 pm
United States of America

[Solved] tmdb3 crashes

Post by marcw » Fri Feb 26, 2021 9:19 pm

I've recently installed v31 as a standalone BE. (The database was restored from v28). It seems to be working well except I see a lot of tmdb3 crashes. Like daily. I'm not sure what tmdb3 does or even what it is except google tells me it's a python script that provides movie and TV info. Aside from the crash reports that land in /var/crash/ I can't find any logging or anything that would help troubleshoot this. I've looked for help in the wiki and either I'm blind or there's nothing there. Seeking ideas please, thanks!
Last edited by marcw on Sun Feb 28, 2021 10:06 pm, edited 2 times in total.

jksj
Senior
Posts: 122
Joined: Thu Feb 13, 2014 7:53 pm
Great Britain

Re: tmdb3 crashes

Post by jksj » Sat Feb 27, 2021 8:13 am

tmdb3 is part of mythtv's metadata look up system which has just changed significantly see https://www.mythtv.org/wiki/Metadata_Lo ... March_2021

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: tmdb3 crashes

Post by dnalorernst » Sat Feb 27, 2021 12:10 pm

Please post the version of the OS and mythtv. In a terminal, run

Code: Select all

uname -a
mythbackend --version
In the mythtv backend log file (on ubuntu in /var/log/mythtv/mythbackend.log) you should see something like

Code: Select all

Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a DE -C 24420
Please post the output of

Code: Select all

grep "Running Grabber" /var/log/mythtv/mythbackend.log
Change the path to the backend log file according to the log file location.

Additionally, the crash report does not contain any private data, so please zip one and attach it to this thread.

marcw
Junior
Posts: 18
Joined: Tue May 03, 2016 4:49 pm
United States of America

Re: tmdb3 crashes

Post by marcw » Sat Feb 27, 2021 3:21 pm

Thanks for helping. Sorry about any poor formatting.
dnalorernst wrote:
Sat Feb 27, 2021 12:10 pm
Please post the version of the OS and mythtv. In a terminal, run

Code: Select all

uname -a
mythbackend --version
marcw@myth-be:~$ uname -a
Linux myth-be 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
marcw@myth-be:~$
marcw@myth-be:~$
marcw@myth-be:~$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v31.0+fixes.202102201954.525e3b0bb4~ubuntu20.04.1
MythTV Branch : fixes/31
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.12.8
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_gnutls using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_libbluray_external using_xrandr using_profiletype using_systemd_notify using_systemd_journal using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_egl using_vaapi using_nvdec using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2 using_libmp3lame

In the mythtv backend log file (on ubuntu in /var/log/mythtv/mythbackend.log) you should see something like

Code: Select all

Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a DE -C 24420
Nope, nothing.
marcw@myth-be:/var/log/mythtv$ cat mythbackend.log |grep -i tmdb3
marcw@myth-be:/var/log/mythtv$ cat mythbackend.log.1 |grep -i tmdb3


Please post the output of

Code: Select all

grep "Running Grabber" /var/log/mythtv/mythbackend.log
Change the path to the backend log file according to the log file location.

Attached.

Additionally, the crash report does not contain any private data, so please zip one and attach it to this thread.

Also attached.
Attachments
_usr_share_mythtv_metadata_Movie_tmdb3.py.130.zip
(3.63 KiB) Downloaded 4 times
grabber.txt
(13.38 KiB) Downloaded 7 times

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: tmdb3 crashes

Post by dnalorernst » Sun Feb 28, 2021 11:34 am

The crash-report shows

Code: Select all

PythonArgs: ['/usr/share/mythtv/metadata/Movie/tmdb3.py', '-v']
Traceback:
 Traceback (most recent call last):
   File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 150, in <module>
     sys.exit(main("movie",'tmdb3.py'))
   File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 77, in main
     from MythTV.tmdb3.lookup import timeouthandler
 ModuleNotFoundError: No module named 'MythTV'
The backend checks if the grabber is working, by executing

Code: Select all

/usr/share/mythtv/metadata/Movie/tmdb3.py -v
Do you have the python bindings installed?
Please post the output of

Code: Select all

dpkg -l libmyth-python
It should show something like

Code: Select all

ii  libmyth-python 2:31.0+fixes.202101081714.016630a35c~ubuntu20.04.1 
In case the python bindings are not installed, install them by

Code: Select all

sudo apt-get install libmyth-python

Which python version requires the tmdbv3.py script?
Please post the output of

Code: Select all

head -n2 /usr/share/mythtv/metadata/Movie/tmdb3.py
It should show

Code: Select all

#!/usr/bin/python3
# -*- coding: UTF-8 -*-
Do you have multiple installations of the MythTV python-bindings?
Please post the output when running these commands in a python shell

Code: Select all

python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import MythTV
>>> MythTV.static.__file__
>>> 
It should show something like:

Code: Select all

'/usr/lib/python3/dist-packages/MythTV/static.py'

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: tmdb3 crashes

Post by dnalorernst » Sun Feb 28, 2021 11:49 am

I forgot to say that the last command (with python3) should also be done as user 'mythtv':

Code: Select all

sudo -su mythtv -H
python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import MythTV
>>> MythTV.static.__file__
>>> 

marcw
Junior
Posts: 18
Joined: Tue May 03, 2016 4:49 pm
United States of America

Re: tmdb3 crashes

Post by marcw » Sun Feb 28, 2021 1:05 pm

libmyth-python is not installed. I'll report back after installation and mythfilldatabase run.

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: tmdb3 crashes

Post by dnalorernst » Sun Feb 28, 2021 2:10 pm

Either upgrade the mythtv installation to the latest installables and try to install libmyth-python,
or do an install of the libmyth-python package with the version required by mythtv-backend.

marcw
Junior
Posts: 18
Joined: Tue May 03, 2016 4:49 pm
United States of America

Re: tmdb3 crashes

Post by marcw » Sun Feb 28, 2021 10:04 pm

The BE seems to have launched tmdb3 successfully on its its own. Must be an internal scheduler. I noticed in the BE log that it seems to have grabbed data for a couple dozen TV shows so it must be working even though I'm not sure what it does with that data.
So it's clear now that the issue was caused by libmyth-python not being installed. I wonder why the installation routine of the backend didn't know enough to install libmyth-python on its own. I used the Mythbuntu Control Panel for the installation. Oh well. I'll mark this thread resolved.

User avatar
heyted
Senior
Posts: 194
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: [Solved] tmdb3 crashes

Post by heyted » Mon Mar 01, 2021 2:48 am

I just checked mine with the backend installed using MCP with the PPA, and libmyth-python is installed. Not sure what happened in marcw's case.
Ted | My blog

User avatar
paulh
Developer
Posts: 618
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: [Solved] tmdb3 crashes

Post by paulh » Tue Mar 02, 2021 12:53 pm

libmyth-python is only a recommended package for mythtv-backend so wont be installed by default.

libmyth-python is a dependency of the mythtv-frontend package so will always be installed if the frontend is installed.

Post Reply