Updating Allegra#
This chapter describes how to update Allegra when installed using the ZIP package method
on Windows systems. The update process is straightforward and involves replacing the
allegra.jar file with a newer version.
Attention
CRITICAL: Always create backups before updating!
Before performing any update, you must backup:
The database - Perform a full database backup
ALLEGRA_HOME directory - Backup all files in your Allegra home directory
This ensures you can recover your data if any issues occur during the update process.
Understanding the Update Process#
What Gets Updated#
When updating Allegra, you are essentially replacing a single file:
bin\allegra.jar- The main Allegra application JAR file
What remains unchanged:
conf\application.properties- Your configuration settingsALLEGRA_HOMEdirectory - All your data (attachments, templates, indices)Database - All your issue tracking data
allegra.ps1andallegra.bat- Management scripts (updated separately)
How Updates Work#
Allegra updates follow a simple principle:
The new
allegra.jarcontains updated application codeWhen started, Allegra automatically detects the database schema version
If needed, Allegra applies database schema migrations automatically
Your configuration and data remain intact
This makes updates straightforward, but also emphasizes the importance of backups, as database schema changes are typically irreversible without restoring from backup.
Pre-Update Checklist#
Before starting the update process, complete this checklist:
Required Steps#
☐ 1. Backup the Database
Create a complete backup of your Allegra database. The method depends on your database system:
PostgreSQL:
pg_dump -U allegra_user -h localhost allegra > allegra_backup_YYYYMMDD.sqlMySQL/MariaDB:
mysqldump -u allegra_user -p allegra > allegra_backup_YYYYMMDD.sqlMicrosoft SQL Server:
BACKUP DATABASE allegra TO DISK = 'C:\Backups\allegra_backup_YYYYMMDD.bak' WITH FORMAT;Oracle:
Use Oracle Data Pump or RMAN to create a backup.
☐ 2. Backup ALLEGRA_HOME
Create a complete copy of your Allegra home directory:
robocopy "C:\allegra-data" "C:\backups\allegra-data_YYYYMMDD" /E /COPY:DATOr using Windows Explorer:
Navigate to the parent folder of ALLEGRA_HOME
Right-click on the ALLEGRA_HOME folder
Select “Copy”
Paste in your backup location
Rename to include the date (e.g.,
allegra-data_20250104)
☐ 3. Verify Backup Integrity
Ensure your backups are complete:
Check database backup file size is reasonable (not empty)
Verify ALLEGRA_HOME backup contains all subdirectories
Test database backup restoration on a test system (recommended for production)
☐ 4. Note Current Version
Record your current Allegra version for reference:
allegra.bat versionExample output:
Allegra version is 9.0.0b58
☐ 5. Check Available Disk Space
Ensure you have sufficient disk space:
At least 500 MB free in the Allegra installation directory
Sufficient space for database growth during migration
☐ 6. Review Release Notes
Visit the Allegra website and review the release notes for the version you’re updating to. Pay special attention to:
Breaking changes
New configuration requirements
Database migration notes
Known issues
Recommended Steps#
☐ 7. Schedule Maintenance Window
For production systems:
Notify users of planned downtime
Choose a low-usage time period
Allow extra time for unexpected issues
☐ 8. Test in Staging Environment
If you have a staging/test environment:
Restore production backup to staging
Perform the update on staging first
Verify everything works correctly
Document any issues or special steps required
Automatic Update Using allegra.bat#
The allegra.bat update command provides an automated update process that handles
most steps for you.
Step 1: Check for Updates#
First, check if updates are available:
allegra.bat version
This displays your current version. Compare with the latest version available on the Allegra website: https://alltena.com
Step 2: Run the Update Command#
Execute the update command:
allegra.bat update
The update process will:
Check script version - Warns if your management script is outdated
Check current version - Reads version from your installed JAR
Fetch latest version - Downloads version information from the server
Compare versions - Determines if an update is available
Prompt for backup confirmation - Reminds you to backup
Download new version - Downloads the new
allegra.jarStop Allegra - Automatically stops the running instance
Replace JAR file - Updates
bin\allegra.jarKeep versioned backup - Saves the old JAR as
bin\allegra-XXXbYY.jar
Example Update Session#
C:\allegra> allegra.bat update
Checking for Allegra updates...
Checking script version...
Current installed version: 9.0.0 build 58
Latest version available: 9.0.0 build 59
Before updating Allegra make sure you have a database or instance level backup,
do you want to continue?
(y/n): y
You will install Allegra version 9.0.0 build 59
Do you want to download this version? (y/n): y
Stopping Allegra before update...
Stopping Allegra application (found 1 process(es))...
Stopping process 12345...
Process 12345 stopped successfully.
Allegra stopped.
Downloading allegra-900b59.jar...
Successfully downloaded allegra-900b59.jar
Updated bin\allegra.jar
Application was updated successfully!
Now you can start it by running: allegra.bat start
Step 3: Start Updated Allegra#
After the update completes, start Allegra:
allegra.bat start
Step 4: Monitor Startup#
Watch the startup log for any errors:
type allegra-startup.log
Or monitor in real-time using PowerShell:
Get-Content allegra-startup.log -Wait
Step 5: Verify Update#
Once Allegra has started (wait 1-2 minutes), verify:
Check version:
allegra.bat version
Access web interface:
Open your browser and navigate to: http://localhost:8080
Verify login:
Log in with your credentials
Check functionality:
Browse existing issues
Open a project
Check that attachments are accessible
Verify custom fields display correctly
Review application logs:
Check
ALLEGRA_HOME\log\allegra.logfor any errors or warnings
Manual Update Process#
If you prefer to update manually or if the automatic update fails, you can perform the update manually.
Step 1: Download New Version#
Download the latest allegra.jar from:
https://alltena.com/downloads/90x/
The file will be named something like: allegra-900b59.jar
Save it to a temporary location, such as: C:\temp\allegra-900b59.jar
Step 2: Stop Allegra#
Stop the running Allegra instance:
cd C:\allegra
allegra.bat stop
Verify it has stopped:
allegra.bat status
You should see: Allegra is not running
Step 3: Backup Current JAR#
Create a backup of your current JAR file:
copy bin\allegra.jar bin\allegra.jar.backup
Or rename it with version number:
move bin\allegra.jar bin\allegra-900b58.jar
Step 4: Replace JAR File#
Copy the new JAR file to the bin directory:
copy C:\temp\allegra-900b59.jar bin\allegra.jar
Verify the file was copied:
dir bin\allegra.jar
Step 5: Start Allegra#
Start Allegra with the new version:
allegra.bat start
Step 6: Monitor and Verify#
Follow the same monitoring and verification steps as described in the automatic update section above.
Updating the Management Script#
The allegra.ps1 management script may also receive updates with new features,
bug fixes, and improvements.
Checking for Script Updates#
Check if a script update is available:
allegra.bat check-script-updates
Example output:
Checking for script updates...
Script update available!
Current checksum: abc123def456...
Available checksum: def789ghi012...
There is an update for the script. Please download the latest version.
Updating the Script#
To update the script automatically:
allegra.bat update-script
The process will:
Download the latest script checksum from the server
Compare with your current script version
Prompt for confirmation
Download the new script
Verify the downloaded script checksum
Create a backup (
allegra.ps1.backup)Replace the script with the new version
Example output:
Checking for script updates...
Script update available!
Current checksum: abc123...
Available checksum: def456...
Do you want to update the script? (y/n): y
Downloading updated script...
Created backup: allegra.ps1.backup
Script updated successfully!
New checksum: def456...
Please run the script again to use the updated version.
Note
Script updates do not require stopping Allegra. The script is only used to manage Allegra, not to run it. You can update the script while Allegra is running.
Manual Script Update#
If automatic script update fails, you can update manually:
Download the latest script from: https://alltena.com/downloads/90x/allegra.ps1
Stop Allegra (if running)
Backup current script:
copy allegra.ps1 allegra.ps1.backupReplace with new script:
copy C:\temp\allegra.ps1 allegra.ps1Start Allegra (if it was running)
Rolling Back an Update#
If you encounter issues after updating, you can roll back to the previous version.
Rolling Back the Application#
If you kept the old JAR file (automatic updates do this):
Stop Allegra:
allegra.bat stop
Restore previous JAR:
copy bin\allegra-900b58.jar bin\allegra.jarOr if you created a backup:
copy bin\allegra.jar.backup bin\allegra.jarStart Allegra:
allegra.bat start
Warning
Database Schema Considerations
If the new version applied database schema changes, rolling back the application JAR alone may not be sufficient. You may also need to restore the database backup.
Database migrations are typically forward-only and cannot be automatically reversed.
Restoring from Complete Backup#
If rolling back the JAR file is not sufficient:
Stop Allegra:
allegra.bat stop
Restore database backup:
PostgreSQL:
dropdb -U postgres allegra createdb -U postgres allegra psql -U postgres allegra < allegra_backup_20250104.sql
MySQL/MariaDB:
mysql -u root -p -e "DROP DATABASE allegra; CREATE DATABASE allegra;" mysql -u root -p allegra < allegra_backup_20250104.sql
Microsoft SQL Server:
RESTORE DATABASE allegra FROM DISK = 'C:\Backups\allegra_backup_20250104.bak' WITH REPLACE;
Restore ALLEGRA_HOME:
robocopy "C:\backups\allegra-data_20250104" "C:\allegra-data" /E /COPY:DAT
Restore previous JAR:
copy bin\allegra-900b58.jar bin\allegra.jarStart Allegra:
allegra.bat start
Verify restoration:
Check version:
allegra.bat versionAccess web interface
Verify your data is intact
Troubleshooting Update Issues#
Update Command Shows “Already Up to Date”#
If you believe an update should be available but the update command says you’re already up to date:
Check version manually:
allegra.bat version
Visit the website:
Check https://alltena.com for the latest version number
Clear download cache:
The version information is cached. Wait a few hours or manually download the latest JAR file.
Download Fails#
If the automatic download fails:
Check internet connectivity
Verify firewall settings
Try manual update (see Manual Update Process above)
Check download URL is accessible: https://alltena.com/downloads/90x/
Allegra Won’t Start After Update#
If Allegra fails to start after updating:
Check startup log:
type allegra-startup.logCheck application log:
Review
ALLEGRA_HOME\log\allegra.logCommon issues:
Database connection errors - Verify database is running
Schema migration errors - Check logs for SQL errors
Insufficient memory - Increase memory allocation
Port conflicts - Ensure port 8080 is available
If errors persist, roll back to the previous version
Database Migration Fails#
If database schema migration fails during startup:
Check database logs for errors
Verify database user permissions - Must have DDL rights
Check database disk space - Ensure sufficient space
Review error in allegra.log for specific SQL errors
If migration fails completely:
Stop Allegra
Restore database backup
Restore previous JAR file
Contact Allegra support
Performance Degradation After Update#
If Allegra runs slower after updating:
Clear browser cache - Old cached JavaScript may conflict
Check memory allocation:
allegra.bat show-config
Review system resources - CPU, memory, disk I/O
Check database performance - Index maintenance may be needed
Review release notes - Check for known performance issues
Best Practices#
Regular Update Schedule#
Check for updates monthly - Run
allegra.bat updatemonthlySubscribe to announcements - Stay informed about security updates
Plan major updates - Schedule major version updates during low-usage periods
Testing Updates#
Use staging environment - Test updates on staging before production
Document custom configurations - Note any customizations that need testing
Verify integrations - Test external integrations after updating
Backup Strategy#
Automated backups - Set up automated database backups
Backup retention - Keep at least 7 days of backups
Test restorations - Regularly verify backups can be restored
Off-site backups - Store backups in a separate location
Documentation#
Maintain update log - Document when updates are performed
Record issues - Note any problems encountered
Version tracking - Keep track of which versions were used when
Version Compatibility#
Check compatibility - Verify plugin compatibility before updating
Review deprecations - Check for deprecated features you use
API changes - Review API changes if using REST API
Browser support - Verify supported browser versions
Security Updates#
Critical Security Updates#
Some updates address critical security vulnerabilities. These updates should be applied as soon as possible.
Security updates are announced on:
Allegra website: https://alltena.com
Email notifications (if subscribed)
Security mailing list
Priority Update Process#
For critical security updates:
Review security advisory - Understand the vulnerability
Assess your exposure - Determine if your instance is affected
Create emergency backup - Quick backup before update
Apply update immediately - Don’t wait for regular update schedule
Verify patch applied - Check version and test vulnerability is fixed
Notify users - Inform users that security update was applied
Summary Checklist#
Before Every Update#
☐ Backup database completely ☐ Backup ALLEGRA_HOME directory ☐ Note current version ☐ Review release notes ☐ Check available disk space
Performing Update#
☐ Run allegra.bat update (automatic)
☐ Or manually replace bin\allegra.jar
☐ Verify new JAR file is in place
☐ Start Allegra
After Update#
☐ Monitor startup logs ☐ Verify version number ☐ Test web interface login ☐ Check basic functionality ☐ Review application logs ☐ Notify users system is back online
If Problems Occur#
☐ Review error logs ☐ Check troubleshooting section ☐ Attempt rollback if necessary ☐ Restore from backup if needed ☐ Contact support if unresolved
Getting Help#
If you encounter issues during the update process:
Review documentation - Check this guide and troubleshooting sections
Check application logs -
allegra-startup.logandALLEGRA_HOME\log\Visit support forum - Community support at https://alltena.com/forum
Contact support - Email support@alltena.com with:
Current Allegra version
Target update version
Error messages from logs
Steps that led to the issue
Your configuration (sanitize passwords)
Emergency support - For critical production issues, contact your support contract