Socket error

I am getting socket error given below
gvm-cli socket --sockpath /var/run/gvmd.sock --xml “<get_version/>”
Traceback (most recent call last):
File “/usr/local/bin/gvm-cli”, line 10, in
File “/usr/local/lib/python3.6/site-packages/gvmtools/”, line 127, in main
with protocol_class(connection, transform=transform) as protocol:
File “/usr/local/lib/python3.6/site-packages/gvm/protocols/”, line 78, in enter
File “/usr/local/lib/python3.6/site-packages/gvm/protocols/”, line 107, in connect
File “/usr/local/lib/python3.6/site-packages/gvm/”, line 353, in connect
) from None
gvm.errors.GvmError: Socket /usr/local/var/run/gvmd.sock does not exist

although i have the file present at /var/run path but i am getting
[root@openvas seceon]# cat /var/run/gvmd.sock
cat: /var/run/gvmd.sock: No such device or address

what will be the resolution

Do you have a socket there ? Please fix your gvmd installation.

Please try --socketpath as argument instead of --sockpath.


Thanks it worked