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
sys.exit(main())
File “/usr/local/lib/python3.6/site-packages/gvmtools/cli.py”, line 127, in main
with protocol_class(connection, transform=transform) as protocol:
File “/usr/local/lib/python3.6/site-packages/gvm/protocols/gmp.py”, line 78, in enter
self.connect()
File “/usr/local/lib/python3.6/site-packages/gvm/protocols/base.py”, line 107, in connect
self._connection.connect()
File “/usr/local/lib/python3.6/site-packages/gvm/connections.py”, 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.

2 Likes

Thanks it worked