Tigervnc is starting and stopped immediately on a service restart

Hi all,

I am new to Manjaro and i want to switch from windows. I have recently bought Intel Nuc and installed ESXi and created a Manjaro 21.3 desktop edition vm.

To remote into the vm using vnc, i have installed tigervnc and below are my config. I have created a vncpasswd as well.

session i am using supported ones by using the one thats listed under /usr/share/xsessions/

~/.vnc/config
session=gnome
geometry=1920x1080
localhost
alwaysshared

/etc/tigervnc/vncserver.users
# TigerVNC User assignment
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
#
# :2=andrew
# :3=lisa
:5901=linux

But every time i restart the service starts and stops immediately.

[manjaro xsessions]# systemctl restart vncserver@:5901
[manjaro xsessions]# systemctl status vncserver@:5901
○ vncserver@:5901.service - Remote desktop service (VNC)
     Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; preset: disabled)
     Active: inactive (dead) since Fri 2022-07-29 05:41:41 IST; 3s ago
   Duration: 31ms
    Process: 2854 ExecStart=/usr/bin/vncsession-start :5901 (code=exited, status=0/SUCCESS)
   Main PID: 2861 (code=exited, status=0/SUCCESS)
        CPU: 10ms

Jul 29 05:41:41 manjaro systemd[1]: Starting Remote desktop service (VNC)...
Jul 29 05:41:41 manjaro systemd[1]: Started Remote desktop service (VNC).
Jul 29 05:41:41 manjaro systemd[1]: vncserver@:5901.service: Deactivated successfully.

Please point out what i am missing.

Read the documentation - why did you add three digits in front of the display number?