v35 Channel Scan never gets into Database

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
bakasan
Newcomer
Posts: 9
Joined: Thu Dec 27, 2018 9:06 pm
Australia

v35 Channel Scan never gets into Database

Post by bakasan »

Setup:
  • Ubuntu v24.04 (all updates)
  • MythTV v35 built from source to debs
  • Two DVB-T Cards (been working with MythTV for years)
  • A normal user running mythfrontend, but added to mythtv group
Performing a Channel Scan through the web interface, or through the deprecated setup interface produces a flawless scan. All the local channels are found, and even stored to the scan file.

From a run of

Code: Select all

mythtv-setup -v chanscan --loglevel=debug
as either my normal user, or sudo ~

Code: Select all

Channel list (39):
578500000:7HD Newcastle:6:12930:12930:2366:2480=2480:dvb
578500000:7HD Newcastle:60:12930:12930:2410:2480=2480:dvb
578500000:7twoHD Newcastle:62:12930:12930:2412:2480=2480:dvb
578500000:7mateHD Newcastle:64:12930:12930:2414:2480=2480:dvb
578500000:7Bravo:65:12930:12930:2415:2480=2480:dvb
But after save-exiting the channel scan, under the [Input Connections] option [Starting Channel] there are no channels listed.

Checking the database:

Code: Select all

mysql> select * from channel;
Empty set (0.00 sec)
I've also tried importing the existing scan-file, which once-again appears like it has worked, but the database remains empty.

The channel-scan logs ends like this below. I don't know if it's important, but it concerns me that there's 39 channels, but it says "Found 39 unused transports."

Code: Select all

Channels: FTA Enc Dec
ATSC        0   0   0
DVB        39   0   0
SCTE        0   0   0
MPEG        0   0   0
NTSC        0
Unique: prog 39 atsc 0 atsc minor 0 channum 39
Max ATSC major count: 0
2025-04-18 07:03:19.032957 I  ChanImport: Found 39 unused transports.

Mythfrontend (now I changed mysql to listen on 0.0.0.0) uses the database happily.

Any help much appreciated. This has never been a problem before (since 2008).

thanks,
-kt
bakasan
Newcomer
Posts: 9
Joined: Thu Dec 27, 2018 9:06 pm
Australia

Re: v35 Channel Scan never gets into Database

Post by bakasan »

Where are channel-scan files stored?
bakasan
Newcomer
Posts: 9
Joined: Thu Dec 27, 2018 9:06 pm
Australia

Re: v35 Channel Scan never gets into Database

Post by bakasan »

I've debugged this as far as seeing the dtv_multiplex table getting populated, but the channel table is never populated, and at the end of the import cycle, the dtv_multiplex table is cleared again - this is the "39 unused transports".

So it's inserting the "transports", but for some reason the channels are failing.
User avatar
kmdewaal
Developer
Posts: 737
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: v35 Channel Scan never gets into Database

Post by kmdewaal »

Thanks for the analysis. Looks like this problem is the same as this one https://github.com/MythTV/mythtv/issues/1070
Post Reply