Problems with cli on upgrade or install moodle 2.2.1

Problems with cli on upgrade or install moodle 2.2.1

by Thorsten Bieser -
Number of replies: 6

Hi,

I was trying to upgrade my existing moodle from 1.9.13+ to 2.2.1 with the cli upgrade.php

The upgrade starts with the following ouptut:

 

 sudo -u <user> php -e -c /srv/www/virtual/00000/webdev1/etc/php.ini upgrade.php   
== Upgrading Moodle database from version 1.9.13+ (Build: 20110811) (2010071001) to 2.2.1+ (Build: 20120202) (2011120501.04) ==

Your Moodle files have been changed, and you are about to automatically
upgrade your server to this version:

 2.2.1+ (BUILD: 20120202) (2011120501.04)

 Once you do this you can not go back again.

 Please note that this process can take a long time.

 Are you sure you want to upgrade this server to this version?
type y (means yes) or n (means no)
: y
-->System

++ Increasing size of user idnumber field, this may take a while... ++

and stops here.!!!

Using the browser I got the message " sites beeing upgraded try again later" and after while  i got the normal upgrade/install information within the browser.

 

When I am trying to use the upgrade.php again I get an "segmentation fault" now.

Same issue by using the install.php from cli on a new moodle installation

I am using a solaris  OS 10 5/08 s10s_u5wos_10 SPARC

with an apache 2.2.21 mysql  5.1.56  and PHP 5.3.8

searching the forums i found nothing about my problem. So if anyone is using moodle on a unix server an works with the cli help would be great.

 

Thanks

Thorsten

 

 

 

Average of ratings: -
In reply to Thorsten Bieser

Re: Problems with cli on upgrade or install moodle 2.2.1

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Are you sure that you can do 1.9 -> 2.2 in one long jump?

http://docs.moodle.org/22/en/Upgrading_to_Moodle_2.2 is not 100% clear on this.

<quote>
You can upgrade to Moodle 2.2 from Moodle 2.1, 2.0 or 1.9. If you are upgrading from 2.0, please also read http://docs.moodle.org/21/en/Upgrading_to_Moodle_2.1. If upgrading form 1.9, please also read that and http://docs.moodle.org/20/en/Upgrading_to_Moodle_2.0.
</quote>
In reply to Visvanath Ratnaweera

Re: Problems with cli on upgrade or install moodle 2.2.1

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

"You can upgrade to Moodle 2.2 from ... 1.9"

That is clear. It is also correct.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Problems with cli on upgrade or install moodle 2.2.1

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Tim,

Thanks for the confirmation. The first sentence in the quote says exactly that. But the following sentences asking to check 2.1 -> 2.2 upgrade, 2.0 -> 2.1 upgrade, etc. make one unsure. Anyway 've submitted the information to the Documentation Dept. http://moodle.org/mod/forum/discuss.php?d=193518#p843413.
In reply to Visvanath Ratnaweera

Re: Problems with cli on upgrade or install moodle 2.2.1

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes. Because any important things that you must consider when upgrading from Moodle 2.0 to 2.1 are also important things that you must consider when you upgrade from 1.9 to 2.2.

So, you need to read all the release notes.

In reply to Tim Hunt

Re: Problems with cli on upgrade or install moodle 2.2.1

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Makes sense.

But the links I was talking about in my first post do no point to release notes but to update instructions!

Since I know the answer now, it dosen't matter to me. I hope the doc-dept will catch it for the benefit of the casual visitor.

Coming back to the original problem, I have no other ideas. "Segmentation fault" points to a severe problem in the system software. Since you're on Solaris, I wouldn't know where to start, other than recompiling the software stack.
sad
In reply to Visvanath Ratnaweera

Re: Problems with cli on upgrade or install moodle 2.2.1

by Thorsten Bieser -

Hallo Visvanath,

thanks for your efforts.

I tried some variations in upgrading or installing with the cli.

The best way actually (but also not working) is with an existing config.php.

The cli options for creating a config.php wont work at all

With an existing config.php you have to use 'install_database.php'

I used the $CFG->upgradeshowsql = true;  for a bit more information

The installation works now  a little better....

it creates 149 tables

and stops here:

INSERT INTO mdl_config_log (userid,timemodified,plugin,name,value,oldvalue) VALUES(?,?,?,?,?,?)
[array (
  0 => 0,
  1 => 1329210107,
  2 => NULL,
  3 => 'formatstringstriptags',
  4 => '1',
  5 => NULL,
also with an segmentation fault.

 

Btw. I agree with your suggestion that it is an OS problem. But I was hoping anyone else ist using Solaris out there....

cheers

Thorsten