I’m trying to migrate from OTRS with a MySQL database to OTOBO with a PostgreSQL database. This should be possible following the documentation, only step 4 on migration.pl gives an error.
Copy database.
System was unable to complete data transfer.
Syslog shows two different errors.
permission denied to set parameter „session_replication_role“, SQL: ’set session_replication_role to replica;
Without the superuser role it’s not possible to set parameter „session_replication_role“, this can be fix with ALTER USER otobo WITH SUPERUSER;. Only even with the superuser role, it still not possible to truncate table ‚article‘.
Mar 31 08:31:55 XXX ?LogPrefix?-40[14257]: [Error][Kernel::System::MigrateFromOTRS::CloneDB::Driver::Base::DataTransfer][Line:636]: ERROR: cannot truncate a table referenced in a foreign key constraint#012DETAIL: Table „ticket_history“ references „article“.#012HINT: Truncate table „ticket_history“ at the same time, or use TRUNCATE … CASCADE., SQL: ‚TRUNCATE TABLE article‘
Mar 31 08:31:55 XXX ?LogPrefix?-40[14257]: [Error][Kernel::System::MigrateFromOTRS::Base::MigrationLog][Line:1172]: Could not truncate target table ‚article‘
Also note that this issue should be fixed in OTOBO 10.0.10. See https://github.com/RotherOSS/otobo/issues/818. The approach taken there is to replace "TRUNCATE TABLE $TargetTable" with "DELETE FROM $TargetTable".
Our website uses cookies. Cookies are tiny text files which are saved in your web browser or by your web browser on your device when you access websites. They contain a characteristic character sequence allowing to clearly identify your browser upon your next visit to the website.
You can prevent the setting of cookies at any time by making the appropriate setting in your internet browser. Cookies that have already been set can be deleted manually or automatically at any time. This is possible in all common internet browsers. If the setting of cookies is deactivated in the browser, not all functions of the website may be fully usable.
We deliberately use very little cookies.
Detailed information can be found in section 4 of our Privacy Policy.
Necessary cookies
Essential Cookies are necessary to deliver this website and some of its features correctly.
For this reason, we do not provide any opportunity here to disable them.
Notwithstanding this, you can deactivate all Cookies in your Browser Settings at any time. Please be aware, however, that this might have an impact on the functionality of this website.
More information about the cookies to be set and how long they will be stored can be found in section 4 of our Privacy Poliy: Privacy Policy.
Google Analytics' Cookies
When you visit this website, Google Analytics sets cookies on your system. This will help us analyse how you use our website ans tailor it to the needs of our visitors. Your IP address will be automatically anonymised (IP anonymisation and deactivation of your User ID). Therefore, we cannot trace which data a certain user is accessing. The data are not saved together with any other personal user data.
You can deactivate tracking in your browser if you do not want us to be able to track your visit on our website.
Privacy Policy
Detailed information on the usage of cookies as well as our Privacy Policy can be found here: