Symptoms
The p0f service fails to start, and this error appears when you run /scripts/restartsrv_p0f
:
SYSTEM ERROR : bind() on '/var/cpanel/userhomes/cpanelconnecttrack/p0f.socket' failed.
Description
This error appears because the /var/cpanel/userhomes/cpanelconnecttrack
directory is missing:
[root@server]# ls -l /var/cpanel/userhomes/cpanelconnecttrack/
ls: cannot access /var/cpanel/userhomes/cpanelconnecttrack/: No such file or directory
Workaround
Recreate the /var/cpanel/userhomes/cpanelconnecttrack
directory, and assign it the proper ownership and permissions:
[root@server]# mkdir /var/cpanel/userhomes/cpanelconnecttrack
[root@server]# chown cpanelconnecttrack:cpanelconnecttrack /var/cpanel/userhomes/cpanelconnecttrack
[root@server]# chmod 0711 /var/cpanel/userhomes/cpanelconnecttrack/
[root@server]# ls -ld /var/cpanel/userhomes/cpanelconnecttrack/
drwx--x--x 2 cpanelconnecttrack cpanelconnecttrack 4096 2020-11-17 01:34 /var/cpanel/userhomes/cpanelconnecttrack/