Grafana admin login is giving error

Error

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width"> <meta name="theme-color" content="#000"> <title>Grafana - Error</title> <base href="/grafana/" /> <link rel="stylesheet" href="public/build/grafana..css?v"> <link rel="icon" type="image/png" href="public/img/fav32.png"> <link rel="mask-icon" href="public/img/grafana_mask_icon.svg" color="#F05A28"> </head> <body class="theme-"> <div class="main-view"> <div class="page-container"> <div class="page-header"> <div class="page-header__inner"> <span class="page-header__logo"> <i class="page-header__icon fa fa-frown-o"></i> </span> <div class="page-header__info-block"> <h1 class="page-header__title"> <a class="text-link" href="login">Grafana</a><span> / Server Error</span><span></span> </h1> <div class="page-header__sub-title">Sadly something went wrong</div> </div> </div> </div> </div> <div class="page-container page-body ng-scope" style="padding: 2rem"> <div class="alert"> <div class="alert-icon"><i class="fa fa-exclamation-triangle"></i></div> <div class="alert-body"> <div class="alert-title">Server Error</div> </div> </div> <br /> <div style="padding: 2rem 0 0"> <p>Check the Grafana server logs for the detailed error message.</p> </div> </div> </div> </body> </html>

2 Likes

Console log
angular.js:14700 Possibly unhandled rejection: {"data":"<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n <meta name=\"viewport\" content=\"width=device-width\">\n <meta name=\"theme-color\" content=\"#000\">\n\n <title>Grafana - Error</title>\n\n <base href=\"/grafana/\" />\n\n <link rel=\"stylesheet\" href=\"public/build/grafana..css?v\">\n\n <link rel=\"icon\" type=\"image/png\" href=\"public/img/fav32.png\">\n <link rel=\"mask-icon\" href=\"public/img/grafana_mask_icon.svg\" color=\"#F05A28\">\n\n </head>\n\n <body class=\"theme-\">\n <div class=\"main-view\">\n <div class=\"page-container\">\n <div class=\"page-header\">\n <div class=\"page-header__inner\">\n <span class=\"page-header__logo\">\n <i class=\"page-header__icon fa fa-frown-o\"></i>\n </span>\n <div class=\"page-header__info-block\">\n <h1 class=\"page-header__title\">\n <a class=\"text-link\" href=\"login\">Grafana</a><span> / Server Error</span><span></span>\n </h1>\n <div class=\"page-header__sub-title\">Sadly something went wrong</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"page-container page-body ng-scope\" style=\"padding: 2rem\">\n <div class=\"alert\">\n <div class=\"alert-icon\"><i class=\"fa fa-exclamation-triangle\"></i></div>\n <div class=\"alert-body\">\n <div class=\"alert-title\">Server Error</div>\n </div>\n </div>\n <br />\n \n <div style=\"padding: 2rem 0 0\">\n <p>Check the Grafana server logs for the detailed error message.</p>\n </div>\n </div>\n </div>\n </body>\n</html>\n","status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"login","data":{"user":"admin","email":"","password":"admin"},"retry":0,"headers":{"X-Grafana-Org-Id":1,"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"}},"statusText":"Internal Server Error","xhrStatus":"complete"}

I also got this. How to resolve it?