Page 1 of 1

Maintenance: Software update 10. Nov. 2008

Posted: 10 Nov 2008, 21:32
by Admin
Today the software will be updated.
The service will be interrupted for a few minutes.

Re: Maintenance: Software update 10. Nov. 2008

Posted: 10 Nov 2008, 23:16
by Admin
The software has been updated.
Now the performance should be a little better.

Re: Maintenance: Software update 10. Nov. 2008

Posted: 10 Nov 2008, 23:51
by Admin
Admin wrote:The software has been updated.
Now the performance should be a little better.
I just saw that there was a data loss of some mails between the start and end of the migration.

Reason:
Perl does not capture UNIX Shell errors in a open statement with a pipe. I don't know if this is a bug at Perl or a feature.
But the following statement shows the problem:
test.pl:

Code: Select all

#!/usr/bin/perl                                                                 
open(FH, "|/bin/echo 2>>/etc/passwd") or die "can't open. alert user.\n";
close(FH);
print "I continue.\n";
If test.pl is run by a normal user, he will get:

Code: Select all

$ ./test.pl
sh: cannot create /etc/passwd: Permission denied
I continue.
$ echo $?
0
The problem is that Perl did not called the "die" statement. The exit code returned by Perl is 0.
I'm really sorry for this problem. It means that some mails did not got forwarded because of a permission problem while the migration, and the Perl program did not captured it. The problem has been fixed at the end of the migration.
For dataprotection reasons I don't save incoming emails, so some mails have been lost while the migration. :-(