Forums | Mahara Community

Support /
Failed upgrade


Ben Yardy's profile picture
Posts: 12

16 July 2015, 23:35

Hi people just tried to do the incremental upgrade to the latest version

Copied newfiles over old

The site loads

http://myschoolteacher.com.au/

but needs to do the db upgrade when I attempted to run db upgrade.

http://myschoolteacher.com.au/admin/upgrade.php

I get 

A nonrecoverable error occurred. This probably means you have encountered a bug in the system

I get the following errors

$cfg->log_dbg_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_info_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_warn_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

Errors from http://myschoolteacher.com.au/admin/

[WAR] f1 (lib/errors.php:459) An exception was thrown of class Dwoo_Exception. 
THIS IS BAD and should be changed to something extending MaharaException,
unless the exception is from a third party library.
Original trace follows
[WAR] f1 (lib/dwoo/dwoo/Dwoo/Core.php:698) The compile directory must be writable, chmod "/home/myschool/maharadata/dwoo/compile/default/" to make it writable
Call stack (most recent first):
Dwoo_Core->setCompileDir("/home/myschool/maharadata/dwoo/compile/default") at /home/myschool/public_html/lib/dwoo/dwoo/Dwoo/Core.php:266
Dwoo_Core->__construct("/home/myschool/maharadata/dwoo/compile/default", "/home/myschool/maharadata/dwoo/cache/default") at /home/myschool/public_html/lib/dwoo/mahara/Dwoo_Mahara.php:55
Dwoo_Mahara->__construct() at /home/myschool/public_html/lib/web.php:19
smarty_core() at /home/myschool/public_html/lib/web.php:67
smarty() at /home/myschool/public_html/admin/upgrade.php:32
[WAR] f1 (lib/errors.php:585) Exception thrown by smarty call while handling exception
Call stack (most recent first):
log_message("Exception thrown by smarty call while handling exc...", 8, true, true) at /home/myschool/public_html/lib/errors.php:97
log_warn("Exception thrown by smarty call while handling exc...") at /home/myschool/public_html/lib/errors.php:585
MaharaException->handle_exception() at /home/myschool/public_html/lib/errors.php:467
exception(object(Dwoo_Exception)) at Unknown:0
[WAR] 27 (lib/errors.php:459) An exception was thrown of class Dwoo_Exception. 
THIS IS BAD and should be changed to something extending MaharaException,
unless the exception is from a third party library.
Original trace follows
[WAR] 27 (lib/dwoo/dwoo/Dwoo/Core.php:698) The compile directory must be writable, chmod "/home/myschool/maharadata/dwoo/compile/default/" to make it writable
Call stack (most recent first):
Dwoo_Core->setCompileDir("/home/myschool/maharadata/dwoo/compile/default") at /home/myschool/public_html/lib/dwoo/dwoo/Dwoo/Core.php:266
Dwoo_Core->__construct("/home/myschool/maharadata/dwoo/compile/default", "/home/myschool/maharadata/dwoo/cache/default") at /home/myschool/public_html/lib/dwoo/mahara/Dwoo_Mahara.php:55
Dwoo_Mahara->__construct() at /home/myschool/public_html/lib/web.php:19
smarty_core() at /home/myschool/public_html/lib/web.php:67
smarty() at /home/myschool/public_html/admin/upgrade.php:32
[WAR] 27 (lib/errors.php:585) Exception thrown by smarty call while handling exception
Call stack (most recent first):
log_message("Exception thrown by smarty call while handling exc...", 8, true, true) at /home/myschool/public_html/lib/errors.php:97
log_warn("Exception thrown by smarty call while handling exc...") at /home/myschool/public_html/lib/errors.php:585
MaharaException->handle_exception() at /home/myschool/public_html/lib/errors.php:467
exception(object(Dwoo_Exception)) at Unknown:0
[WAR] 53 (lib/errors.php:459) An exception was thrown of class Dwoo_Exception. 
THIS IS BAD and should be changed to something extending MaharaException,
unless the exception is from a third party library.
Original trace follows
[WAR] 53 (lib/dwoo/dwoo/Dwoo/Core.php:698) The compile directory must be writable, chmod "/home/myschool/maharadata/dwoo/compile/default/" to make it writable
Call stack (most recent first):
Dwoo_Core->setCompileDir("/home/myschool/maharadata/dwoo/compile/default") at /home/myschool/public_html/lib/dwoo/dwoo/Dwoo/Core.php:266
Dwoo_Core->__construct("/home/myschool/maharadata/dwoo/compile/default", "/home/myschool/maharadata/dwoo/cache/default") at /home/myschool/public_html/lib/dwoo/mahara/Dwoo_Mahara.php:55
Dwoo_Mahara->__construct() at /home/myschool/public_html/lib/web.php:19
smarty_core() at /home/myschool/public_html/lib/web.php:67
smarty() at /home/myschool/public_html/admin/upgrade.php:32
[WAR] 53 (lib/errors.php:585) Exception thrown by smarty call while handling exception
Call stack (most recent first):
log_message("Exception thrown by smarty call while handling exc...", 8, true, true) at /home/myschool/public_html/lib/errors.php:97
log_warn("Exception thrown by smarty call while handling exc...") at /home/myschool/public_html/lib/errors.php:585
MaharaException->handle_exception() at /home/myschool/public_html/lib/errors.php:467
exception(object(Dwoo_Exception)) at Unknown:0

 

Any ideas?

Ben Yardy's profile picture
Posts: 12

16 July 2015, 23:36

Just rereading is it as simple as the compile dir is not writable?

If so where is the compile dir :)

 

Ben Yardy's profile picture
Posts: 12

17 July 2015, 0:06

fixed it :)

There were some dirs and files in the maharadata/dwoo/compile that were nobody:nobody....

Not sure how this occured but fixed them all and upgrade done !! 

Robert Lyon's profile picture
Posts: 773

17 July 2015, 15:18

Hi Ben,

Good to hear you were able to sort out your problem.

Another option you could have taken was to delete the compile directory completely if the parent directory was writable by the web server (eg www-data) as the compile directory would be recreated/ repopulated as users browsed the site.

4 results