Not the answer you need?
Register and ask your own question!

How to change instance id

DmytroKhDmytroKh ContributorCurrent User Role Beginner
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?

Comments

  • PeterPeter Percona CEO Percona Moderator Role
    Dmytro,

    Can you clarify how exactly did you move PMM to the different instance size so we can test it ?
  • roma.novikovroma.novikov Percona Percona Staff Role
    DmytroKh , did you changed IP of your PMM server too?
  • MykolaMykola Percona Percona Staff Role
    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.
  • DmytroKhDmytroKh Contributor Current User Role Beginner
    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.
  • MykolaMykola Percona Percona Staff Role
    looks like .htpasswd and grafana database desync :(
    have you created an image from volume snapshot or from running instance?
  • DmytroKhDmytroKh Contributor Current User Role Beginner
    from running instance
  • DmytroKhDmytroKh Contributor Current User Role Beginner
    So, how do we fix .htpasswd and grafana database desync ?
  • MykolaMykola Percona Percona Staff Role
    in general - it is needed to understand the reason why you received desync after screenshot recovery.
    anyway, you can try to run
    pmm-configure -grafana-db-path /srv/grafana/grafana.db
    
    it should sync users in htpasswd and grafana database
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.