Author Topic: autoresume not working  (Read 4245 times)

bposton

  • Posts: 23
    • View Profile
autoresume not working
« on: June 13, 2006, 05:35:34 pm »
Here is my problem:
My host support folks tell me that my php script can run for no longer than 300 seconds. When I send an email out to any size list it always stops mailing after the first 500 emails at which point I manually resume the mailing. This works OK except I have to babysit the mailing.
So - I just upgraded to 1.85 and I added the cronjob to setup autoresume. I setup the autoresume job to check every 15 minutes. I sent an email out to my list and it stopped after the first 500 emails. I logged out and then logged back in and the queue size never changed - even after waiting for 30 minutes or longer.
So I need to know - is the auto resume supposed to work when my host times out my scripts? Is the timeout of my script by my host the real issue? Is the setup of the cronjob correct? I've listed exactly the way the cronjobs (autoresume and dailymail) are setup below (domain and password have been edited for obvious reasons):
crontab -l
*/15 * * * * /usr/bin/wget -O /dev/null -T 0 http://mydomain.com/listmail/resume.php?pw=mypassword 1> /dev/null 2> /dev/null0 0 * * * /usr/bin/wget -O /dev/null -T 0 http://mydomain.com/listmail/dailymail.php?pw=mypassword 1> /dev/null 2> /dev/null

Any help from Dave or other gurus would be appreciated!!
Thanks
Ben

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #1 on: June 14, 2006, 12:51:11 pm »
Hi Ben,
Quote
So I need to know - is the auto resume supposed to work when my host times out my scripts? Is the timeout of my script by my host the real issue? Is the setup of the cronjob correct? I've listed exactly the way the cronjobs (autoresume and dailymail) are setup below (domain and password have been edited for obvious reasons):

Auto-resume should work even with your host's 300 second time limit.  The limit is annoying but not overly (it's better than 30 seconds:).  Your tasks look good...  Are you sure dailymail runs successfully each day?  Do you receive the report?  If so, auto-resume should work too.  

You may want to try an alternative to wget, "curl":
Code: [Select]
0 0 * * * curl -o /dev/null http://mydomain.com/listmail/dailymail.php?pw=mypassword 1> /dev/null 2> /dev/null
If you don't have any followups on live lists you can set the timing to * * * * * temporarily to run dailymail once a minute and see if you receive the dailymail report.

Note that in recent versions the "Do not allow dailymail to be run automatically until 23 hours 55 minutes has elapsed. (Recommended)" option, found on the ListMail "Dailymail" page, should be UNchecked in order to be able to continually run the test.

Regards,

Dean
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

bposton

  • Posts: 23
    • View Profile
autoresume not working
« Reply #2 on: June 16, 2006, 08:51:45 am »
Thanks Dean
Acutally, I've never received a dailymail report except for one that I got the morning after I created the dailymail cronjob.
Instead of doing your test, I went and ran dailymail manually and I did get a report.
So I'm not sure why I don't get a dailymail report. If I remember wasn't there an issue with dailymail not creating a report if it timed out because of my host's time limit?
Anyway, it appears that dailymail will run if I do it manually so I might try to test it as you described. However, I'm a little confused about the Dailymail option to uncheck that you mentioned. On my dailymail page I see the note that dailymail will not run until 23
But the only checkbox I see is labeled:
"Update last execution time. I understand that dailymail may not run at the next scheduled execution"
Is this the checkbox that is supposed to be unchecked for my test of dailymail running every minute?

Thanks again Dean!
Ben

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #3 on: June 16, 2006, 05:44:57 pm »
One of the keys to getting auto-resume working is the same as will get dailymail working - we need to figure out how to set up working 'web-page-grabbing' cron tasks on your server.
Quote
If I remember wasn't there an issue with dailymail not creating a report if it timed out because of my host's time limit?

Yes, this was an issue until v1.86 where the report is now saved until the mailing is completed, even if by resuming.
Quote
Is this the checkbox that is supposed to be unchecked for my test of dailymail running every minute?

No, that checkbox won't help.  What you'll need to do is upgrade to v1.86 where the following option is now available on the dailymail page:
Quote
- added ability to disable new dailymail 'once every 23h55m' protection

Please let me know if I can be of further assistance!

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

bposton

  • Posts: 23
    • View Profile
