Question Authors' Forum

upgrade from 1.5 beta

 
Picture of Paul Martin
upgrade from 1.5 beta
by Paul Martin - Friday, 15 June 2018, 3:28 AM
 

Hi,

We have a Moodle server (v3.3) using Coderunner 1.5 beta

Any advice on upgrading would be greatly appreciated.

Thanks,

Paul


Picture of Paul Martin
Re: upgrade from 1.5 beta
by Paul Martin - Friday, 15 June 2018, 7:43 AM
 
I got this error when I removed the Coderunner 1.5 beta directories and installed version 3.4.

Perhaps I didn't uninstall 1.5beta completely? 


error

Picture of Richard Lobb
Re: upgrade from 1.5 beta
by Richard Lobb - Friday, 15 June 2018, 9:10 AM
 

Wow, I didn't think there would be any version 1 CodeRunners still live in the wild. I'm not sure whether to be impressed or depressed!

The upgrade is not going to be trivial (as you've just discovered). I hope you're not attempting this upgrade on a production server.

As explained in the documentation, here, you can't upgrade directly to the current version. The upgrade path will need to be something like the following. You should do this on a copy of the server, not the production version.

  1. Build a Jobe server. The ability to run student code on the Moodle server was removed  a couple of years ago.
  2. Replace the code for the specialised question behaviour (qbehaviour_adaptive_adapted_for_coderunner) with the latest version. The behaviour and the question type are now in separate repositories, not bundled into one as before. You get the behaviour from github, here.
  3. Replace the CodeRunner question type subtree (<moodlehome>/question/type/coderunner) with CodeRunner V2.4.2 from github (here). Cross your fingers and invite Moodle (via admin/notifications) to attempt the upgrade to 2.4.
  4. All going well (the cynical side of me says that's unlikely), try upgrading from V2.4.2 to the latest version 3.

It's quite possible that even a two-hop upgrade will not be sufficient, but let's see what happens.

Richard


Picture of Paul Martin
Re: upgrade from 1.5 beta
by Paul Martin - Sunday, 17 June 2018, 9:16 AM
 

Believe or not version 1.5 is still running fine for requirements here.  However, I recently took over as sysadmin and I feel we should at least try to upgrade.  

I have cloned the production server in order to test the upgrade.  I'll follow your instructions and cross my fingers!  

Once again, thanks for your help,  I'll let you know how it goes. 

Paul

Picture of Paul Martin
Re: upgrade from 1.5 beta
by Paul Martin - Thursday, 19 July 2018, 9:07 PM
 
Hi again,


I eventually got to try this.  

Jobe server and qbehaviour_adaptive_adapted_for_coderunner installation/upgrade were successful

However, the coderunner upgrade threw up this error.  Any suggestions?

Thanks


code1.5 beta upgrade error 




Picture of Richard Lobb
Re: upgrade from 1.5 beta
by Richard Lobb - Friday, 20 July 2018, 8:27 AM
 

OK, not a huge surprise that that broke. I think we should take this conversation off the forum since I doubt anyone else is upgrading from 1.5beta. Could you please email me (richard.lobb@canterbury.ac.nz) directly with:

  1. The current plug in version number. You can get this from Site administration > Plugins > Question types > Manage question types.
  2. The current schema (list of column names and types) for the 'quest_coderunner_options' table. You can get this by running the command mysql, e.g.
    mysql -u <yourmysqlrootusername> -p moodle
    <Enter the password for your mysql root user>
    describe mdl_quest_coderunner_options;
    
    or you might be able to get it directly from phpmyadmin if you have that installed.

With that info, I'll see if I can figure out a solution.

Richard