Moodle

Upgrade moodle wiht dbsessions enabled in the old-version of moodle

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.7.1
  • Fix Version/s: None
  • Component/s: Installation
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE

Description

If the users try to upgrade moodle, any in the old-version has dbsessions enabled he can't login and start the upgrade process, because moodle try to create a session on a session2 table, and the old-version don't have this table

Activity

Hide
Martin Dougiamas added a comment -

Petr, can you look at this?

Show
Martin Dougiamas added a comment - Petr, can you look at this?
Hide
Petr Škoda (skodak) added a comment -

Works for me - because there is no need to log in before upgrade.

I've reviewed the docs at http://docs.moodle.org/en/Upgrade and updated it a bit:

---------------------------------------
Finishing the upgrade

The last step is to trigger the upgrade processes within Moodle.
To do this just visit the admin page of your installation e.g. http://example.com/moodle/admin
It doesn't matter if you are logged in as admin or not. If you are upgrading from some older versions you would not be able to login before the upgrade anyway.
Moodle will automatically detect the new version and perform all the database or filesystem upgrades that are necessary. If there is anything it can't do itself (very rare) then you will see messages telling you what you need to do.
Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!

Show
Petr Škoda (skodak) added a comment - Works for me - because there is no need to log in before upgrade. I've reviewed the docs at http://docs.moodle.org/en/Upgrade and updated it a bit: --------------------------------------- Finishing the upgrade The last step is to trigger the upgrade processes within Moodle. To do this just visit the admin page of your installation e.g. http://example.com/moodle/admin It doesn't matter if you are logged in as admin or not. If you are upgrading from some older versions you would not be able to login before the upgrade anyway. Moodle will automatically detect the new version and perform all the database or filesystem upgrades that are necessary. If there is anything it can't do itself (very rare) then you will see messages telling you what you need to do. Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!
Hide
Petr Škoda (skodak) added a comment -

thanks for the report

Show
Petr Škoda (skodak) added a comment - thanks for the report

Dates

  • Created:
    Updated:
    Resolved: