Project

General

Profile

Bug #44355

mgr/dashboard: 404 on on dashboard home when built for RPM

Added by Ernesto Puerta about 1 month ago. Updated 21 days ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
% Done:

0%

Source:
Q/A
Tags:
build
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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"} 

Related issues

Copied to mgr - Backport #44378: nautilus: mgr/dashboard: 404 on on dashboard home when built for RPM Resolved

History

#1 Updated by Ernesto Puerta 30 days ago

The following fix (https://github.com/ceph/ceph/pull/31563) in master would fix this issue. It's not backported to Nautilus though.

#2 Updated by Ernesto Puerta 30 days ago

  • Status changed from New to Pending Backport
  • Pull request ID set to 31563

#3 Updated by Ernesto Puerta 30 days ago

  • Copied to Backport #44378: nautilus: mgr/dashboard: 404 on on dashboard home when built for RPM added

#4 Updated by Lenz Grimmer 21 days ago

  • Status changed from Pending Backport to Resolved
  • Target version changed from v16.0.0 to v15.0.0

Also available in: Atom PDF