Ich hatte zunächst das gleiche Problem wie Teddy, mittlerweile habe ich dieses gelöst und komme soweit das meine Datenbank auf dem FTP gesichert wird. Das einzigste Problem ist jetzt das keine Mail Versand wird wenn ich das Script via Cron-Job aufrufen lasse! Wenn ich es über den Browser machen funktioniert alles ohne Probleme und auch die Mail wird verschickt!
Folgende Meldung bekommen ich in der Console wenn ich es über telent ausführe:
<hr>Backup of Database `DB` complete.<br>
sending mail ...<br>
Content-type: text/html
<H1>Software error:</H1>
<CODE>Can't use string ("MIME::Lite") as a HASH ref while "strict refs" in use at /opt/KQperl/lib/site_perl/MIME/Lite.pm line 932.
</CODE>
<P>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
;
[Fri Jan 6 10:33:11 2006] crondump.cgi: Can't use string ("MIME::Lite") as a HASH ref while "strict refs" in use at /opt/KQperl/lib/site_perl/MIME/Lite.pm line 932.
Daraufhin dachte ich das das MIME::Lite modul bei strato fehlerhaft ist und habe die Lite.pm im CGI-Bin/MIME hochgeladen.
Letztendlich noch
my $cgibin_path="/mnt/ja2/05/774/00000018/htdocs/cgi-bin"; # this is needed for MIME::Lite if it is in cgi-bin
in der crondump.cgi geändert, aber auch da kommt die gleiche Fehlermeldung, wobei dort auch wieder /opt/KQperl/lib/site_perl/MIME/Lite.pm benutzt wurde.
Folgendes steht dazu in den Logs:
Quote:
06.01.2006 10:33:11 : Perl Cron-Dump `DB157621_2006_01_06_10_32_crondump_perl.sql.gz` finished.
06.01.2006 10:32:56 : Start Perl Cron-Dump with file `DB157621_2006_01_06_10_32_crondump_perl.sql.gz`
06.01.2006 10:32:56 : Executing Command before dump
06.01.2006 10:32:56 : Perl Cronsript Autodelete - /mnt/ja2/05/774/00000018/htdocs/mysqldumper/work/backup/DB157621_2006_01_06_10_29_crondump_perl.sql.gz deleted.
06.01.2006 10:32:56 : starting perl crondump 1.21
Wenn ich es über den Browser ausführe kommt folgendes:
Quote:
04.01.2006 13:31:14 : Executing Command after dump
04.01.2006 13:31:14 : Mail was sent to *********.
04.01.2006 13:31:13 : Perl Cron-Dump `DB157621_2006_01_04_13_30_crondump_perl.sql.gz` finished.
04.01.2006 13:31:01 : Start Perl Cron-Dump with file `DB157621_2006_01_04_13_30_crondump_perl.sql.gz`
04.01.2006 13:30:57 : Executing Command before dump
04.01.2006 13:30:57 : starting perl crondump 1.21
Ich hoffe ihr könnt mir sagen wo der fehler drin steckt