Ceph Dashboard Broken In Proxmox VE 8

ctrl

New Member
Sep 24, 2023
5
1
3
I have a new 3 node PVE 8 cluster / fresh install and have been unable to get the ceph dashboard to enable.

PVE: 8.0.4
Ceph: 18.2

There is various search yielding results over time:

https://forum.proxmox.com/threads/how-can-i-install-the-ceph-dashboard-in-proxmox-6.57251/
https://forum.proxmox.com/threads/c...ate-to-proxmox-7-from-6-4.104911/#post-498277
https://forum.proxmox.com/threads/ceph-warning-post-upgrade-to-v8.129371/page-3


The link above is the most recent ^ which is discussing a 7 > 8 post upgrade with the same issue. My issue is all fresh with the latest ceph, mentioned in this thread indicates that the most recent ceph may fix the issue, it does not. I have a PVE 7 cluster which seems to work fine. Other than that there is a ton of very old search results for this error dating back years.

Code:
ceph-mgr-dashboard is already the newest version (18.2.0-pve2).

Code:
~# ceph mgr module enable dashboard
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: PyO3 modules may only be initialized once per interpreter process (pass --force to force enablement)

Code:
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/__init__.py", line 60, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from .module import Module, StandbyModule  # noqa: F401
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/module.py", line 30, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from .controllers import Router, json_error_page
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 1, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from ._api_router import APIRouter
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/controllers/_api_router.py", line 1, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from ._router import Router
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/controllers/_router.py", line 7, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from ._base_controller import BaseController
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 11, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from ..services.auth import AuthManager, JwtManager
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/usr/share/ceph/mgr/dashboard/services/auth.py", line 12, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     import jwt
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/jwt/__init__.py", line 1, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from .api_jwk import PyJWK, PyJWKSet
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/jwt/api_jwk.py", line 6, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from .algorithms import get_default_algorithms
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/jwt/algorithms.py", line 6, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from .utils import (
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/jwt/utils.py", line 7, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from cryptography.hazmat._oid import ObjectIdentifier
Sep 23 20:33:18 hv02 ceph-mgr[661611]:   File "/lib/python3/dist-packages/cryptography/hazmat/_oid.py", line 7, in <module>
Sep 23 20:33:18 hv02 ceph-mgr[661611]:     from cryptography.hazmat.bindings._rust import (
Sep 23 20:33:18 hv02 ceph-mgr[661611]: ImportError: PyO3 modules may only be initialized once per interpreter process
Sep 23 20:33:18 hv02 ceph-mgr[661611]: 2023-09-23T20:33:18.772-0400 7fd6cf337280 -1 mgr[py] Class not found in module 'dashboard'
Sep 23 20:33:18 hv02 ceph-mgr[661611]: 2023-09-23T20:33:18.772-0400 7fd6cf337280 -1 mgr[py] Error loading module 'dashboard': (2) No such file or directory
 
Hi, I have the same problem. Were you able to find a fix ?
Code:
# ceph mgr module enable dashboard
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: PyO3 modules may only be initialized once per interpreter process (pass --force to force enablement)
 
it's a problem with a package that the ceph dashboard/mgr uses, there is currently no fix, and it requires pretty big changes either on the ceph side or with that particular package. PVE itself doesn't use any of those ceph features.
 
  • Like
Reactions: adelincusman
it's a problem with a package that the ceph dashboard/mgr uses, there is currently no fix, and it requires pretty big changes either on the ceph side or with that particular package. PVE itself doesn't use any of those ceph features.
Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!