PostMasterPOP3.pl fails with many messages (help please!)

Hi all, we've got more than 500 messages in our POP mailbox, and PostMaster.pl fails after getting some of them: ----------------------------------------------------------------------- Message 44/507 (otrs-in@**ourdomain**) DBI connect('database=jellycentral;host=**host**','otrs',...) failed: Too many connections at /opt/otrs/Kernel/System/DB.pm line 236 ERROR: OTRS-PM3-10 Perl: 5.8.4 OS: darwin Time: Mon Aug 2 16:56:51 2004 Message: Too many connections Traceback (28044): Module: Kernel::System::DB::new (v1.37) Line: 212 Module: Kernel::System::CustomerUser::DB::new (v1.22) Line: 46 Module: Kernel::System::CustomerUser::new (v1.17) Line: 42 Module: Kernel::System::Ticket::new (v1.70) Line: 112 Module: Kernel::System::PostMaster::new (v1.40.2.1) Line: 53 Module: main::FetchMail (v1.11) Line: 163 Module: /opt/otrs/bin/PostMasterPOP3.pl (v1.11) Line: 106 Too many connections at /opt/otrs/Kernel/System/CustomerUser/DB.pm line 46. ----------------------------------------------------------------------- Then I raised the max_connections parameter in /etc/my.cnf, and now PostMasterPOP3.pl fails with another error: ----------------------------------------------------------------------- Message 126/508 (otrs-in@**ourdomain**) Can't locate Carp/Heavy.pm in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /System/Library/Perl/5.8.4/darwin /System/Library/Perl/5.8.4 /Library/Perl/5.8.4/darwin /Library/Perl/5.8.4 /Library/Perl /Network/Library/Perl/5.8.4/darwin /Network/Library/Perl/5.8.4 /Network/Library/Perl .) at /System/Library/Perl/5.8.4/Carp.pm line 178. (in cleanup) Can't call method "Disconnect" on an undefined value at /opt/otrs/Kernel/System/CustomerUser/DB.pm line 449 during global destruction. ----------------------------------------------------------------------- How can we feed those messages in our OTRS queues? Please help, as this is a production system and I don't see any other solution than having a Perl script feed them one by one to PostMaster.pl. But this of course doesn't fix the problem itself. - Alessandro Ranellucci

Hi Alessandro, what otrs do you use? -Martin On Mon, Aug 02, 2004 at 05:08:52PM +0200, Alessandro Ranellucci wrote:
we've got more than 500 messages in our POP mailbox, and PostMaster.pl fails after getting some of them:
----------------------------------------------------------------------- Message 44/507 (otrs-in@**ourdomain**) DBI connect('database=jellycentral;host=**host**','otrs',...) failed: Too many connections at /opt/otrs/Kernel/System/DB.pm line 236 ERROR: OTRS-PM3-10 Perl: 5.8.4 OS: darwin Time: Mon Aug 2 16:56:51 2004
Message: Too many connections
Traceback (28044): Module: Kernel::System::DB::new (v1.37) Line: 212 Module: Kernel::System::CustomerUser::DB::new (v1.22) Line: 46 Module: Kernel::System::CustomerUser::new (v1.17) Line: 42 Module: Kernel::System::Ticket::new (v1.70) Line: 112 Module: Kernel::System::PostMaster::new (v1.40.2.1) Line: 53 Module: main::FetchMail (v1.11) Line: 163 Module: /opt/otrs/bin/PostMasterPOP3.pl (v1.11) Line: 106
Too many connections at /opt/otrs/Kernel/System/CustomerUser/DB.pm line 46. -----------------------------------------------------------------------
Then I raised the max_connections parameter in /etc/my.cnf, and now PostMasterPOP3.pl fails with another error:
----------------------------------------------------------------------- Message 126/508 (otrs-in@**ourdomain**) Can't locate Carp/Heavy.pm in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /System/Library/Perl/5.8.4/darwin /System/Library/Perl/5.8.4 /Library/Perl/5.8.4/darwin /Library/Perl/5.8.4 /Library/Perl /Network/Library/Perl/5.8.4/darwin /Network/Library/Perl/5.8.4 /Network/Library/Perl .) at /System/Library/Perl/5.8.4/Carp.pm line 178. (in cleanup) Can't call method "Disconnect" on an undefined value at /opt/otrs/Kernel/System/CustomerUser/DB.pm line 449 during global destruction. -----------------------------------------------------------------------
How can we feed those messages in our OTRS queues? Please help, as this is a production system and I don't see any other solution than having a Perl script feed them one by one to PostMaster.pl. But this of course doesn't fix the problem itself.
- Alessandro Ranellucci

Hi Alessandro, On Tue, Aug 03, 2004 at 06:04:04PM +0200, Alessandro Ranellucci wrote:
what otrs do you use?
Hi, I'm using 1.2.3 (I haven't upgraded yet). Should 1.2.4 fix this issue? It is very urgent for me, since I'm still feeding messages my hand.
If you use a external customer database, the you will run into this problem. I fixed bin/PostMasterPOP3.pl, use 1.11.2.1 for OTRS 1.2.x and it should be fixed. http://cvs.otrs.org/viewcvs.cgi/otrs/bin/PostMasterPOP3.pl?rev=1.11.2.1&cont... Anyway, if you need more urgent help, contact ((otrs.de)) which offers business support. .-) Thanks for your help!
Regards,
- Alessandro Ranellucci
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

On 3-08-2004 at 20:13, Martin Edenhofer wrote:
If you use a external customer database, the you will run into this problem. I fixed bin/PostMasterPOP3.pl, use 1.11.2.1 for OTRS 1.2.x and it should be fixed.
Thanks Martin, your fix works. However I had to execute PostMasterPOP3.pl more than once, since it failed twice with the following error: Message 127/559 (otrs-in@*ourdomain*) Got no Email at /opt/otrs/Kernel/System/PostMaster.pm line 42. With three attempts I was able to feed all those 559 messages. - Alessandro
participants (2)
-
Alessandro Ranellucci
-
Martin Edenhofer