Obelisk
EN
Chapter 39 of 43Next chapter
Administration & maintenance

Update Obelisk and recover if something goes wrong

Use Administration → Updates to apply an update to your existing Obelisk installation. You upload the update ZIP, check the proposed changes, then run the command shown in an SSH session. The procedure keeps settings and a valid license. Arrange a maintenance window and a recent complete backup before starting; you do not need to uninstall Obelisk to update it.

Obelisk documentation

Choose the update ZIP

Download the update ZIP supplied for your installation. In Administration → Updates, upload it to check whether you can update directly. The complete installation ZIP is used for a new installation and for the SSH tools; do not upload it here.

Read the proposed changes before continuing. Even an update without database changes prepares recovery copies. If Obelisk rejects the package or reports custom SQL procedures, keep the message and ask support which package or procedure to use. Do not bypass the check by copying PHP files or importing SQL yourself.

From the ZIP to the update command

  1. Upload and review the ZIP

    Upload the ZIP in Administration → Updates and read the preview: it lists the files and database changes. Check the SHA-256 checksum against the value supplied with the ZIP. Obelisk saves this information as an update entry, called a plan on the page, and checks that your installed version is supported.

  2. Run the commands shown for this update

    If a check command is shown, run it first in SSH. It records the checks without applying the update or taking the website offline. Then copy and run the apply command from the same update entry. Keep the terminal open so you can read and answer any questions. Do not reuse a command copied from a different update.

  3. Enter the database administrator credentials if requested

    The updater needs a database administrator account. It normally reads the saved connection file under /etc/obelisk, which only Linux root can read. If that file is missing, the apply command asks for the credentials before maintenance begins. Ask the database administrator for them; these are not your Obelisk login. The password stays hidden while you type.

Check disk space and database access

An update that changes the database needs room for a full SQL backup. On the Obelisk server, allow at least three times the estimated size of its database data and indexes, with a minimum of 16 MiB, plus space for file copies. If SQL runs on another server, check its free space separately: the updater’s local check does not measure it. Keep the copies until you have checked the updated site and reports.

  1. Check the saved SQL connection

    Run the command below to check the existing connection file and SQL login. It does not update the database, copy data or change SQL events; it may create the private diagnostics folder. Use your installation’s PHP CLI if it differs. If the file is missing, the normal update apply command creates it. If the password has changed, have the database administrator update this installation’s file, keeping its root ownership and restricted permissions.

    Command
    cd /var/www/html/obelisk &&
    sudo /usr/bin/php utility/schema_profile.php --check

The update stopped: find out how far it got

Before changing the database structure, Obelisk copies the full database and affected files and pauses its background processes. If the command stops, keep these copies and the saved update entry. From the website folder, run the command below with the PHP CLI used for your installation. It only reads the update status.

If you see prepared and the website is not in maintenance, correct the reported problem and repeat this update’s apply command. If you see recovery_required, keep every recovery copy and follow the resume or rollback instructions shown for that update. Do not start a second update to get past the error.

Command
cd /var/www/html/obelisk &&
sudo /usr/bin/php utility/update.php --status

Continue the update or go back to the previous state

Open the saved update entry. Use Show apply command to continue it. If SQL recovery has already started, use Show recovery command instead. A rollback restores the saved earlier state. If it restores SQL, data added or changed after that backup will be lost: check the backup date before confirming.

If the status is rolled_back or failed_rolled_back, that attempt is finished. Upload the ZIP again if you want to try another update. Keep the files Obelisk uses to record progress: deleting them can make recovery impossible.

After the command finishes, run Installation check, check web protection and open the reports you normally use. The update keeps settings, recordings, original call data and an existing valid license. Once everything works and you no longer need to go back, use that update’s cleanup action to remove its copies. After cleanup, those copies cannot be used for rollback.

If the command says a lock is busy, another operation may still be using the same data. Let it finish; if it stopped with an error, follow its recovery instructions. Do not delete the lock or maintenance files to start another command.

A web update does not replace the extracted SSH kit. Before starting a new SSH maintenance task, extract the current complete kit into a new empty folder. To finish an interrupted uninstall or reinstall, keep using the original kit and its saved progress files.

Obelisk rejects the ZIP

Read the error to see which version is installed and which versions the ZIP can update. Send that message to support to obtain the right package. Do not edit manifest files to make the ZIP appear compatible: version checks are only part of the checks needed for a safe update.

For the administrator: Apache rules and recovery

Obelisk protects private files through Apache rules in .htaccess. It updates its marked block and keeps rules outside it. The preview says whether that block will be created, changed or kept. It also blocks PHP execution under assets and turns off MultiViews, an Apache feature that can match an address to a file with a different extension.

Before updating, check that Apache allows the directives described in the installation guide. The updater writes .htaccess without testing the website over HTTP. If Apache rejects a directive, the updater does not automatically roll back because of that HTTP error. Keep the saved update and check the Apache log before following its recovery procedure.

If .htaccess was edited after the update, rollback can stop to avoid overwriting those edits. Save them separately. The administrator must then restore either the original file from data/updates/<id>/backup/.htaccess, if it existed, or the updated file from data/updates/<id>/payload/.htaccess. Replace <id> with the update ID shown on the page. File size and SHA-256 must match the saved copy.

Rollback leaves a file alone if it already matches the original. If it still matches the updated copy, rollback restores the original file or removes it if it did not exist before. Files marked unchanged are skipped. Afterwards, reapply the custom rules you saved and test that private files remain protected. Keep all update and recovery files until these checks are complete.

Managed web protection in the update preview Native Obelisk screen with illustrative data.

The error mentions transfer counters or collation

For an invalid transfer counter, the error identifies a row in queue_stats that the database administrator must check. A collation error means a stored procedure or SQL event uses text-comparison rules different from the database. Keep the exact error and the update files and follow the linked SQL checks. Do not reset import progress or recreate SQL objects just to get past the message.

Controls on this page

After uploading the package, review the generated plan and use its current check/apply commands. An uploaded or checked package is not yet an applied update. Refresh the panel to read the execution result; keep recovery copies until the resulting installation has been verified.

Complete product screenshots

Illustrative data. Open the screenshot to enlarge it and match the controls to the instructions in this chapter.

1. Complete page

Open complete screenshot

Request your demo

The complete Obelisk experience. Tell us about your contact center.

Loading the request form…