Actions
Bug #44355
closedmgr/dashboard: 404 on on dashboard home when built for RPM
% Done:
0%
Source:
Q/A
Tags:
build
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Description
It seems that despite having a default language set (supposedly en-US
locale), the former "npm run build" results in a dashboard that cannot display the login page (or any other page at all):
{"status": "404 Not Found", "detail": "The path '/' was not found.", "traceback": "Traceback (most recent call last):\n File \"/lib/python3.6/site-packages/cherrypy/lib/static.py\", line 51, in serve_file\n st = os.stat(path)\nFileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ceph/mgr/dashboard/frontend/dist/en-US/index.html'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/lib/python3.6/site-packages/cherrypy/_cprequest.py\", line 670, in respond\n response.body = self.handler()\n File \"/lib/python3.6/site-packages/cherrypy/lib/encoding.py\", line 220, in __call__\n self.body = self.oldhandler(*args, **kwargs)\n File \"/lib/python3.6/site-packages/cherrypy/_cptools.py\", line 237, in wrap\n return self.newhandler(innerfunc, *args, **kwargs)\n File \"/usr/share/ceph/mgr/dashboard/services/exception.py\", line 88, in dashboard_exception_handler\n return handler(*args, **kwargs)\n File \"/lib/python3.6/site-packages/cherrypy/_cpdispatch.py\", line 60, in __call__\n return self.callable(*self.args, **self.kwargs)\n File \"/usr/share/ceph/mgr/dashboard/controllers/home.py\", line 113, in __call__\n return serve_file(full_path)\n File \"/lib/python3.6/site-packages/cherrypy/lib/static.py\", line 58, in serve_file\n raise cherrypy.NotFound()\ncherrypy._cperror.NotFound: (404, \"The path '/' was not found.\")\n", "version": "8.9.1"}
Updated by Ernesto Puerta about 4 years ago
The following fix (https://github.com/ceph/ceph/pull/31563) in master would fix this issue. It's not backported to Nautilus though.
Updated by Ernesto Puerta about 4 years ago
- Status changed from New to Pending Backport
- Pull request ID set to 31563
Updated by Ernesto Puerta about 4 years ago
- Copied to Backport #44378: nautilus: mgr/dashboard: 404 on on dashboard home when built for RPM added
Updated by Lenz Grimmer about 4 years ago
- Status changed from Pending Backport to Resolved
- Target version changed from v16.0.0 to v15.0.0
Updated by Ernesto Puerta almost 3 years ago
- Project changed from mgr to Dashboard
Actions