Forums | Mahara Community
Support
/
Installation failed to upgrade
28 March 2013, 20:38
Hi Iam trying to install Mahara 1.6.2 which I downloaded from mahara.org but I get the error failed to upgrade when mahara trying to install the component or plugin notification.emaildigest.
Platform
Linux hosted3.ccf.auth.gr 2.6.32-45-server #102-Ubuntu SMP Wed Jan 2 22:53:00 UTC 2013 x86_64
PHP
PHP Version 5.3.2-1ubuntu4.19
The log file of apachie server don't have any usefull information
Nikos Pournaras
01 April 2013, 18:08
Hello Nikos,
Do yu run into the same problem when you use Mahara 1.6.3, which is the latest stable release? From which version are you trying to upgrade?
Cheers
Kristina
01 April 2013, 19:23
I am not trying to upgrade but I am doing a fresh installation
I try to install mahara 1.6.2., 1.4.6, 1.6.3
The installation stop with the same message
Nikos
02 April 2013, 10:09
Hi Nikos,
"notification.emaildigest" is a strange one to error out in, because the only thing it does during installation is create a single database table, called "notification_emaildigest_queue". Perhaps that is failing for some reason, in which case you should see some SQL error messages in your Apache error log.
You can also try adding this to your config.php file, which will cause errors to be printed to the web page:
// closing php tag intentionally omitted to prevent whitespace issues
$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;
$cfg->perftofoot = true;
Other things to consider:
- Are you installing into a new, empty database?
- Are you using postgres, or mysql? And what version?
For the record, I was successfully able to do an install of Mahara 1.6.3 on Postgres 9.1.8 and MySQL 5.1.67 just now. :)
Cheers,
Aaron
02 April 2013, 23:01
First of all I want to thank you for your quick reply
I am installing mahara in a new empty Database
Iam using mySql 5.1.67, ubuntu 10.04.1
It is the Server of our univercity "Aristotle Univercity of Thessaloniki"
The url address of the mahara installation is
http://didanured.web.auth.gr/mahara/
03 April 2013, 11:39
Hi Nikos,
Did you see any additional error messages on the install page, after adding the logging settings to your config.php and doing a clean install?
I've never encountered this particular problem before, and without seeing an error message it's hard to say what might be causing it. The only thing the emaildigest plugin does during installation is create one database table (described in the file notification/emaildigest/db/install.xml). My wild guess is that some peculiar setting in your MySQL setup is causing that table's creation to fail. I was hoping that by turning on the display of error messages to the page, we'd see the exact SQL error message.
If you can't determine what's causing the problem, one workaround is that you could remove the emaildigest plugin, by deleting the "notification/emaildigest" directory. The only side effect to this is that when users go to their notification settings, they wouldn't have the "email digest" setting available (instead they'd have only "email" and "inbox").
Cheers,
Aaron
04 April 2013, 21:05
Hi Aaron
I create a new virtual web site and try to install mahara 1.6.3.
Now I get the same error failed to upgrade but I get some extra errors as you see below
- log_message("Unable to read language directory lang/", 8, true, true) at /var/www/vhosts/lexigramma.web.auth.gr/httpdocs/mahara/lib/errors.php:109
- log_warn("Unable to read language directory lang/") at /var/www/vhosts/lexigramma.web.auth.gr/httpdocs/mahara/lib/mahara.php:563
- get_languages() at /var/www/vhosts/lexigramma.web.auth.gr/httpdocs/mahara/lib/web.php:3572
- language_select_form() at /var/www/vhosts/lexigramma.web.auth.gr/httpdocs/mahara/lib/web.php:478
- smarty() at /var/www/vhosts/lexigramma.web.auth.gr/httpdocs/mahara/admin/index.php:50
php_value session.entropy_length 16
php_value post_max_size 1073741824
php_value max_execution_time 120
php_value register_globals off
php_value magic_quotes_runtime off
php_value magic_quotes_sybase off
php_flag magic_quotes_gpc off
php_value log_errors on
php_value allow_call_time_pass_reference off
05 April 2013, 7:27
Hello Aaron
Finaly I managed to Install Mahara 1.6.3 after realy hard work
I install Wamp Server 32bit (after a lot of trying) on windows 7 computer, end then I migrate the installation to where I wanted to be.
Thank you for you support
Best regards
Nikos Pournaras
05 April 2013, 9:48
Hi Nikos,
I'm glad to hear you got it working. Your earlier error message "Unable to read language directory" sounds like it may have been due to file permissions on your Mahara root directory, or on your $cfg->dataroot directory. But it sounds like you've bypassed that problem.
Cheers,
Aaron