Edge node status is showing "unknown" state in NSX manager even when Management plane and Data plane connectivity looks fine.
root user by entering the command st enroot user, navigate to the log file /var/log/syslog aphinfoservice.sock file.2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-rpc" tid="3610" level="INFO"] ConnectionKeeper[2 unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock] attempting connection2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-net" tid="3610" level="WARNING"] StreamConnection[15 Connecting to unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock sid:15] Couldn't connect to 'unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock' (error: 13-Permission denied)2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-net" tid="3610" level="WARNING"] StreamConnection[15 Error to unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock sid:-1] Error 13-Permission denied2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-rpc" tid="3610" level="WARNING"] RpcConnection[15 Connecting to unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock 0] Couldn't connect to unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock (error: 13-Permission denied)2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-rpc" tid="3610" level="WARNING"] RpcTransport[5] Unable to connect to unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock: 13-Permission denied2024-08-25T17:54:36.095Z nsx-edge-02 NSX 2967 - [nsx@6876 comp="nsx-edge" s2comp="nsx-rpc" tid="3610" level="INFO"] ConnectionKeeper[2 unix:///var/run/vmware/nsx-proxy/aphinfoservice.sock] scheduling connection attempt in 1000 ms
VMware NSX
Permission denied on APH (Appliance Proxy Hub) socket on Edge host connections as nsx-proxy user groupID is incorrect
By default, the nsx-proxy user groupID on NSX should be 155
root user by entering the command st enRun the command cat /etc/passwd |grep nsx-proxynsx-proxy:x:100002:100002::/home/nsx-proxy:/bin/false
cat /etc/group |grep nsx-proxynsx-proxy:x:100002:mpa,ua,dhcp,nsx-opsagent,nsxa,exporter,audit,admin,www-data,nsx-sha
groupID of nsx-proxy to 155 default value.groupmod -g 155 nsx-proxy
service nsx-proxy restart
nsx-proxy user is updated with proper groupID in /etc/passwd and /etc/group filescat /etc/passwd |grep nsx-proxynsx-proxy:x:155:155::/home/nsx-proxy:/bin/falsecat /etc/group |grep nsx-proxynsx-proxy:x:155:mpa,ua,dhcp,nsx-opsagent,nsxa,exporter,audit,admin,www-data,nsx-sha
ls -ld /run/vmware/nsx-proxy/aphinfoservice.socksrwxrwx--- 1 nsx-proxy nsx-proxy 0 Apr 7 02:16 ./run/vmware/nsx-proxy/aphinfoservice.sock
usermod -a -G nsx-proxy [user]