I can't create a cluster

grzech1991

New Member
Mar 11, 2023
12
0
1
Hi!
I have a problem with proxmox, I can't join the cluster, the message:

Are you sure you want to continue connecting (yes/no)? Login succeeded.
check cluster join API version
No cluster network links passed explicitly, fallback to local node IP ''
Request addition of this node
An error occurred on the cluster node: can't add existing node 'pve'
TASK ERROR: Cluster join aborted!

When I change the hostname to another according to this instruction:
https://pve.proxmox.com/wiki/Renaming_a_PVE_node
/etc/hosts
/etc/hostname

Network or browser doesn't get up, I have to log in via monitor, restore the previous name and do a reboot
Any ideas?

Proxmox 8.0
 
Hi! What do you want to archieve? Please post?
  • /etc/pve/corosync.conf
  • /etc/hosts
  • /etc/hostname
No cluster network links passed explicitly, fallback to local node IP ''

This sounds like you did not define the link for the cluster-network? Could you try using the UI, it has the same features for the thing you want to archieve. Please also post the output of the files from above from all nodes that are part or will be part of a cluster. If you use cli, post the command you are using for cluster-join/cluster-create.
 
Hi
lets see if there is something in the journal why the renaming did not work. Can you give me the output of journalctl --since "2023-09-09" > $(hostname)-journal.txt
 
root@pve:~# journalctl --since "2023-09-11" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-10" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-09" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-9" > $(hostname)-journal.txt

i try connect cluster to this:

1694447648012.png

From this:

1694447707145.png

both servers have promox in the same version, updated on the same day.

It looks like the wrong hostname (same in both).

After using proxmox wikipedia, the server does not get up (hostname change).

I want to make a cluster of two servers.
 
root@pve:~# journalctl --since "2023-09-11" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-10" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-09" > $(hostname)-journal.txt
root@pve:~# journalctl --since "2023-09-9" > $(hostname)-journal.txt
I actually mean the files that the output generates

On your example this host is still called pve. Have you rebooted after the rename?
 
After typing these commands, nothing happens - a empty log?

If I change the host data according to wikipedia and restart the server, proxmox does not get up. I only have a clean terminal available via iLO on the server (equivalent of idrac on dell). If I undo the changes to the files, reboot - then it gets up again. Really, I do not know what I am doing wrong. I'm doing it according to wikipedia, but this is an article from 2012 I think, then something may have changed by then.
 
can you show me the
After typing these commands, nothing happens - a empty log?
no file has been created in the folder you executed this?

can you share the /etc/hostname and /etc/hosts file?
 
no file has been created in the folder you executed this?
sorry, i think i see in the terminal results.

