Debug send-campaigns command.

Discussion in 'Tips and tricks' started by twisted1919, May 18, 2015.

  1. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,287
    Likes Received:
    2,389
    If using the regular sending method and the delivery speed seems too slow, then you can easily run the send-campaigns command in verbose mode to find out where your bottleneck is (you'll need ssh access to your server).

    In order to run this command in verbose mode, from command line you should run it as:
    Code:
    /usr/bin/php-cli -q /the/path/to/apps/console/console.php send-campaigns --verbose=1
    
    Once you do this, you will see a lot of information on your screen about the sending process that will help you determine what the actual issue is.
     
  2. Paxful

    Paxful New Member

    Joined:
    Jun 25, 2015
    Messages:
    4
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    that sends out the mail. the problem is that the cron do not fire

    nano /etc/crontab

    # Campaigns sender, runs each minute.
    * * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php send-campaigns >/dev/null 2>&1

    sudo service cron start
    start: Job is already running: cron


    cron is running, path is correct, yet it does not send..

    please advise
     
  3. Paxful

    Paxful New Member

    Joined:
    Jun 25, 2015
    Messages:
    4
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    ok, mailwizz works. so this is just a cron issue, will handle it from here.
    is there anyway u can use web cron ?
     
  4. Paxful

    Paxful New Member

    Joined:
    Jun 25, 2015
    Messages:
    4
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    these are my cron jobs in misc - cron list..

    Campaigns sender, runs each minute. * * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php send-campaigns >/dev/null 2>&1
    Transactional email sender, runs once at 2 minutes. */2 * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php send-transactional-emails >/dev/null 2>&1
    Bounce handler, runs once at 10 minutes. */10 * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php bounce-handler >/dev/null 2>&1
    Feedback loop handler, runs once at 20 minutes. */20 * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
    Delivery/Bounce processor, runs once at 3 minutes. */3 * * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
    Daily cleaner, runs once a day. 0 0 * * * /usr/bin/php5 -q /home/forge/corporal.paxful.com/public/apps/console/console.php daily >/dev/null 2>&1


    seems to be fine.. no idea why it is broken.
     
  5. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,287
    Likes Received:
    2,389
    @Paxful - Could be a permission issue ?
     

Share This Page