Buy Percona ServicesBuy Now!

How to change instance id

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change instance id

    Hi,

    I've used pmm from amazon image, but then moved the instance to new one, thus instance id has changed.

    Nothing but landing page works now: I see
    {"message":"Basic auth failed"} error, while my user/passwords are correct.

    How can I trigger instance id change without loosing configuration for pmm agents?

  • #2
    Dmytro,

    Can you clarify how exactly did you move PMM to the different instance size so we can test it ?

    Comment


    • #3
      DmytroKh , did you changed IP of your PMM server too?

      Comment


      • #4
        Hi DmytroKh,

        AWS can change IP adresses during instance stop/start.
        when you run PMM on AWS it is mandatory to use Elastic IPs for pmm-server and all pmm-clients, because both sides store IPs in config files.

        instance-id change itself cannot broke anything, but during migration it is possible to lose one of EBS volumes or Elastic IP.

        Comment


        • #5
          Hi,

          we did a server image and create the new instance from it.
          public ip hasn't changed since we use elastic ip, but private ip changed along with instance id.

          Comment


          • #6
            looks like .htpasswd and grafana database desync
            have you created an image from volume snapshot or from running instance?

            Comment


            • #7
              from running instance

              Comment


              • #8
                So, how do we fix .htpasswd and grafana database desync ?

                Comment


                • #9
                  in general - it is needed to understand the reason why you received desync after screenshot recovery.
                  anyway, you can try to run
                  Code:
                  pmm-configure -grafana-db-path /srv/grafana/grafana.db
                  it should sync users in htpasswd and grafana database

                  Comment

                  Working...
                  X