Fehler beim Testen des Mail Accounts

Hilfe zu Znuny Problemen aller Art
Locked
Monroe
Znuny newbie
Posts: 11
Joined: 19 Aug 2009, 09:51
Znuny Version: 2.3.2

Fehler beim Testen des Mail Accounts

Post by Monroe »

Hi,

nachdem ich mit "perl -MCPAN -e shell" meine Perl-Module aufgefrischt habe, kann ich auch die IMAP-Accounts gut anlegen. Nur wenn ich jetzt die Accounts testen will, sehe ich zwar in der mail.log auf dem Mailserver einen erfolgreichen Login, immer erhalte ich eine Fehlermeldung bezüglich Perl

Code: Select all

[Wed Aug 19 17:22:15 2009] [error] [Wed Aug 19 17:22:15 2009] -e: Not a GLOB reference at /usr/share/perl5/Mail/Internet.pm line 33, <GEN2> line 56.\n
Zeile 33 bis 59 sehen so aus

Code: Select all

    if(!defined $arg) { }
    elsif(ref($arg) eq 'ARRAY')
    {   $self->header($arg) unless exists $opt{Header};
        $self->body($arg)   unless exists $opt{Body};
    }
    elsif(defined fileno($arg))
    {   $self->read_header($arg) unless exists $opt{Header};
        $self->read_body($arg)   unless exists $opt{Body};
    }
    else
    {   croak "couldn't understand $arg to Mail::Internet constructor";
    }

    $self;
}


sub read(@)
{   my $self = shift;
    $self->read_header(@_);
    $self->read_body(@_);
}

sub read_body($)
{   my ($self, $fd) = @_;
    $self->body( [ <$fd> ] );
}
Jetzt stehe ich ein bisschen auf dem Schlauch, was ORTS jetzt wieder fehlt.

Grüsse

Marie
OTRS 2.3.4
Debian Linux "Lenny"
fraenki
Znuny newbie
Posts: 5
Joined: 06 Mar 2009, 12:54
Znuny Version: 5.x.x

Fehler beim Testen des Mail Accounts

Post by fraenki »

Ich habe vermutlich genau das gleiche Problem. Nach dem Update der Perl Module
funktioniert PostMasterMailbox.pl nicht mehr, wenn ich ein IMAP-Konto abrufen
möchte.

Ich habe mal "use diagnostics" in PostMasterMailbox.pl aktiviert:

Code: Select all

