Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Perl File::Temp error in mysql-zrm

  1. #1

    Default Perl File::Temp error in mysql-zrm

    Red Hat Enterprise AS 3.0, release 8; perl-5.8.0-94.EL3; MySQL-zrm-1.1.3-1

    When running:

    mysql-zrm-scheduler --now --backup-set=daily

    I'm getting an error at line 3770 involving File::temp:

    Logging to /var/log/mysql-zrm/mysql-zrm-scheduler.log
    INFO: ZRM for MySQL Community Edition - version 1.1.3
    INFO: Mail address: root@localhost is ok
    INFO: Input Parameters Used {
    INFO: verbose=1
    INFO: retention-policy=2D
    INFO: all-databases=0
    INFO: destination=/backup/mysql
    INFO: backup-mode=raw
    INFO: password=******
    INFO: compress-plugin=/usr/bin/bzip2
    INFO: user=backup
    INFO: copy-plugin=/usr/share/mysql-zrm/plugins/socket-copy.pl
    INFO: quiet=0
    INFO: backup-level=0
    INFO: mailto=root@localhost
    INFO: databases=information_schema bugs mysql sgclabmanager wikidb wikidb_sysadmin
    INFO: html-reports=backup-status-info
    INFO: host=******** [removed for security reasons]
    INFO: html-report-directory=/var/www/mysql-zrm/reports/
    INFO: comment=Daily backup
    INFO: compress=/usr/bin/bzip2
    INFO: }
    Can't locate object method "new" via package "File::Temp" at /usr/bin/mysql-zrm line 3770.
    ERROR: /usr/bin/mysql-zrm did not finish successfully
    /usr/bin/mysql-zrm-reporter finished successfully

    Putting a diagnostic print statement just before line 3770 reveals that $backupset_dir='/etc/mysql-zrm/daily'.

    Can anyone point out what I'm doing wrong?

    Thanks
    Brian

  2. #2
    Join Date
    Oct 2006
    Posts
    199

    Default

    Hi,

    It's because the new object interface was introduced in File::Temp version 0.17 which is
    included in perl-5.8.5.

    Please note ZRM is currently with 5.8.7 and above only.

    --kkg

  3. #3

    Default

    Yes - upgrading to 5.8.8 solved the problem.

    Many thanks for your fast response.

    Brian.

  4. #4

    Default

    I am having same issue..I currently have rpm version perl-5.8.0-90.4.

    I tried installing the latest Perl (5.8.8 from source)...Do I need to point ZRM to the new Perl install? Or remove the original rpm files? It seems to keep giving me the same error...

  5. #5
    Join Date
    Oct 2005
    Posts
    1,559

    Default

    You will need to point to perl 5.8.8 libraries.

    Paddy

  6. #6

    Default Perl Libraries

    I have been looking for that option....Is it in the mysql-zrm.conf ?

  7. #7
    Join Date
    Oct 2005
    Posts
    1,559

    Default

    You can set

    $PERL5LIB to /usr/lib/perl5 (assuming 5.8.8 libraries are installed under /usr/lib/perl5)

    Use perl -V to check @INC values (see whether it includes 5.8.8 libraries)

    Paddy

  8. #8

    Default Perl Variable

    Thank you for the information....just a couple quick questions..

    1. Do I create this variable? Or edit an existing one?

    2. Do I set this option in the /usr/bin/mysql-zrm or in the mysql-zrm.conf ?

  9. #9

    Default Temp Error in mysql-zrm

    "Thank you for the information....just a couple quick questions..

    1. Do I create this variable? Or edit an existing one?

    2. Do I set this option in the /usr/bin/mysql-zrm or in the mysql-zrm.conf ?"



    Any update on this question? I have not yet found where that variable is. Thanks.

  10. #10
    Join Date
    Oct 2005
    Location
    Bay Area, CA
    Posts
    124

    Default

    Hi,
    mysql-zrm from perl from /usr/bin/perl. So the easiest approach is to make sure /usr/bin/perl on your system is of 5.8.7 or better.

    To find out what version /usr/bin/perl is and what directories it look for libraries, do
    "/usr/bin/perl -V"

    $PERL5LIB is an environment variable. You should set it in your shell.

    Hope this helps!

    --Kevin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •