View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jan 21, 2017 3:44 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 743
Location: Sydney, Australia
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 :-(

_________________
| Nigel Pearson, nigel@ind.tansu.com.au
| Telstra BID, Sydney, Australia
|
|"Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
PostPosted: Sat Jan 21, 2017 5:57 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 993
Location: SC
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.


Top
 Profile  
 
PostPosted: Sun Jan 22, 2017 1:30 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 743
Location: Sydney, Australia
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 ~]$

_________________
| Nigel Pearson, nigel@ind.tansu.com.au
| Telstra BID, Sydney, Australia
|
|"Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu