[SOLVED] Ceph is kicking my ass

arnovbxl

New Member
May 27, 2025
5
4
3
I've tried installing ceph, but i instantly just got a "Got Timeout 500". I tried deleting it alltogether with these commands I found on this forum:
rm -rf /etc/systemd/system/ceph*
killall -9 ceph-mon ceph-mgr ceph-mds
rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/
pveceph purge
apt -y purge ceph-mon ceph-osd ceph-mgr ceph-mds
rm /etc/init.d/ceph
for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done
dpkg-reconfigure ceph-base
dpkg-reconfigure ceph-mds
dpkg-reconfigure ceph-common
dpkg-reconfigure ceph-fuse
for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done

Going back to GUI to try and install it, it just gives me errors everywhere:

HINT: The no-subscription repository is not the best choice for production setups.
Proxmox recommends using the enterprise repository with a valid subscription.
update available package list
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bookworm/InRelease 401 Unauthorized [IP: 45.84.67.184 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bookworm InRelease' is not signed.
start installation
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ceph-common is already the newest version (19.2.2-1~bpo12+1).
ceph-fuse is already the newest version (19.2.2-1~bpo12+1).
gdisk is already the newest version (1.0.9-2.1).
nvme-cli is already the newest version (2.4+really2.3-3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ceph-mds : Depends: ceph-base (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
ceph-mgr : Depends: ceph-base (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
Depends: ceph-mgr-modules-core (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
Depends: libsqlite3-mod-ceph (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
Depends: librados2 (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
ceph-mon : Depends: ceph-base (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
ceph-osd : Depends: ceph-base (= 19.2.1-pve3) but 19.2.2-1~bpo12+1 is to be installed
E: Unable to correct problems, you have held broken packages.
apt failed during ceph installation (25600)

I fixed it using this solution:
Proxmox Ceph Fix & Downgrade Guide

Problem:

Ceph 19.x was installed via incorrect repos (Debian or wrong Proxmox version), causing:
- GUI to break or not detect Ceph
- `apt` dependency hell
- Inconsistent `ceph --version` and `pveceph` status
Goal:
Downgrade to Ceph 17.2.8-pve2 and restore proper integration with Proxmox.

---
1. **Clean up conflicting Ceph 19.x packages**

Forcefully purge everything related to Ceph:
```
dpkg --purge --force-all ceph-base ceph-common ceph-fuse libcephfs2 librados2 librados2-perl libradosstriper1 librbd1 librgw2 \ python3-ceph-argparse python3-ceph-common python3-cephfs python3-rados python3-rbd python3-rgw`
```
Also remove leftover config/data:
`rm -rf /etc/ceph /var/lib/ceph /var/log/ceph /usr/lib/ceph`

---
. **Fix your APT sources**

Ensure you have only one line for Ceph **from Proxmox**, and **no conflicting Ceph repo in `/etc/apt/sources.list`**.
### ➤ Clean `/etc/apt/sources.list`:

`nano /etc/apt/sources.list`

Make sure it only contains:
```
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
```
Create `/etc/apt/sources.list.d/ceph.list`:

`echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list`

`apt clean apt update`

---
3. Fixing broken packages

`apt --fix-broken install`

If that doesn’t resolve anything, skip to the full install step.

---
4. **Install Ceph 17.2.8-pve2 and all dependencies**

Use **a single install command** to avoid dependency resolution failures:

`apt install \ ceph=17.2.8-pve2 ceph-common=17.2.8-pve2 ceph-base=17.2.8-pve2 ceph-fuse=17.2.8-pve2 \ ceph-mgr=17.2.8-pve2 ceph-mon=17.2.8-pve2 ceph-osd=17.2.8-pve2 ceph-volume=17.2.8-pve2 \ librados2=17.2.8-pve2 libradosstriper1=17.2.8-pve2 librbd1=17.2.8-pve2 librgw2=17.2.8-pve2 \ libcephfs2=17.2.8-pve2 librados2-perl=1.4.0 python3-ceph-argparse=17.2.8-pve2 \ python3-ceph-common=17.2.8-pve2 python3-cephfs=17.2.8-pve2 python3-rados=17.2.8-pve2 \ python3-rbd=17.2.8-pve2 python3-rgw=17.2.8-pve2 ceph-mgr-modules-core=17.2.8-pve2 \ libsqlite3-mod-ceph=17.2.8-pve2`

---

5. **Install missing base packages**

Some required by Ceph MGR modules:

`apt install sudo python3-bcrypt python3-natsort python3-pecan python3-werkzeug libpython3.11 python3.11`

Also try:

`apt install python3-cherrypy3`

---

6. **Verify install**
`ceph --version # should return 17.2.8-pve2
 
Last edited:
I fixed it i think, but it took a lot more than that.
Great!

You might post the pitfalls you trapped into here (for other people to avoid them) and tag this thread "Solved" - there is an "Edit Thread" button above the first post.
 
  • Like
Reactions: arnovbxl
Great!

You might post the pitfalls you trapped into here (for other people to avoid them) and tag this thread "Solved" - there is an "Edit Thread" button above the first post.
Im writing out my solution, then ill post it, i warn you it is everything but elegant...
 
  • Like
Reactions: UdoB