[SOLVED] Can't create cluster. Could not create /etc/corosync/authkey: No such file or directory.

evoke0

New Member
Jun 17, 2023
2
2
1
Hello, I just upgraded from 7.4 to 8, everything went ok until now. I have 2 nodes at home, which I use in a cluster. The node I am having trouble with is the one I upgraded (both are, but the other one I had to do a fresh install).

I followed every step on the wiki and it all went fine, just a warning about quorum, as the cluster was composed of 2 nodes instead of 3. After upgrading I can no longer create a cluster. Even if I create the cluster on the second node I can't join the one not working fine.

P.S: It used to exist a cluster, but as I had to reinstall proxmox on the other node due to messing up the upgrade, I deleted it to start all over. Maybe that was the mistake? May I have messed up some things on the node so I can't create/join a cluster?

Here's the output:
Code:
corosync-keygen: Could not create /etc/corosync/authkey: No such file or directory
Corosync Cluster Engine Authentication key generator.
Gathering 2048 bits for key from /dev/urandom.
TASK ERROR: command '/usr/sbin/corosync-keygen -lk /etc/corosync/authkey' failed: exit code 2

There is no corosync directory inside /etc/
Code:
root@Proxmox-IntelNUC:~# cd /etc/corosync
-bash: cd: /etc/corosync: No such file or directory

Corosync is installed:
Code:
root@Proxmox-IntelNUC:~# whereis corosync
corosync: /usr/sbin/corosync /usr/share/corosync /usr/share/man/man8/corosync.8.gz

pveversion -v:
Code:
root@Proxmox-IntelNUC:~# pveversion -v
proxmox-ve: 8.0.1 (running kernel: 6.2.16-4-pve)
pve-manager: 8.0.3 (running version: 8.0.3/bbf3993334bfa916)
pve-kernel-6.2: 8.0.3
pve-kernel-5.15: 7.4-4
pve-kernel-6.2.16-4-pve: 6.2.16-4
pve-kernel-5.15.108-1-pve: 5.15.108-1
pve-kernel-5.15.102-1-pve: 5.15.102-1
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-3
libknet1: 1.25-pve1
libproxmox-acme-perl: 1.4.6
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.0
libpve-access-control: 8.0.3
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.0.6
libpve-guest-common-perl: 5.0.3
libpve-http-server-perl: 5.0.4
libpve-rs-perl: 0.8.4
libpve-storage-perl: 8.0.2
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-2
proxmox-backup-client: 3.0.1-1
proxmox-backup-file-restore: 3.0.1-1
proxmox-kernel-helper: 8.0.2
proxmox-mail-forward: 0.2.0
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.0.6
pve-cluster: 8.0.2
pve-container: 5.0.4
pve-docs: 8.0.4
pve-edk2-firmware: 3.20230228-4
pve-firewall: 5.0.2
pve-firmware: 3.7-1
pve-ha-manager: 4.0.2
pve-i18n: 3.0.5
pve-qemu-kvm: 8.0.2-3
pve-xtermjs: 4.16.0-3
qemu-server: 8.0.6
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.1.12-pve1
 
Last edited:

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!