rsnapshot LVM backup fails at line 3720
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsnapshot (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This error is received for each LVM listed in the rsnapshot.conf file:
Use of uninitialized value $linux_lvm_oldpwd in concatenation (.) or string at /usr/bin/rsnapshot line 3720.
chdir()
Use of uninitialized value $linux_lvm_oldpwd in chdir at /usr/bin/rsnapshot line 3722.
Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/bin/rsnapshot line 3722.
The error actually occurs at the assignment of $linux_lvm_oldpwd on line 3543.
$ENV{PWD} returns nothing. This was not the case in December and this started failing for me sometime around Jan 10th, 2014. I am not a Perl programmer but the documentation I found states that the proper way to get the current working directory is to call cwd() and NOT use $ENV{PWD}.
I replaced the offending line with the following:
I no longer experience the issue.
- jss
$ dpkg --status perl
Package: perl
Status: install ok installed
Priority: standard
Section: perl
Installed-Size: 17115
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 5.14.2-21build1
... lines deleted ...
$