LinHES Forums

Recovering missing recordings
Page 1 of 1

Author:  nigelpearson [ Sat Jan 21, 2017 3:44 am ]
Post subject:  Recovering missing recordings

Sometimes, if your MythTV server dies badly enough, you might lose some recordings
(e.g. if database partition fills up or that disk dies, but recordings partition is OK).

There used to be a script

It now is located at, but if you install that, it needs an extra Perl module to run on LinHES:
[nigel@mythtv-server ~]$ perl ./
Can't locate Time/ in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./ line 55.
BEGIN failed--compilation aborted at ./ line 55.

I tried to install it the ArchLinux way:

sudo pacman-key --init
sudo pacman -U

but that failed - someone with pacman knowledge will have to document that. I also tried the Perl way:

[nigel@mythtv-server ~]$ sudo perl -MCPAN -e shell
[sudo] password for nigel: requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]

ALERT: 'make' is an essential tool for building perl Modules.
Please make sure you have 'make' (or some equivalent) working.

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites.  You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with LWP:

Looking for CPAN mirrors near you (please be patient)
......................... done!

New urllist

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

cpan[1]> install CPAN

but that fails also:
Warning: Prerequisite 'CPAN::Meta::Requirements => 2.121' for 'ANDK/CPAN-2.14.tar.gz' failed when processing 'DAGOLDEN/CPAN-Meta-Requirements-2.140.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": No such file or directory at /usr/share/perl5/core_perl/CPAN/ line 2084.
  make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 ANDK/CPAN-2.14.tar.gz                        : make NO

Giving up for tonight :-(

Author:  brfransen [ Sat Jan 21, 2017 5:57 pm ]
Post subject:  Re: Recovering missing recordings


I just built and pushed this to test.
sudo pacman -U

Let me know if it works and I will push it to production.

Pacman failed pointing at because it has redirects in the download link and pacman doesn't follow them. You have to point it at the pkg.tar.xz file directly.

Author:  nigelpearson [ Sun Jan 22, 2017 1:30 am ]
Post subject:  Re: Recovering missing recordings

Thanks Britney, but I actually updated the script to avoid that Perl module:

Will try the pacman install another day.

P.S. Note that a direct package URL also seemed to fail last night:
[nigel@mythtv-server ~]$ sudo pacman -U
[sudo] password for nigel:
loading packages...
:: Import PGP key 4096R/, "Sergej Pupykin <>", created: 2011-07-16? [Y/n] Y
error: key "Sergej Pupykin <>" could not be imported
error: required key missing from keyring
error: '/data/storage/disk0/pacman/pkg/perl-time-format-1.12-2-any.pkg.tar.xz': unexpected error
[nigel@mythtv-server ~]$

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group