Perl 5.18 to 5.20 Broke Bacula Database Backup Script

dweimer dweimer at dweimer.net
Wed Jun 11 13:09:33 UTC 2014


I upgraded my FreeBSD 10 Bacula server's Perl installation from 5.18 to 
5.20 yesterday.  This morning I discovered that the the Bacula Catalog 
backup script failed.

2014-06-11 07:37:35   bacula-dir JobId 1809: shell command: run 
BeforeJob "/usr/local/share/bacula/make_catalog_backup.pl MyCatalog"
2014-06-11 07:37:35   bacula-dir JobId 1809: BeforeJob: env: perl: No 
such file or directory
2014-06-11 07:37:35 bacula-dir JobId 1809: Error: Runscript: BeforeJob 
returned non-zero status=127. ERR=Child exited with code 127

Examining the script file fond the first line of:
#!/usr/bin/env perl

Modifying it to:
#!/usr/bin/env /usr/local/bin/perl

Resolves the issue.

It appears from looking at one of my FreeBSD 10 systems that I haven't 
made the upgrade to 5.20 yet, that the perl link was created as 
/usr/bin/perl instead of /usr/local/bin/perl

Was this change intentional?  Shouldn't there be a note in 
/ust/ports/UPDATING or the like pointing this out?  I am guessing its 
likely that other ports / scripts could be effected by this.


-- 
Thanks,
    Dean E. Weimer
    http://www.dweimer.net/


More information about the freebsd-questions mailing list