Skip to main content

Overview

Upgrading Sakai requires careful planning and execution to minimize downtime and ensure data integrity. This guide covers the complete upgrade process from planning through post-upgrade validation.

Supported Versions

Community Supported Versions

Development Versions

  • Sakai 25.2 - Expected Q2 2026
  • Sakai 23.5 - Expected Q4 2025
  • Sakai 22.6 - Expected Q4 2025
Versions not listed above are no longer supported. Running unsupported versions poses significant security risks.

Pre-Upgrade Planning

Timeline

Review Release Notes

Before upgrading, thoroughly review:
  • Release Notes: New features, bug fixes, and known issues
  • Upgrade Documentation: Version-specific instructions
  • Breaking Changes: API changes, deprecated features
  • Database Changes: Schema migrations, data conversions

Check Dependencies

Java Version Requirements

Tomcat Version Requirements

Database Support

  • MySQL 5.7+ or MariaDB 10.3+
  • Oracle 12c+
  • PostgreSQL 10+
Upgrading Java or Tomcat versions may require additional configuration changes. Test thoroughly in QA environment.

Upgrade Preparation

1. Backup Everything

Create complete backups before starting:

2. Document Current State

Record current system information:

3. Prepare Test Environment

Create a QA environment that mirrors production:

Build New Version

Download Source Code

Apply Custom Code

If you have local customizations:

Build Sakai

Building Sakai from source typically takes 20-40 minutes depending on hardware and whether artifacts are cached.

Upgrade Process

Maintenance Window Checklist

Step-by-Step Upgrade

1. Enable Maintenance Mode

Create maintenance page:

2. Stop Tomcat

3. Backup Current Deployment

4. Deploy New Version

Or deploy manually:

5. Update Configuration

Review and update sakai.properties:

6. Database Conversion

Always test database conversions in QA before running in production. Some conversions can take hours on large databases.
Database conversion scripts are typically in:
Run conversion:
Some Sakai versions include automatic database migrations. Check release notes to determine if manual conversion is required.

7. Clear Caches

8. Set Permissions

9. Start Tomcat

Startup typically takes 2-5 minutes. Watch for:

10. Validate Upgrade

11. Disable Maintenance Mode

Post-Upgrade Tasks

Monitoring

Monitor system closely for 24-48 hours:

Performance Optimization

After upgrade, optimize performance:

User Communication

Rollback Procedure

If critical issues are discovered:
Only rollback if you encounter critical issues that prevent normal operation. Minor issues should be addressed with patches.

Version-Specific Notes

Upgrading to Sakai 25

  • Java 17 Required: Upgrade from Java 11
  • No var keyword: Code using var must be refactored
  • Web Components: New frontend architecture
  • Bootstrap 5.2: UI framework upgrade

Upgrading to Sakai 23

  • Java 11 Required: Upgrade from Java 8
  • Database Character Set: Ensure UTF-8 MB4 support
  • Assignment Conversion: Major changes to assignments

Troubleshooting

Common Issues

Problem: Tomcat fails to start after upgrade Solution: Check logs for missing dependencies or configuration errors:
Problem: Database conversion fails Solution: Check for duplicate data or constraint violations:
Problem: Tools not appearing in sites Solution: Clear tool registration cache:
Problem: Authentication fails after upgrade Solution: Verify authentication provider configuration in sakai.properties

Best Practices

Test First

Always test upgrades in QA environment that mirrors production before upgrading production.

Schedule Wisely

Schedule upgrades during low-usage periods (weekends, breaks) with adequate time buffer.

Keep Current

Stay within 1-2 versions of current release. Large version jumps are riskier.

Document Everything

Document your upgrade process, customizations, and any issues encountered.