autoresume not working
« Reply #4 on: June 20, 2006, 07:07:19 pm »
Thanks Dean
I assume that trying the "curl" method is one way to see if we can get working 'web-page-grabbing' cron tasks on the server?
If so I'll probably upgrade to 1.86 this weekend and change over to CURL.
If that doesn't work, can I create a paid support request?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #5 on: June 20, 2006, 11:10:49 pm »
Yes, curl is a popular and often available alternative to wget.  Something like this might work:
Code: [Select]
0 0 * * * curl -o /dev/null http://example.com/mail/dailymail.php?pw=YourDailyMailPass 1> /dev/null 2> /dev/null
Quote
If that doesn't work, can I create a paid support request?

Yes, of course :D - I'm there if you need me.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

don1

  • Posts: 85
    • View Profile
autoresume not working
« Reply #6 on: July 06, 2006, 10:20:27 am »
Dean,

I have been trying many different ways to get the resume.php (auto-resume) to work.  My "Dailymail" works fine and has been working fine for a long time.  I use the same command line as dailymail except replace the dailymail.php with resume.php...shouldn't this work?

What can I try to make things work.  I have to manually resume about every 50-100 emails and I don't know why...luckily I have a small email list.

Thanks for any suggestions.

~Don

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #7 on: July 07, 2006, 03:43:05 am »
Don,

Yes, you're right it should work with the same commandline as dailymail except replacing dailymail.php with resume.php.  Of course the timing will be different, every half hour is */30 * * * *.

You're a big contributor around here - why don't you let me take a look at it?  Submit your info

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

don1

  • Posts: 85
    • View Profile
autoresume not working
« Reply #8 on: July 09, 2006, 04:51:36 pm »
Dean,

I submitted my info, have you had a chance to take a look?

Thanks,

~Don

bposton

  • Posts: 23
    • View Profile
autoresume not working
« Reply #9 on: July 12, 2006, 10:37:49 am »
Dean,
I upgraded to 1.86b and updated the cron jobs to curl as you suggested. But I'm still not getting dailymail reports nor do I see the auto resume working. Here is the cronjob details:
*/15 * * * * curl -o /dev/null http://XXXXXXXX.com/listmail/resume.php?pw=XXXXX 1> /dev/null 2> /dev/null0 0 * * * curl -o /dev/null http://XXXXXXXXX.com/listmail/dailymail.php?pw=XXXXXX 1> /dev/null 2> /dev/null

Looks like I need to bring in the big guns (you) to take a look. Let me know if you agree and I'll setup a paid support request.

Thanks
Ben

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #10 on: July 12, 2006, 02:06:23 pm »
bp, feel free to request support.

Don - this is next on my to-do list you'll hear back via email or support ticket soon.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

BGSWebDesign

  • Posts: 625
    • View Profile
    • http://www.bgswebdesign.com
autoresume not working
« Reply #11 on: July 14, 2006, 10:20:26 am »
Hi DW,

Regarding autoresume, this number you have such as:
Quote
every half hour is */30 * * * *.


I'm finding this is severely slowing my mailings, is there any problems with changing this to every 2 minutes, or at worst every 3 minutes?

Right now I'm at every 5 minutes, but it's hitting so many bad emails it's slowing things down quite a bit.
Thanks,
-Brett
http://www.bgswebdesign.com/Contact-Us.php

*** I do custom List Mail Pro installations ***
Contact me through my website (above)

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #12 on: July 14, 2006, 10:56:30 am »
Please login and view your support ticket, Don.  Thanks, DW
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

bposton

  • Posts: 23
    • View Profile
autoresume not working
« Reply #13 on: July 27, 2006, 01:59:21 pm »
Dean
I placed a tech order today for you to look at my setup and get autoresume / dailymail working correctly.
However I got an error at your site once the payment went through
I have the invoice details from 2checkout.com. but I'm not sure if I should put them in the forum for security reasons. Here is the order idbelow:

ListMailPRO Order ID: 182632a8cbfde9d0943cc87cdd6a1751
where do I find the support ticket for this?

Thanks
Ben

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
autoresume not working
« Reply #14 on: July 27, 2006, 03:31:37 pm »
The reason for the error is 2CheckOut has a very strict fraud checking system.  Unless the order passes right away there is an error.  I'm going to have to fix the process to be less-confusing.  I'm checking into your request now.  At first glance I see you may be using 1&1 shared hosting, which unfortunately (in my experience) is not 100% compatible with ListMail.  I'll see what I can do and let you know.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting