Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: FAIL MISP 2.5 Upgrade - [ERROR] Updating MISP's database to the latest 2.4 release's schema failed. #10494

@rdpinformacao

Description

@rdpinformacao

Actual behavior

The operating system upgrade process for Ubuntu 22.04 and 24.04 worked perfectly.

We got the error "[ERROR] Updating MISP's database to the latest 2.4 release's schema failed." After updating the MISP application with the script:
wget --no-cache -O /tmp/UPGRADE.ubuntu2404.sh https://raw.githubusercontent.com/MISP/MISP/refs/heads/2.5/INSTALL/UPGRADE.ubuntu2404.sh ; sudo bash /tmp/UPGRADE.ubuntu2404.sh

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble

Expected behavior

In MISP 2.4:

  1. Upgrade from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS;
  2. Upgrade from Ubuntu 22.04 LTS to Ubuntu 24.04 LTS;
  3. Run the script below:
    wget --no-cache -O /tmp/UPGRADE.ubuntu2404.sh https://raw.githubusercontent.com/MISP/MISP/refs/heads/2.5/INSTALL/UPGRADE.ubuntu2404.sh; sudo bash /tmp/UPGRADE.ubuntu2404.sh

Obs:
Don't get the error:

"[ERROR] Updating MISP's database to the latest 2.4 release's schema failed. After updating the MISP application with the script:

Steps to reproduce

In UBUNTU 24.04 LTS

Run the script below:
wget --no-cache -O /tmp/UPGRADE.ubuntu2404.sh https://raw.githubusercontent.com/MISP/MISP/refs/heads/2.5/INSTALL/UPGRADE.ubuntu2404.sh; sudo bash /tmp/UPGRADE.ubuntu2404.sh

Version

2.4.207

Operating System

UBUNTU

Operating System version

24.04

PHP version

8.3.6

Browser

No response

Browser version

No response

Relevant log output

MISP-PROD:~# wget --no-cache -O /tmp/UPGRADE.ubuntu2404.sh https://raw.githubusercontent.com/MISP/MISP/refs/heads/2.5/INSTALL/UPGRADE.ubuntu2404.sh ; sudo bash /tmp/UPGRADE.ubuntu2404.sh
--2025-09-10 16:36:10--  https://raw.githubusercontent.com/MISP/MISP/refs/heads/2.5/INSTALL/UPGRADE.ubuntu2404.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14496 (14K) [text/plain]
Saving to: ‘/tmp/UPGRADE.ubuntu2404.sh’

/tmp/UPGRADE.ubuntu2404. 100%[================================>]  14.16K  --.-KB/s    in 0s

2025-09-10 16:36:10 (69.1 MB/s) - ‘/tmp/UPGRADE.ubuntu2404.sh’ saved [14496/14496]

███╗   ███╗██╗███████╗██████╗
████╗ ████║██║██╔════╝██╔══██╗
██╔████╔██║██║███████╗██████╔╝
██║╚██╔╝██║██║╚════██║██╔═══╝
██║ ╚═╝ ██║██║███████║██║
╚═╝     ╚═╝╚═╝╚══════╝╚═╝
v2.5 Upgrade on Ubuntu 24.04 LTS
[STATUS] Updating base system...
[OK] Base system update successfully completed.
[STATUS] Checking if we're on the correct branch of MISP and updating it to the latest 2.4 release...
[OK] Updating MISP to the latest 2.4 release successfully completed.
[ERROR] Updating MISP's database to the latest 2.4 release's schema failed. Please check /var/log/misp_upgrade.log for more details. This is not a blocking failure though, proceeding...
[STATUS] Installing apt packages (supervisor jq)...
[OK] supervisor installation successfully completed.
[OK] jq installation successfully completed.
[OK] Basic dependencies installation successfully completed.
[STATUS] Installing PHP and the list of required extensions...
[OK] php8.3 installation successfully completed.
[OK] php8.3-cli installation successfully completed.
[OK] php8.3-dev installation successfully completed.
[OK] php8.3-xml installation successfully completed.
[OK] php8.3-mysql installation successfully completed.
[OK] php8.3-opcache installation successfully completed.
[OK] php8.3-readline installation successfully completed.
[OK] php8.3-mbstring installation successfully completed.
[OK] php8.3-zip installation successfully completed.
[OK] php8.3-intl installation successfully completed.
[OK] php8.3-bcmath installation successfully completed.
[OK] php8.3-gd installation successfully completed.
[OK] php8.3-redis installation successfully completed.
[OK] php8.3-gnupg installation successfully completed.
[OK] php8.3-apcu installation successfully completed.
[OK] libapache2-mod-php8.3 installation successfully completed.
[OK] php8.3-curl installation successfully completed.
[OK] PHP and required extensions installation. successfully completed.
[STATUS] Disabling/Enabling php apache module (trial and error like a monkey)...
[OK] PHP 8.3 module enabling successfully completed.
[STATUS] Installing composer...
[OK] Composer installation successfully completed.
[OK] Apache restart successfully completed.
[OK] PHP8.3 configured...
[STATUS] Installing PECL extensions...
[OK] PECL brotli extension installation successfully completed.
[OK] PECL simdjson extension installation successfully complete                                   d.
[OK] PECL zstd extension installation successfully completed.
[STATUS] Switching to the 2.5 branch
[OK] Fetching 2.5 branch successfully completed.
[ERROR] Checking out 2.5 branch failed. Please check /var/log/misp_upgrade.log for more details.

Extra attachments

Logs /var/log/misp_upgrade.log:

misp_upgrade.log

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue has been automatically labelled and needs further triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions