Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-2957

Upgrading to PMM 1.14.0 in docker deployment returns 502 gateway in landing page due to attempt to create already existing Dashboard

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.14.1
    • Component/s: PMM Server
    • Labels:
      None
    • Environment:

      Description

      Upgrading to PMM 1.14.0 for docker deployments would result to 502 Bad Gateway on landing page. However, the <pmmhost>/prometheus/targets will show the page.

       

      [root@7632c019699d log]# cat /var/lib/grafana/PERCONA_DASHBOARDS_VERSION
      1.13.0
      [root@7632c019699d log]# cat /usr/share/percona-dashboards/VERSION
      1.14.0

       

       

      $ docker images
      REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
      percona/pmm-server   1.14.0              45f1f90ce9a3        18 hours ago        966MB
      percona/pmm-server   1.13.0              c32da3dfb2ae        5 weeks ago         971MB
      hello-world          latest              2cb0d9787c4d        8 weeks ago         1.85kB
      percona/pmm-server   1.11.0              a412cf31e624        3 months ago        999MB

       

       

      $ docker ps -a
      CONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                         NAMES
      7632c019699d        percona/pmm-server:1.14.0   "/opt/entrypoint.sh"   26 minutes ago      Up 26 minutes       0.0.0.0:80->80/tcp, 443/tcp   pmm-server
      ef3f9ed07796        percona/pmm-server:1.11.0   "/bin/true"            3 months ago        Created                                           pmm-data

       

      Reverting to PMM 1.13.0 will restore landing page and not result to 502 bad gateway error.

       

      How to reproduce:

      • using pmm-server 1.13.0 or older
      • docker stop pmm-server && docker rm pmm-server
      • docker run -d -p 80:80 --volumes-from pmm-data --name pmm-server --restart always -e METRICS_RETENTION=720h percona/pmm-server:1.14.0

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jericho.rivera Jericho Rivera
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 30 minutes
                    1h 30m