Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

mail.cgi maxes cpu

How do I fix...

Re: mail.cgi maxes cpu

Postby mdegive » Fri May 07, 2010 7:10 am

yes, i just checked everything again.

renamed mail.cgi to mail.pm.
created mail.cgi with the code you provided and changed the path as outlined. Set perms to 755
added a cron job to delete the counter file

mail.pm runs fine, it's mail.cgi that give a 500 error.

now what?
mdegive
 
Posts: 29
Joined: Tue Apr 29, 2008 7:32 am

Re: mail.cgi maxes cpu

Postby justin » Fri May 07, 2010 11:32 am

Not sure - it just sounds like you have a misconfiguration in your script, or the script has been corrupted (maybe by uploading it as, "binary", instead of, "text"?
User avatar
justin
 
Posts: 5438
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: mail.cgi maxes cpu

Postby mdegive » Tue May 11, 2010 8:04 am

Justin, have you tested this? It really does not work. I ran it from the command line:

perl -ws mail.cgi

Subroutine main::confess redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
Subroutine main::croak redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
Subroutine main::carp redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
Subroutine mail::carp redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /mail.pm line 108
Subroutine mail::croak redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /mail.pm line 108
mdegive
 
Posts: 29
Joined: Tue Apr 29, 2008 7:32 am

Re: mail.cgi maxes cpu

Postby justin » Tue May 11, 2010 1:16 pm

Yes, I've been using a script similar to this for years, now - the script was a part of the old manual, in fact.

Why are you using the, "-s" flag? (enable rudimentary parsing for switches after programfile - I don't even know what that is)

Why not just,

Code: Select all
perl ./mail.cgi



Is this a problem you'd like me to handle on behalf of you?
User avatar
justin
 
Posts: 5438
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: mail.cgi maxes cpu

Postby mdegive » Tue May 11, 2010 1:31 pm

when I run it from a web browser as I explained, I get error 500, so I thought I would try it from the command line and got the errors above. So I don't know what to do anymore.

I am not a perl expert, all I know is that it's not working! How can you help me?

You can email me direct if you want michel@degive.com
mdegive
 
Posts: 29
Joined: Tue Apr 29, 2008 7:32 am

Re: mail.cgi maxes cpu

Postby mdegive » Mon May 17, 2010 9:09 am

since your fix was not working, I reverted to the original mail.cgi. Then on Friday our hosting company shutdown our account, see below...

>>Your account has been suspended for the sending of large amounts of bulk email, which is a violation of our Terms of Service.

1886 markusle 25 0 52 326:23.05 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
3223 markusle 25 0 50 11:26.86 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
4025 markusle 25 0 50 322:59.64 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
5191 markusle 25 0 50 336:26.53 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
5207 markusle 25 0 48 13:39.47 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
7562 markusle 25 0 48 333:02.70 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
11768 markusle 25 0 48 24:16.48 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
12188 markusle 25 0 48 14:58.76 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
13894 markusle 25 0 48 17:27.71 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
15449 markusle 25 0 48 328:01.67 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
24402 markusle 25 0 48 19:14.92 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
26244 markusle 25 0 48 331:25.96 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi
27873 markusle 25 0 48 18:46.05 0.8 19520 16m 2068 R /usr/bin/perl -McPanelUserConfig mail.cgi <<<

All the emails we send using dadamail is always done with dada bridge, so how could this be that mail.cgi is being used to send spam emails. I don't get this? Can you shed some light on this? Do you have any suggestions?
mdegive
 
Posts: 29
Joined: Tue Apr 29, 2008 7:32 am

Re: mail.cgi maxes cpu

Postby justin » Mon May 17, 2010 12:35 pm

I've put your bug here (the new bug tracker)

http://github.com/justingit/dada-mail/issues/issue/50
User avatar
justin
 
Posts: 5438
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: mail.cgi maxes cpu

Postby justin » Mon May 17, 2010 12:38 pm

Concerning your bug report:

See my post under mdegive in your forum "mail.cgi maxes cpu."

viewtopic.php?t=1999&amp;p=7723

I found out what causing the cpu to go to 100%. "View Archive".

I use Mysql. I can look at the archive table, only has 1100 entries, yet as soon as you hit that menu, it maxes the cpu and the page is never displayed.

I use the latest 4.0 version.


I don't have any idea off the top of my head, since it's not something that's happening to everyone and I'm not personally experiencing it.

Is it something about a specific archive entry?

Are your archives large, with a lot of attachments?

The dadadev list here has almost 2,000 entries:

http://dadamailproject.com/cgi-bin/dada ... t/dadadev/

But the screen comes up very quickly.
User avatar
justin
 
Posts: 5438
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: mail.cgi maxes cpu

Postby mdegive » Mon May 17, 2010 12:52 pm

I would be happy to send you the sql table if you would like. What format?
mdegive
 
Posts: 29
Joined: Tue Apr 29, 2008 7:32 am

Re: mail.cgi maxes cpu

Postby justin » Mon May 17, 2010 1:09 pm

Get in touch:

http://dadamailproject.com/contact

It sounds like you need some actual consultation, if you cannot get this problem solved by yourself, with some help from me,
User avatar
justin
 
Posts: 5438
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Previous

Return to Errors While Running Dada Mail

Who is online

Users browsing this forum: No registered users and 0 guests

Loading