• Deutsch
  • English
  • Anmeldung OTOBO Community
+49 (0)9427 68 39 000
OTOBO
  • SOFTWARE
    • Software | Überblick
    • IT Service Management
    • Customer Service Management
    • Enterprise Service Management
    • Demo
    • Download
    • Dokumentation
  • SERVICES
    • Überblick Services
    • Beratung
    • Training
    • Entwicklung
    • OTRS Migration zu OTOBO
    • Support
    • Managed Service
    • Support-Portal
  • UNTERNEHMEN
    • Über uns
    • Karriere
    • Partner
    • Kontakt
    • Newsletter
  • RESSOURCEN
  • COMMUNITY
    • Open Source
    • Community Forum
    • Download
    • Dokumentation
    • OTOBO übersetzen
  • Click to open the search input field Click to open the search input field Suche
  • Menü Menü
Ansicht von 4 Antwort-Threads
  • Autor
    Beiträge
    • 31. März 2021 um 9:03 Uhr - Views: 2292 #11276
      Jeffrey nvt
      Teilnehmer

        Hi,

        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‘

        Any idea how to fix this?

      • 31. März 2021 um 11:06 Uhr #11279
        Jeffrey nvt
        Teilnehmer

          A workaround for this issue, change line 636 in file „Kernel/System/MigrateFromOTRS/CloneDB/Driver/Base.pm“

          Orignal:

          my $TrunkateSuccess = $TargetDBObject->Do( SQL => "TRUNCATE TABLE $TargetTable" );

          Replace with:

          my $TrunkateSuccess = $TargetDBObject->Do( SQL => "TRUNCATE TABLE $TargetTable CASCADE" );

          Also be sure that you grant the superuser role to the psql user.

          Grant superuser role
          ALTER USER otobo WITH SUPERUSER;

          Revoke superuser role (after migration):
          ALTER USER otobo WITH NOSUPERUSER;

          Not sure if I will hit other issues, because the migration process is still running.

        • 31. März 2021 um 16:12 Uhr #11284
          bes
          Teilnehmer

            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".

            The reason for this strange behavior is https://www.postgresql.org/message-id/15657-f94bb6e3ad28e1e2%40postgresql.org.

          • 7. Oktober 2021 um 4:59 Uhr #11996
            Roy Sigurd Karlsbakk
            Teilnehmer

              I can’t reply with SQL commands, but the above doesn’t help

            • 7. Oktober 2021 um 5:00 Uhr #11997
              Roy Sigurd Karlsbakk
              Teilnehmer

                SQL sentences are blocked due to security reasons (probably noone bothered to sanitize their code first. See http://paste.debian.net/1214558/

                Oh – and see https://xkcd.com/327/

            • Autor
              Beiträge
            Ansicht von 4 Antwort-Threads
            • Du musst angemeldet sein, um auf dieses Thema antworten zu können.

            Foren durchsuchen

            Anmeldung

            Anmeldung

            Konto erstellen
            Passwort vergessen?

            Login via Social

            Profil

            Bitte vervollständigen Sie nach der Registrierung Ihr Profil, das vereinfacht die spätere Kommunikation enorm. Ihre Profileinstellung finden Sie, wenn Sie auf Ihr Avatarbild klicken.

            Sie können Ihren Avatar ändern, indem Sie sich mit Ihrer E-Mail-Adresse unter gravatar.com registrieren.

            Letzte Aktivitäten

            • Mandantenfähigkeit
            • Dynamische Felder in AgentTicketNote mit ACL verstecken
            • FAQ: kaputtes Copy & Paste von Bildern zwischen Artikeln
            • Benachrichtigung „Ticket wurde mir entzogen“ möglich?
            • Statistik Anzahl Tickets pro Agent

            Unternehmen

            Über uns
            Karriere
            Stellenbörse
            Partner werden
            Kontakt
            Newsletter

            OTOBO | Simplify work and create exceptional service experiences.

            Die Source Code Owner und Maintainer hinter OTOBO.

            Software

            Service Management-Plattform
            OTOBO Demo
            OTOBO Download
            OTOBO Dokumentation

            Security-Problem melden:
            security@otobo.org

            Services

            Support-Portal
            Beratung
            Training
            Support
            Managed Services
            Erweiterung
            OTRS Migration
            Partner finden

            Community

            Open Source
            Community Forum
            Mitmachen
            OTOBO Developer
            OTOBO@GitHub

            © 2026 Rother OSS GmbH | All rights reserved.
            • Cookie-Einstellungen
            • Impressum
            • Datenschutz
            • Haftungsausschluss
            Nach oben scrollen Nach oben scrollen Nach oben scrollen