Grafana v4.6.2 to 5.0.2 upgrade 404's on existing dashboards

Upgrading Grafana from v4.6.2 to v5.0.2 in AWS by replacing the AMIs with the version baked in.

Grafana starts ok and existing dashboards are listed but give a 404, page doesn’t exist, when trying to access them.

Running on Amazon linux with MySQL


Please verify if you may have the same problem as reported in this issue, i.e. no uid have been generated in dashboard table.