Sep 12 01:17:01 pve CRON[2143263]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 01:17:01 pve CRON[2143264]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 01:17:01 pve CRON[2143263]: pam_unix(cron:session): session closed for user root
Sep 12 02:17:01 pve CRON[2169632]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 02:17:01 pve CRON[2169633]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 02:17:01 pve CRON[2169632]: pam_unix(cron:session): session closed for user root
Sep 12 02:18:19 pve systemd[1]: Starting man-db.service - Daily man-db regeneration...
Sep 12 02:18:19 pve systemd[1]: man-db.service: Deactivated successfully.
Sep 12 02:18:19 pve systemd[1]: Finished man-db.service - Daily man-db regeneration.
Sep 12 02:28:24 pve systemd[1]: Starting pve-daily-update.service - Daily PVE download activities...
Sep 12 02:28:26 pve pveupdate[2174631]: <root@pam> starting task UPID:pve:00212EAC:0537252E:64FFB0AA:aptupdate::root@pam:
Sep 12 02:28:28 pve pveupdate[2174636]: update new package list: /var/lib/pve-manager/pkgupdates
Sep 12 02:28:33 pve pveupdate[2174631]: <root@pam> end task UPID:pve:00212EAC:0537252E:64FFB0AA:aptupdate::root@pam: OK
Sep 12 02:28:33 pve systemd[1]: pve-daily-update.service: Deactivated successfully.
Sep 12 02:28:33 pve systemd[1]: Finished pve-daily-update.service - Daily PVE download activities.
Sep 12 02:28:33 pve systemd[1]: pve-daily-update.service: Consumed 8.863s CPU time.
Sep 12 03:10:01 pve CRON[2193473]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 03:10:01 pve CRON[2193474]: (root) CMD (test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r)
Sep 12 03:10:01 pve CRON[2193473]: pam_unix(cron:session): session closed for user root
Sep 12 03:17:01 pve CRON[2196533]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 03:17:01 pve CRON[2196534]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 03:17:01 pve CRON[2196533]: pam_unix(cron:session): session closed for user root
Sep 12 04:17:01 pve CRON[2222900]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 04:17:01 pve CRON[2222901]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 04:17:01 pve CRON[2222900]: pam_unix(cron:session): session closed for user root
Sep 12 04:21:19 pve systemd[1]: Starting apt-daily.service - Daily apt download activities...
Sep 12 04:21:20 pve systemd[1]: apt-daily.service: Deactivated successfully.
Sep 12 04:21:20 pve systemd[1]: Finished apt-daily.service - Daily apt download activities.
Sep 12 05:17:01 pve CRON[2249286]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 05:17:01 pve CRON[2249288]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 05:17:01 pve CRON[2249286]: pam_unix(cron:session): session closed for user root
Sep 12 06:17:01 pve CRON[2275629]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 06:17:01 pve CRON[2275630]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 06:17:01 pve CRON[2275629]: pam_unix(cron:session): session closed for user root
Sep 12 06:25:01 pve CRON[2279165]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 06:25:01 pve CRON[2279166]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; })
Sep 12 06:25:01 pve CRON[2279165]: pam_unix(cron:session): session closed for user root
Sep 12 06:36:19 pve systemd[1]: Starting apt-daily-upgrade.service - Daily apt upgrade and clean activities...
Sep 12 06:36:20 pve systemd[1]: apt-daily-upgrade.service: Deactivated successfully.
Sep 12 06:36:20 pve systemd[1]: Finished apt-daily-upgrade.service - Daily apt upgrade and clean activities.
Sep 12 07:17:01 pve CRON[2302057]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 07:17:01 pve CRON[2302058]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 07:17:01 pve CRON[2302057]: pam_unix(cron:session): session closed for user root
Sep 12 08:17:01 pve CRON[2328399]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 08:17:01 pve CRON[2328401]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 08:17:01 pve CRON[2328399]: pam_unix(cron:session): session closed for user root
Sep 12 09:17:01 pve CRON[2354764]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 09:17:01 pve CRON[2354765]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 09:17:01 pve CRON[2354764]: pam_unix(cron:session): session closed for user root
Sep 12 10:17:01 pve CRON[2381115]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 10:17:01 pve CRON[2381116]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 10:17:01 pve CRON[2381115]: pam_unix(cron:session): session closed for user root
Sep 12 11:17:01 pve CRON[2407468]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 11:17:01 pve CRON[2407469]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 11:17:01 pve CRON[2407468]: pam_unix(cron:session): session closed for user root
Sep 12 11:21:19 pve systemd[1]: Starting apt-daily.service - Daily apt download activities...
Sep 12 11:21:20 pve systemd[1]: apt-daily.service: Deactivated successfully.
Sep 12 11:21:20 pve systemd[1]: Finished apt-daily.service - Daily apt download activities.
Sep 12 11:27:11 pve pvestatd[1223]: auth key pair too old, rotating..
Sep 12 12:17:01 pve CRON[2433868]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 12:17:01 pve CRON[2433869]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 12:17:01 pve CRON[2433868]: pam_unix(cron:session): session closed for user root
Sep 12 13:17:01 pve CRON[2460219]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 13:17:01 pve CRON[2460220]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 13:17:01 pve CRON[2460219]: pam_unix(cron:session): session closed for user root
Sep 12 14:17:01 pve CRON[2486559]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 14:17:01 pve CRON[2486561]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 14:17:01 pve CRON[2486559]: pam_unix(cron:session): session closed for user root
Sep 12 15:17:01 pve CRON[2512933]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 15:17:01 pve CRON[2512934]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 15:17:01 pve CRON[2512933]: pam_unix(cron:session): session closed for user root
Sep 12 16:17:01 pve CRON[2539221]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 12 16:17:01 pve CRON[2539222]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Sep 12 16:17:01 pve CRON[2539221]: pam_unix(cron:session): session closed for user root
Sep 12 17:13:39 pve pvedaemon[1255]: <root@pam> successful auth for user 'root@pam'
Sep 12 17:13:54 pve pvedaemon[2564245]: starting termproxy UPID:pve:00272095:0588366A:65008032:vncshell::root@pam:
Sep 12 17:13:54 pve pvedaemon[1256]: <root@pam> starting task UPID:pve:00272095:0588366A:65008032:vncshell::root@pam:
Sep 12 17:13:54 pve pvedaemon[1255]: <root@pam> successful auth for user 'root@pam'
Sep 12 17:13:54 pve login[2564248]: pam_unix(login:session): session opened for user root(uid=0) by root(uid=0)
Sep 12 17:13:54 pve systemd-logind[826]: New session 299 of user root.
Sep 12 17:13:54 pve systemd[1]: Created slice user-0.slice - User Slice of UID 0.
Sep 12 17:13:54 pve systemd[1]: Starting user-runtime-dir@0.service - User Runtime Directory /run/user/0...
Sep 12 17:13:54 pve systemd[1]: Finished user-runtime-dir@0.service - User Runtime Directory /run/user/0.
Sep 12 17:13:54 pve systemd[1]: Starting user@0.service - User Manager for UID 0...
Sep 12 17:13:54 pve (systemd)[2564254]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
Sep 12 17:13:55 pve systemd[2564254]: Queued start job for default target default.target.
Sep 12 17:13:55 pve systemd[2564254]: Created slice app.slice - User Application Slice.
Sep 12 17:13:55 pve systemd[2564254]: Reached target paths.target - Paths.
Sep 12 17:13:55 pve systemd[2564254]: Reached target timers.target - Timers.
Sep 12 17:13:55 pve systemd[2564254]: Starting dbus.socket - D-Bus User Message Bus Socket...
Sep 12 17:13:55 pve systemd[2564254]: Listening on dirmngr.socket - GnuPG network certificate management daemon.
Sep 12 17:13:55 pve systemd[2564254]: Listening on gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers).
Sep 12 17:13:55 pve systemd[2564254]: Listening on gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted).
Sep 12 17:13:55 pve systemd[2564254]: Listening on gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation).
Sep 12 17:13:55 pve systemd[2564254]: Listening on gpg-agent.socket - GnuPG cryptographic agent and passphrase cache.
Sep 12 17:13:55 pve systemd[2564254]: Listening on dbus.socket - D-Bus User Message Bus Socket.
Sep 12 17:13:55 pve systemd[2564254]: Reached target sockets.target - Sockets.
Sep 12 17:13:55 pve systemd[2564254]: Reached target basic.target - Basic System.
Sep 12 17:13:55 pve systemd[2564254]: Reached target default.target - Main User Target.
Sep 12 17:13:55 pve systemd[2564254]: Startup finished in 350ms.
Sep 12 17:13:55 pve systemd[1]: Started user@0.service - User Manager for UID 0.
Sep 12 17:13:55 pve systemd[1]: Started session-299.scope - Session 299 of User root.
Sep 12 17:13:55 pve login[2564271]: ROOT LOGIN on '/dev/pts/0'
Sep 12 17:14:54 pve systemd[1]: session-299.scope: Deactivated successfully.
Sep 12 17:14:54 pve systemd-logind[826]: Session 299 logged out. Waiting for processes to exit.
Sep 12 17:14:54 pve systemd-logind[826]: Removed session 299.
Sep 12 17:14:54 pve pvedaemon[1256]: <root@pam> end task UPID:pve:00272095:0588366A:65008032:vncshell::root@pam: OK
Sep 12 17:15:01 pve pvedaemon[1255]: <root@pam> starting task UPID:pve:002722AD:0588508D:65008075:clusterjoin::root@pam:
Sep 12 17:15:01 pve pvedaemon[2564781]: An error occurred on the cluster node: can't add existing node 'pve'
Sep 12 17:15:01 pve pvedaemon[2564781]: Cluster join aborted!
Sep 12 17:15:01 pve pvedaemon[1255]: <root@pam> end task UPID:pve:002722AD:0588508D:65008075:clusterjoin::root@pam: Cluster join aborted!
Sep 12 17:15:04 pve pvedaemon[1257]: <root@pam> starting task UPID:pve:002722C1:058851E5:65008078:vncshell::root@pam:
Sep 12 17:15:04 pve pvedaemon[2564801]: starting termproxy UPID:pve:002722C1:058851E5:65008078:vncshell::root@pam:
Sep 12 17:15:04 pve systemd[1]: Stopping user@0.service - User Manager for UID 0...
Sep 12 17:15:04 pve systemd[2564254]: Activating special unit exit.target...
Sep 12 17:15:04 pve systemd[2564254]: Stopped target default.target - Main User Target.
Sep 12 17:15:04 pve systemd[2564254]: Stopped target basic.target - Basic System.
Sep 12 17:15:04 pve systemd[2564254]: Stopped target paths.target - Paths.
Sep 12 17:15:04 pve systemd[2564254]: Stopped target sockets.target - Sockets.
Sep 12 17:15:04 pve systemd[2564254]: Stopped target timers.target - Timers.
Sep 12 17:15:04 pve systemd[2564254]: Closed dbus.socket - D-Bus User Message Bus Socket.
Sep 12 17:15:04 pve systemd[2564254]: Closed dirmngr.socket - GnuPG network certificate management daemon.
Sep 12 17:15:04 pve systemd[2564254]: Closed gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers).
Sep 12 17:15:04 pve systemd[2564254]: Closed gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted).
Sep 12 17:15:04 pve systemd[2564254]: Closed gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation).
Sep 12 17:15:04 pve systemd[2564254]: Closed gpg-agent.socket - GnuPG cryptographic agent and passphrase cache.
Sep 12 17:15:04 pve systemd[2564254]: Removed slice app.slice - User Application Slice.
Sep 12 17:15:04 pve systemd[2564254]: Reached target shutdown.target - Shutdown.
Sep 12 17:15:04 pve systemd[2564254]: Finished systemd-exit.service - Exit the Session.
Sep 12 17:15:04 pve systemd[2564254]: Reached target exit.target - Exit the Session.
Sep 12 17:15:04 pve (sd-pam)[2564255]: pam_unix(systemd-user:session): session closed for user root
Sep 12 17:15:04 pve systemd[1]: user@0.service: Deactivated successfully.
Sep 12 17:15:04 pve systemd[1]: Stopped user@0.service - User Manager for UID 0.
Sep 12 17:15:04 pve pvedaemon[1256]: <root@pam> successful auth for user 'root@pam'
Sep 12 17:15:05 pve login[2564804]: pam_unix(login:session): session opened for user root(uid=0) by root(uid=0)
Sep 12 17:15:05 pve systemd[1]: Stopping user-runtime-dir@0.service - User Runtime Directory /run/user/0...
Sep 12 17:15:05 pve systemd-logind[826]: New session 301 of user root.
Sep 12 17:15:05 pve systemd[1]: run-user-0.mount: Deactivated successfully.
Sep 12 17:15:05 pve systemd[1]: user-runtime-dir@0.service: Deactivated successfully.
Sep 12 17:15:05 pve systemd[1]: Starting user-runtime-dir@0.service - User Runtime Directory /run/user/0...
Sep 12 17:15:05 pve systemd[1]: Finished user-runtime-dir@0.service - User Runtime Directory /run/user/0.
Sep 12 17:15:05 pve systemd[1]: Starting user@0.service - User Manager for UID 0...
Sep 12 17:15:05 pve (systemd)[2564813]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
Sep 12 17:15:05 pve systemd[2564813]: Queued start job for default target default.target.
Sep 12 17:15:05 pve systemd[2564813]: Created slice app.slice - User Application Slice.
Sep 12 17:15:05 pve systemd[2564813]: Reached target paths.target - Paths.
Sep 12 17:15:05 pve systemd[2564813]: Reached target timers.target - Timers.
Sep 12 17:15:05 pve systemd[2564813]: Starting dbus.socket - D-Bus User Message Bus Socket...
Sep 12 17:15:05 pve systemd[2564813]: Listening on dirmngr.socket - GnuPG network certificate management daemon.
Sep 12 17:15:05 pve systemd[2564813]: Listening on gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers).
Sep 12 17:15:05 pve systemd[2564813]: Listening on gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted).
Sep 12 17:15:05 pve systemd[2564813]: Listening on gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation).
Sep 12 17:15:05 pve systemd[2564813]: Listening on gpg-agent.socket - GnuPG cryptographic agent and passphrase cache.
Sep 12 17:15:05 pve systemd[2564813]: Listening on dbus.socket - D-Bus User Message Bus Socket.
Sep 12 17:15:05 pve systemd[2564813]: Reached target sockets.target - Sockets.
Sep 12 17:15:05 pve systemd[2564813]: Reached target basic.target - Basic System.
Sep 12 17:15:05 pve systemd[2564813]: Reached target default.target - Main User Target.
Sep 12 17:15:05 pve systemd[2564813]: Startup finished in 316ms.
Sep 12 17:15:05 pve systemd[1]: Started user@0.service - User Manager for UID 0.
Sep 12 17:15:05 pve systemd[1]: Started session-301.scope - Session 301 of User root.

root@pve:~# cat /etc/hostname
pve

root@pve:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.0.124 pve.proxmox pve

# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 
Glad to hear! If your problem is solved, please set this thread to "solved" so in the future people find the solution more easy :)
 
Yeah, it certainly isn't.. The rename didn't go through, to say certain one would need much more details, not just a short journalctl excerpt, and ideally know the full steps you've done. The name change could have either failed because some clustering was already half-configured or because some steps got simply left out.

Now that you formatted the node the logs are lost, so we cannot say for certain what the actual issue was, but if such things happen again (to you, or anybody else, reading this in the future) please also check the failed services:
systemctl --failed

Check for any leftovers of the old name, especially in /etc/hostname and /etc/hosts and /etc/corosync/corosync.conf (which jsterr request first but was never answered...)
 
  • Like
Reactions: jsterr

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!