Best practice forum (Archived)

Totara 2.2

 
BoonMarcus
Totara 2.2
BoonMarcus 发表于 2012年08月30日 Thursday 23:02
小组 Partners

Hi,

I'm not sure if this has already been mentioned or if it has been brought up already (I tried doing a search beforehand on the forums but it came up blank) but you are not able to do a fresh install of Totara 2.2. I tried setting one up just to test and it just sat there with a "Database can't be read" error and in the error logs it said something about mdl_config not existing.

I was able to create an empty Totara 1.1 instance and then upgrading to Totara 2.2 though. Just thought people might like to know.

Marcus

??
Re: Totara 2.2
?? 发表于 2012年08月30日 Thursday 23:38
 

You need to install the 2.2 code in a fresh folder with none of the old 1.1 codebase present, and make sure your config.php in the new folder is actually pointing to an empty database, where the account specified in config.php as $CFG->dbuser and $CFG->dbpass has create and update permissions to the database .

It sounds like your config.php in the instance you are trying to install is pointing to the wrong database, or has some other syntax errors in the database connection lines.

BoonMarcus
Re: Totara 2.2
BoonMarcus 发表于 2012年08月30日 Thursday 23:50
小组 Partners

Hi Ciaran,

Yes thats exactly what I did. I created an empty database, then copied the config-dist.php, renamed it config.php and filled in the database details. That failed. Then I used Totara 1.1 to do the fresh install and that worked. I used the same config.php file in both instances, changing things like pgsql (2.2) to postgres7 (1.1) and setting $CFG->dirroot since the 2.2 didn't have that. And it worked. I then switched back to the 2.2 version and pointed it at the same database reverting the changes to the config.php and it upgraded fine.

Marcus

??
Re: Totara 2.2
?? 发表于 2012年08月31日 Friday 00:47
 

I'm unsure where you are going wrong here, because I do fresh installs a couple of times a day on postgres, mysql and mssql and never had a problem.

The database section of my postgres 2.2 config looks like this:

$CFG->dbtype    = 'pgsql';   
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'totara220';
$CFG->dbuser    = 'moodle';
$CFG->dbpass    = 'moodle';

The user being used to connect should be the owner of the empty database. Could you add a screenshot of the error you get when you try to do a fresh 2.2 install to an empty database?

You are right that the 2.2 config-dist is missing the $CFG->dirroot  setting though, we'll fix that for the next release.

CogginsSimon
Re: Totara 2.2
CogginsSimon 发表于 2012年09月2日 Sunday 17:14
小组 Totara

I'm not sure why it's only happening in some cases, but we have a fix for it and will get it in the next release (2.2.3 due out this wednesday).

Simon

EganKyle
Re: Totara 2.2
EganKyle 发表于 2012年09月2日 Sunday 18:45
 

Hi Simon,

When is 2.2.4 due to be released. woulden't it have made sense to jump to the latest release of that version? i.e. go from 2.2.1 to 2.2.4.

Regards,

KE 

CogginsSimon
Re: Totara 2.2
CogginsSimon 发表于 2012年09月2日 Sunday 19:10
小组 Totara

Hi Kyle,

The Totara version numbers are independent of the Moodle ones - all of the Totara 2.2.x releases are already based on Moodle 2.2.4. We only mirror moodle when it comes to major version numbers.

Simon