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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • 2.2.beta1 upgrade script throwing errors
Pages: [1]

Author Topic: 2.2.beta1 upgrade script throwing errors  (Read 2283 times)

idmacdonald

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
2.2.beta1 upgrade script throwing errors
February 05, 2009, 04:15:52 am
Hi,

I am trying to upgrade a Drupal CiviCRM install from 2.2.alpha3 to 2.2.beta1. However, when I go to http://mysite.org/civicrm/upgrade?reset=1 I am getting a few errors before any 'Upgrade now' button ever gets rendered.

Code: [Select]
* user warning: Smarty error: problem creating directory '/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB/%%4A' in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1094.
* warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web132:/var/www/share/drupal/web/) in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/internals/core.write_file.php on line 27.
* user warning: Smarty error: problem writing temporary file '/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/wrt498ad1902a6e4' in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1094.
* warning: Smarty::include(/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/4ACAAD27%%success.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1264.
* warning: Smarty::include() [function.include]: Failed opening '/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/4ACAAD27%%success.tpl.php' for inclusion (include_path='.:/var/www/share/drupal/web/drupal-6/sites/mysite.org/modules/civicrm/:/var/www/share/drupal/web/drupal-6/sites/mysite.org/modules/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1264.

Our web server is configured with php_admin_value "upload_tmp_dir" so that temp files are stored in a directory within the web site's FTP directory rather than the global /tmp, which creates lots of potential for security risks. So I can see that open_basedir is not allowing CiviCRM to write to /tmp.

However, if I add /tmp to the open_basedir path as a temporary measure (no pun intended), I still get errors:

Code: [Select]
* warning: Smarty::include(/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/4ACAAD27%%success.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1264.
* warning: Smarty::include() [function.include]: Failed opening '/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/4ACAAD27%%success.tpl.php' for inclusion (include_path='.:/var/www/share/drupal/web/drupal-6/sites/mysite.org/modules/civicrm/:/var/www/share/drupal/web/drupal-6/sites/mysite.org/modules/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /var/www/web132/web/drupal_files/modules/civicrm/packages/Smarty/Smarty.class.php on line 1264.

The double slash in '/var/www/share/drupal/web/drupal-6/sites/mysite.org/files/civicrm/templates_c/en_US/en_GB//%%4A/4AC/4ACAAD27%%success.tpl.php' looks a bit odd to me, though I don't think that in itself should cause any problems.

I don't have CiviCRM in /sites/all/modules but rather in a specific directory under sites. It is nice to be able to use one Drupal core installation for various sites, but I know CiviCRM sometimes has problems with this. I have a settings_location.php file in the civicrm module directory that contains this line, which fixed installer problems in previous releases:

Code: [Select]
define( 'CIVICRM_CONFDIR', '/var/www/share/drupal/web/drupal-6/sites/mysite.org' );
Any suggestions on how to get this working would be appreciated. For the moment I'm going to go back to 2.2.alpha3, I think.

Thanks,
-Ian

idmacdonald

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Re: 2.2.beta1 upgrade script throwing errors
February 05, 2009, 04:21:24 am
I should add that permissions in my templates_c directory are such that everything is writeable by the web server, so I don't think it's a file permissions problem.

 

idmacdonald

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Re: 2.2.beta1 upgrade script throwing errors
February 05, 2009, 05:59:17 am
Aack. I just realised that CiviCRM couldn't create the smarty templates because the web account had hit its disk quota  :-[

Once I increased the quota, the upgrade worked fine.

So sorry, this one was all my fault!

I've successfully upgraded to 2.2.beta1 and will let you all know if I find any other problems or bugs (after investigating whether or now it's some brain-dead mistake that I've made!)

Best wishes,
-Ian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • 2.2.beta1 upgrade script throwing errors

This forum was archived on 2017-11-26.