XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    dbsync error with unique constraint violation.

    Scheduled Pinned Locked Moved Compute
    9 Posts 2 Posters 1.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • michael-newsrxM Offline
      michael-newsrx
      last edited by

      I have a botched update where we have a host that is getting the following error:

      xapi: [debug||0 ||dbsync] dbsync caught an exception: INTERNAL_ERROR: [ Db_exn.Uniqueness_constraint_violation("VM", "uuid", "c8e359da-2964-451d-af40-802cabbdf889") ]
      
      • yum update shows everything is up-to-date.
      • There are no local SRs.
      • Attempting to eject the host from the pool fails.
      • The network interface configurations are whacked. Reset, and can't get bonds back up correctly either.

      The host is configured to run DRBD for a Lizard-HA configured iSCSI SAN setup. (Which is not starting up).

      Suggestions?

      -Mike

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        It's like you have 2 VMs with the same UUID, which shouldn't happen in the first place 🤔

        michael-newsrxM 2 Replies Last reply Reply Quote 0
        • michael-newsrxM Offline
          michael-newsrx @olivierlambert
          last edited by

          @olivierlambert

          xe vm-list
          
          uuid ( RO)           : c8e359da-2964-451d-af40-802cabbdf889
               name-label ( RW): Control domain on host: xen1
              power-state ( RO): halted
          
          1 Reply Last reply Reply Quote 0
          • michael-newsrxM Offline
            michael-newsrx @olivierlambert
            last edited by michael-newsrx

            @olivierlambert

            xe vm-list is-control-domain=true
            uuid ( RO)           : 80506235-8ae0-4075-88d3-3c2f605d9b58
                 name-label ( RW): Control domain on host: xen2
                power-state ( RO): running
            
            
            uuid ( RO)           : c8e359da-2964-451d-af40-802cabbdf889
                 name-label ( RW): Control domain on host: xen1
                power-state ( RO): halted
            
            
            uuid ( RO)           : 059124f9-a845-498d-bbea-db8ac1b5ac70
                 name-label ( RW): Control domain on host: xen3
                power-state ( RO): running
            
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              @michael-newsrx said in dbsync error with unique constraint violation.:

              c8e359da-2964-451d-af40-802cabbdf889

              Okay so you have a host that you should consider dead to remove it from the pool (xen1), reinstall and re-join:

              1. xe host-declare-dead uuid=<host_uuid>
              2. xe host-forget uuid=<host_uuid> --force

              Then, you can reinstall it and re-join the pool.

              What's the master right now?

              michael-newsrxM 1 Reply Last reply Reply Quote 0
              • michael-newsrxM Offline
                michael-newsrx @olivierlambert
                last edited by

                @olivierlambert
                The master is system xen2, the broken system is xen1

                Can this be done without erasing the iscsi/drbd configs?

                1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by olivierlambert

                  I have no idea, I never used HA Lizard myself, but at least I can tell this should solve your current XAPI DB issue.

                  michael-newsrxM 1 Reply Last reply Reply Quote 0
                  • michael-newsrxM Offline
                    michael-newsrx @olivierlambert
                    last edited by

                    @olivierlambert

                    It's worth the attempt.

                    Maybe I can get it running standalone and work from there. I'm accessing everything remotely, no people there in the office.

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      Good luck!

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post