CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • "Site off-line" output when running civimail.cronjob.php via shell / cli
Pages: [1]

Author Topic: "Site off-line" output when running civimail.cronjob.php via shell / cli  (Read 1426 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
"Site off-line" output when running civimail.cronjob.php via shell / cli
December 06, 2011, 06:15:35 pm
Followed the instructions in the wiki to set up the cron job using shell. This is on a multisite install with a settings_location.php in place at CiviCRM root. Drupal 6.22 with CiviCRM 3.4.5.

Same result if I run it from the command line via:

Code: [Select]
nice -n19 /usr/bin/php bin/civimail.cronjob.php -umailsender -pmypass -scivisite.org
I can get the mailings out via URL, but the shell command outputs this:

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/bin/misc/favicon.ico" type="image/x-icon" />
   <title>Site off-line | Drupal</title>
   <link type="text/css" rel="stylesheet" media="all" href="/bin/modules/system/defaults.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/bin/modules/system/system.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/bin/modules/system/system-menus.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/bin/modules/system/maintenance.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/bin/themes/garland/style.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/bin/themes/garland/minnelli/minnelli.css?0" />
<link type="text/css" rel="stylesheet" media="print" href="/bin/themes/garland/print.css?0" />
       <!--[if lt IE 7]>
     <link type="text/css" rel="stylesheet" media="all" href="/bin/themes/garland/fix-ie.css" />    <![endif]-->
 </head>
 <body>

<!-- Layout -->
 <div id="header-region" class="clear-block"></div>

   <div id="wrapper">
   <div id="container" class="clear-block">

     <div id="header">
       <div id="logo-floater">
       <h1><a href="/bin/" title="Drupal"><img src="/bin/themes/garland/minnelli/logo.png" alt="Drupal" id="logo" /><span>Drupal</span></a></h1>        </div>

     </div> <!-- /header -->


     <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
         <h2>Site off-line</h2>                              <div class="clear-block">
           <p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p><hr /><p><small>If you are the maintainer of this site, please check your database settings in the <code>settings.php</code> file and ensure that your hosting provider's database server is running. For more help, see the <a href="http://drupal.org/node/258">handbook</a>, or contact your hosting provider.</small></p>          </div>
         <div id="footer"></div>
     </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->


   </div> <!-- /container -->
 </div>
<!-- /layout -->

 </body>
</html>
« Last Edit: December 06, 2011, 06:39:54 pm by Slovak »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: "Site off-line" output when running civimail.cronjob.php via shell / cli
December 07, 2011, 10:32:36 am
Is the civicrm config under sites/civisite.org ?

Looks like it defaults to default, that might not be configured?

It's put a big die("wrong place"); in the civicrm.settings.php of default to check it's the right file it takes

You might have to put a location_settings file as well in civicrm root if not done already

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: "Site off-line" output when running civimail.cronjob.php via shell / cli
December 07, 2011, 08:38:05 pm
I've already got settings_location.php in my civicrm root directory.

The civicrm.settings.php is in sites/civisite.org

I copied the civicrm.settings.php from sites/civisite.org to sites/default - still getting the same results

Anything additional to try?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: "Site off-line" output when running civimail.cronjob.php via shell / cli
December 07, 2011, 09:54:44 pm
Running dry on ideas.

You should put debug statements and see where it goes.

It vaguely reminds me something, but it was fixed. What version are you running? Could you update? (or backport cli.php)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: "Site off-line" output when running civimail.cronjob.php via shell / cli
December 07, 2011, 10:04:08 pm
Thanks for persisting...

We're on 3.4.5 at the moment - backport cli.php from the latest version?

Would civimail.cronjob.php be the best place for putting debug statements?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: "Site off-line" output when running civimail.cronjob.php via shell / cli
December 08, 2011, 11:48:18 pm
Backport from the latest on 3.4 (not on 4.1, that's a different beast)

Yes, start from civimail.cronjob.php and see where it gets lost. Good luck!

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • "Site off-line" output when running civimail.cronjob.php via shell / cli

This forum was archived on 2017-11-26.