• 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ü
Topic Resolution: Answered
Ansicht von 6 Antwort-Threads
  • Autor
    Beiträge
    • 2. April 2026 um 17:00 Uhr - Views: 454 #40567
      Answered
      Patrick De Smedt
      Teilnehmer

        Like the title says, I am trying to migrate Otobo 11 from an old installation to a new server.

        Installation goes OK, following the documentation, but restore fails on the database connection:

        DBI connect(‚database=otobo;host=127.0.0.1′,’otobo‘,…) failed: Can’t connect to server on ‚127.0.0.1‘ (115) at /opt/otobo_install/local/lib/perl5/DBIx/Connector.pm line 31.

        I tried with the same version as original server (11.0.11), and when that didn’t work, I tried the latest (11.0.15), but the same error.

        What am I missing?

      • 8. April 2026 um 11:34 Uhr #40618
        marcel-graf
        Teilnehmer

          Hello Patrick,

          is the old one a Mysql or Maria DB?

          I think you use the Backup and Restore documentation legacy on the old server and on the new server the Backup and Restore using Docker documentation?

          Have you set the same DB password in the docker Database? All Plugins/Addons installed?

          Can you connect to maria DB on the Otobo docker

          #———-Example to disable Mail Accounts ——

          sudo docker exec -it otobo_db_1 bash

          cd bin
          mariadb -u root -p      -> for mysql ( mysql -u root -p)

          SHOW Databases;

          use otobo;
          select * from mail_account;

          ;—disable all mail accounts—
          UPDATE mail_account SET valid_id = ‚2‘ where valid_id = ‚1‘;

          KR,

          Marcel

          • 8. April 2026 um 15:27 Uhr #40620
            Patrick De Smedt
            Teilnehmer

              Hi,

              both are Mariadb.
              Indeed, backup on legacy, restore on Docker, using the respective scripts.
              All users and passwords are identical.
              Packages installed (FAQ and MailAccount-OAuth2)

              I can connect to the db from within the db container, and from the other containers, when using ‚db‘ as hostname.
              The restore script tries to connect to 127.0.0.1, but it’s not quite clear to me where it is running from. I think from within the web container.
              Connecting to 127.0.0.1 will only work from within the db container itself.
              Where does the script get the address ‚127.0.0.1‘ from, and how do i tell it to use ‚db‘ as hostname?

               

              • Diese Antwort wurde vor 4 Monaten, 2 Wochen von Patrick De Smedt geändert.
          • 9. April 2026 um 12:25 Uhr #40628
            Arnold
            Administrator

              Hi Patrick,

              I am guessing you are following there guide: https://doc.otobo.org/manual/installation/11.0/en/content/installation/installation-docker.html

              At witch step do you see the error?

            • 9. April 2026 um 12:47 Uhr #40632
              Patrick De Smedt
              Teilnehmer

                Hi,

                there is no error during installation.

                I get the error when trying to restore the legacy backup into the Docker installation:

                From https://doc.otobo.de/manual/installation/11.0/en/content/backup-restore-docker.html

                For restoring the backup we also need to specify which backup should be restored. The placeholder <TIMESTAMP> is something like 2020-09-07_09-38.

                # restore a backup
                docker_admin> docker run -it --rm --volume otobo_opt_otobo:/opt/otobo --volume otobo_backup:/otobo_backup --network otobo_default rotheross/otobo:latest-11_0 scripts/restore.pl -d /opt/otobo -b /otobo_backup/<TIMESTAMP>

              • 9. April 2026 um 13:23 Uhr #40635
                Best Answer
                Arnold
                Administrator

                  I see. What is happening is, that during restore, the config.pm is extracted first from the backup. Otobo then tries to use the restored settings to apply the backup. Since your native installation used a local database, it tries to connect to the local database (which you do not have in the docker setup). Since the migration to docker is worth the effort, I suggest you unpack the backup, modify the config.pm with the settings for the DB of your installation and repack it. Then you may use the restore script.

                  You might have to check for the settings of elasticsearch in the UI after your import.

                  Good luck!

                • 9. April 2026 um 15:52 Uhr #40640
                  Patrick De Smedt
                  Teilnehmer

                    OK, fixed.

                    I was hoping I didn’t have to mess with the backup files, and that there was some option to point the restore script to the correct database IP, but it turned out not to be so difficult.

                    Restore went OK, after editing databasehost and DSN in the config backup, but then the running, restored system was still going to 127.0.0.1.

                    The config.pm file of the application also had to be changed.

                    Now my docker installation is working.

                    Thank you for the assistance.

                  • 9. April 2026 um 15:58 Uhr #40641
                    Arnold
                    Administrator

                      Awesome! Thanks for the feedback!

                  • Autor
                    Beiträge
                  Ansicht von 6 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

                  • 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
                  • Docker: Ändern des redis Hosts

                  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