App and Data Migration

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
pinkbottle
Posts: 7
Joined: 16 Apr 2025, 09:04

App and Data Migration

Post by pinkbottle »

I want to migrate my application (e.g., database migration) from CentOS8 to RHEL9.

Is it possible?
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App and Data Migration

Post by atrol »

Which MantisBT version, database type and version, web server type and version and PHP versions are you running?
Please use Search before posting and read the Manual
pinkbottle
Posts: 7
Joined: 16 Apr 2025, 09:04

Re: App and Data Migration

Post by pinkbottle »

Which MantisBT version, database type and version, web server type and version and PHP versions are you running?

OS version: CentOS Linux release 8.2.2004 (Core)

MantisBT version: define( 'MANTIS_VERSION', '2.24.1' );

Database type and version: mysql Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1

Web server type and version: Server version: Apache/2.4.37 (centos)

PHP versions: PHP 7.2.24
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App and Data Migration

Post by atrol »

Export your database on CentOS
Import your database on RHEL
Download latest MantisBT (2.27.1 at the moment) on RHEL
Follow the steps in Admin Guide
https://mantisbt.org/docs/master/en-US/ ... preinstall
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
If your attachments are not stored in database, you have to copy them from your old server to the new one
Please use Search before posting and read the Manual
pinkbottle
Posts: 7
Joined: 16 Apr 2025, 09:04

Re: App and Data Migration

Post by pinkbottle »

Hello,

Thank you so much!

May I check if there's anything I need to take note of? (e.g., kernel version)

Thank you!
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App and Data Migration

Post by atrol »

Requirements are documented in Admin Guide and checked during installation
https://mantisbt.org/docs/master/en-US/ ... e.versions
Please use Search before posting and read the Manual
pinkbottle
Posts: 7
Joined: 16 Apr 2025, 09:04

Re: App and Data Migration

Post by pinkbottle »

Hi,

If your attachments are not stored in database, you have to copy them from your old server to the new one
- May I ask if you can clarify what do you mean by attachments?

Thank you!
pinkbottle
Posts: 7
Joined: 16 Apr 2025, 09:04

Re: App and Data Migration

Post by pinkbottle »

Hi,

I have migrated successfully, however when i press My Account > Profiles > Facing error

APPLICATION ERROR #26
Data Type mismatch. Enable detailed error messages for further information.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Full path: /var/www/html/mantisbt/core/helper_api.php
Line number: 191
Stack trace
# Filename Line Class Type Function Args
0 /var/www/html/mantisbt/core/helper_api.php 191 - - trigger_error <string>'26', <integer>256
1 /var/www/html/mantisbt/core/helper_api.php 268 - - helper_check_variables_equal <string>'', <integer>7, <boolean>true

Could you please help to check?

Thank you!
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App and Data Migration

Post by atrol »

pinkbottle wrote: 14 May 2025, 01:53 - May I ask if you can clarify what do you mean by attachments?
Files that you uploaded to issues / added to notes.
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8531
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App and Data Migration

Post by atrol »

pinkbottle wrote: 14 May 2025, 06:23 Stack trace
# Filename Line Class Type Function Args
0 /var/www/html/mantisbt/core/helper_api.php 191 - - trigger_error <string>'26', <integer>256
1 /var/www/html/mantisbt/core/helper_api.php 268 - - helper_check_variables_equal <string>'', <integer>7, <boolean>true
Is this the whole stack trace?
Please use Search before posting and read the Manual
Post Reply