Page 1 of 1

App and Data Migration

Posted: 16 Apr 2025, 09:07
by pinkbottle
I want to migrate my application (e.g., database migration) from CentOS8 to RHEL9.

Is it possible?

Re: App and Data Migration

Posted: 16 Apr 2025, 19:16
by atrol
Which MantisBT version, database type and version, web server type and version and PHP versions are you running?

Re: App and Data Migration

Posted: 21 Apr 2025, 03:40
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

Re: App and Data Migration

Posted: 21 Apr 2025, 15:36
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

Re: App and Data Migration

Posted: 23 Apr 2025, 07:44
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!

Re: App and Data Migration

Posted: 24 Apr 2025, 19:59
by atrol
Requirements are documented in Admin Guide and checked during installation
https://mantisbt.org/docs/master/en-US/ ... e.versions

Re: App and Data Migration

Posted: 14 May 2025, 01:53
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!

Re: App and Data Migration

Posted: 14 May 2025, 06:23
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!

Re: App and Data Migration

Posted: 17 May 2025, 15:18
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.

Re: App and Data Migration

Posted: 17 May 2025, 15:26
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?