%./bin/PostMasterMailbox.pl -f 1
Notice: PostMasterMailbox.pl is already running but is starting again!
IMAPS: Message 1/20 (user@example.com/mail.example.com)
Not a GLOB reference at /usr/local/lib/perl5/site_perl/5.8.9/Mail/Internet.pm
	line 34 (#1)
    (F) Perl was trying to evaluate a reference to a "typeglob" (that is, a
    symbol table entry that looks like *foo), but found a reference to
    something else instead.  You can use the ref() function to find out what
    kind of ref it really was.  See perlref.
    
Uncaught exception from user code:
	Not a GLOB reference at /usr/local/lib/perl5/site_perl/5.8.9/Mail/Internet.pm line 34.
 at /usr/local/lib/perl5/site_perl/5.8.9/Mail/Internet.pm line 34
	Mail::Internet::new('Mail::Internet', 'Net::IMAP::Simple::_message=ARRAY(0x9042784)') called at /usr/local/otrs/Kernel/System/EmailParser.pm line 88
	Kernel::System::EmailParser::new('Kernel::System::EmailParser', 'Email', 'Net::IMAP::Simple::_message=ARRAY(0x9042784)', 'ConfigObject', 'Kernel::Config=HASH(0x8100a90)', 'Trusted', 0, 'PIDObject', 'Kernel::System::PID=HASH(0x8e8bbdc)', ...) called at /usr/local/otrs/Kernel/System/PostMaster.pm line 105
	Kernel::System::PostMaster::new('Kernel::System::PostMaster', 'ConfigObject', 'Kernel::Config=HASH(0x8100a90)', 'PIDObject', 'Kernel::System::PID=HASH(0x8e8bbdc)', 'DBObject', 'Kernel::System::DB=HASH(0x8e42e68)', 'TimeObject', 'Kernel::System::Time=HASH(0x8e42f04)', ...) called at /usr/local/otrs/Kernel/System/MailAccount/IMAPS.pm line 143
	Kernel::System::MailAccount::IMAPS::Fetch('Kernel::System::MailAccount::IMAPS=HASH(0x9070304)', 'ID', 1, 'ValidID', 1, 'UserID', 1, 'DispatchingBy', 'Queue', ...) called at /usr/local/otrs/Kernel/System/MailAccount.pm line 369
	Kernel::System::MailAccount::MailAccountFetch('Kernel::System::MailAccount=HASH(0x8e8baec)', 'ID', 1, 'ValidID', 1, 'QueueID', 4, 'Comment', '', ...) called at ./bin/PostMasterMailbox.pl line 136
Bei mir läuft OTRS unter FreeBSD mit Perl 5.8.9. Vielleicht kann jemand erkennen, welches
(aktualisierte?) Perl-Modul das Problem verursacht. Dann könnte man ja gezielt downgraden.


Ciao
- fraenki
fraenki
Znuny newbie
Posts: 5
Joined: 06 Mar 2009, 12:54
Znuny Version: 5.x.x

Fehler beim Testen des Mail Accounts

Post by fraenki »

fraenki wrote:Nach dem Update der Perl Module funktioniert PostMasterMailbox.pl nicht mehr, wenn ich ein IMAP-Konto abrufen möchte.
Problem gelöst. Aktualisiert wurde unter anderem das Modul Net-IMAP-Simple.
Allerdings wurde das davon abhängige Modul Net-IMAP-Simple-SSL nicht aktualisiert.

Offenbar gab es in der neuen Version 1.19.x von Net-IMAP-Simple eine inkompatible
Änderung. Ich habe jetzt auf die Version 1.18.x downgegraded und OTRS kann wieder
wie gewohnt Mails vom IMAP Server abrufen.


Ciao
- fraenki
Monroe
Znuny newbie
Posts: 11
Joined: 19 Aug 2009, 09:51
Znuny Version: 2.3.2

Fehler beim Testen des Mail Accounts

Post by Monroe »

Hallo,

ich weiß jetzt wo definitiv, wo der Hase im Pfeffer steckt.
this is an issue in the libmailtools-perl package, I am reassigning it.
Das schreibt der entsprechende Debian-Entwickler. Damit dürfte der Punkt demnächst gelöst auf den Servern von Debian liegen.

Grüße

Marie
OTRS 2.3.4
Debian Linux "Lenny"
nti
Znuny newbie
Posts: 4
Joined: 07 Feb 2010, 20:41
Znuny Version: 2.4.6

Fehler beim Testen des Mail Accounts

Post by nti »

Also ich habe den Fehler auch bei einem Downgrade von Perl Net-IMAP-Simple und von Perl Mail-Tools. Diese funktionieren auf einem anderen Server
OTRS Version ist 2.6.4, Perl ist 5.10

Code: Select all

Not a GLOB reference at /usr/local/lib/perl5/site_perl/5.10.1/Mail/Internet.pm
        line 39, <GEN0> line 38 (#1)
    (F) Perl was trying to evaluate a reference to a "typeglob" (that is, a
    symbol table entry that looks like *foo), but found a reference to
    something else instead.  You can use the ref() function to find out what
    kind of ref it really was.  See perlref.
    
Uncaught exception from user code:
        Not a GLOB reference at /usr/local/lib/perl5/site_perl/5.10.1/Mail/Internet.pm line 39, <GEN0> line 38.
 at /usr/local/lib/perl5/site_perl/5.10.1/Mail/Internet.pm line 34
        Mail::Internet::new('Mail::Internet', 'Net::IMAP::Simple::_message=ARRAY(0x80500d228)') called at /usr/local/otrs/Kernel/System/EmailParser.pm line 134
        Kernel::System::EmailParser::new('Kernel::System::EmailParser', 'Email', 'Net::IMAP::Simple::_message=ARRAY(0x80500d228)', 'PIDObject', 'Kernel::System::PID=HASH(0x8046c34b0)', 'DBObject', 'Kernel::System::DB=HASH(0x8046175e8)', 'MainObject', 'Kernel::System::Main=HASH(0x804297208)', ...) called at /usr/local/otrs/Kernel/System/PostMaster.pm line 114
        Kernel::System::PostMaster::new('Kernel::System::PostMaster', 'ConfigObject', 'Kernel::Config=HASH(0x8012648e8)', 'EncodeObject', 'Kernel::System::Encode=HASH(0x8040c80f0)', 'PIDObject', 'Kernel::System::PID=HASH(0x8046c34b0)', 'DBObject', 'Kernel::System::DB=HASH(0x8046175e8)', ...) called at /usr/local/otrs/Kernel/System/MailAccount/IMAP.pm line 146
        Kernel::System::MailAccount::IMAP::Fetch('Kernel::System::MailAccount::IMAP=HASH(0x805072d08)', 'ID', 1, 'ValidID', 1, 'UserID', 1, 'DispatchingBy', 'Queue', ...) called at /usr/local/otrs/Kernel/System/MailAccount.pm line 380
        Kernel::System::MailAccount::MailAccountFetch('Kernel::System::MailAccount=HASH(0x8046bebb8)', 'ID', 1, 'ValidID', 1, 'QueueID', 5, 'Comment', '', ...) called at bin/PostMasterMailbox.pl line 182
        main::Fetch('EncodeObject', 'Kernel::System::Encode=HASH(0x8040c80f0)', 'ConfigObject', 'Kernel::Config=HASH(0x8012648e8)', 'PIDObject', 'Kernel::System::PID=HASH(0x8046c34b0)', 'DBObject', 'Kernel::System::DB=HASH(0x8046175e8)', 'TimeObject', ...) called at bin/PostMasterMailbox.pl line 95
Locked