[Solved] tmdb3 crashes
Moderator: Forum Moderators
[Solved] tmdb3 crashes
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.
Re: tmdb3 crashes
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
- dnalorernst
- Developer
- Posts: 105
- Joined: Mon Feb 17, 2020 8:03 pm
Re: tmdb3 crashes
Please post the version of the OS and mythtv. In a terminal, run
In the mythtv backend log file (on ubuntu in /var/log/mythtv/mythbackend.log) you should see something like
Please post the output of
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.
Code: Select all
uname -a
mythbackend --version
Code: Select all
Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a DE -C 24420
Code: Select all
grep "Running Grabber" /var/log/mythtv/mythbackend.log
Additionally, the crash report does not contain any private data, so please zip one and attach it to this thread.
Re: tmdb3 crashes
Thanks for helping. Sorry about any poor formatting.
dnalorernst wrote: ↑Sat Feb 27, 2021 12:10 pmPlease post the version of the OS and mythtv. In a terminal, runmarcw@myth-be:~$ uname -aCode: Select all
uname -a mythbackend --version
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 likeNope, nothing.Code: Select all
Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a DE -C 24420
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 ofChange the path to the backend log file according to the log file location.Code: Select all
grep "Running Grabber" /var/log/mythtv/mythbackend.log
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 50 times
-
- grabber.txt
- (13.38 KiB) Downloaded 59 times
- dnalorernst
- Developer
- Posts: 105
- Joined: Mon Feb 17, 2020 8:03 pm
Re: tmdb3 crashes
The crash-report shows
The backend checks if the grabber is working, by executing
Do you have the python bindings installed?
Please post the output of
It should show something like
In case the python bindings are not installed, install them by
Which python version requires the tmdbv3.py script?
Please post the output of
It should show
Do you have multiple installations of the MythTV python-bindings?
Please post the output when running these commands in a python shell
It should show something like:
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'
Code: Select all
/usr/share/mythtv/metadata/Movie/tmdb3.py -v
Please post the output of
Code: Select all
dpkg -l libmyth-python
Code: Select all
ii libmyth-python 2:31.0+fixes.202101081714.016630a35c~ubuntu20.04.1
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
Code: Select all
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
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__
>>>
Code: Select all
'/usr/lib/python3/dist-packages/MythTV/static.py'
- dnalorernst
- Developer
- Posts: 105
- Joined: Mon Feb 17, 2020 8:03 pm
Re: tmdb3 crashes
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__
>>>
Re: tmdb3 crashes
libmyth-python is not installed. I'll report back after installation and mythfilldatabase run.
- dnalorernst
- Developer
- Posts: 105
- Joined: Mon Feb 17, 2020 8:03 pm
Re: tmdb3 crashes
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.
or do an install of the libmyth-python package with the version required by mythtv-backend.
Re: tmdb3 crashes
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.
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.
Re: [Solved] tmdb3 crashes
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
Re: [Solved] tmdb3 crashes
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.
libmyth-python is a dependency of the mythtv-frontend package so will always be installed if the frontend is installed.