LinHES Forums http://forums.linhes.org/ |
|
Recovering missing recordings http://forums.linhes.org/viewtopic.php?f=24&t=24617 |
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 myth.rebuilddatabase.pl It now is located at https://www.mythtv.org/wiki/Myth.rebuilddb.pl, but if you install that, it needs an extra Perl module to run on LinHES: Code: [nigel@mythtv-server ~]$ perl ./myth.rebuilddb.pl Can't locate Time/Format.pm 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 ./myth.rebuilddb.pl line 55. BEGIN failed--compilation aborted at ./myth.rebuilddb.pl line 55. I tried to install it the ArchLinux way: Code: sudo pacman-key --init sudo pacman -U https://www.archlinux.org/packages/community/any/perl-time-format/download but that failed - someone with pacman knowledge will have to document that. I also tried the Perl way: Code: [nigel@mythtv-server ~]$ sudo perl -MCPAN -e shell [sudo] password for nigel: CPAN.pm 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: http://www.perl.org/CPAN/MIRRORED.BY Looking for CPAN mirrors near you (please be patient) ......................... done! New urllist http://mirror.intergrid.com.au/cpan/ http://cpan.mirror.digitalpacific.com.au/ http://mirror.optusnet.com.au/CPAN/ Autoconfiguration complete. commit: wrote '/root/.cpan/CPAN/MyConfig.pm' 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: Code: 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/Distribution.pm line 2084. ANDK/CPAN-2.14.tar.gz 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 |
Nigel, I just built and pushed this to test. Code: sudo pacman -U http://linhes.org/repo/x86_64/core-testing/perl-time-format-1.12-2-any.pkg.tar.xz Let me know if it works and I will push it to production. Pacman failed pointing at archlinux.com 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: https://www.mythtv.org/wiki/Myth.rebuilddatabase.pl Will try the pacman install another day. P.S. Note that a direct package URL also seemed to fail last night: Code: [nigel@mythtv-server ~]$ sudo pacman -U http://mirror.f4st.host/archlinux/community/os/i686/perl-time-format-1.12-2-any.pkg.tar.xz
[sudo] password for nigel: loading packages... :: Import PGP key 4096R/, "Sergej Pupykin <ml@sergej.pp.ru>", created: 2011-07-16? [Y/n] Y error: key "Sergej Pupykin <ml@sergej.pp.ru>" 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 http://www.phpbb.com/ |