Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find gvmd.sock #46

Closed
jskyfacts opened this issue Jun 19, 2020 · 7 comments
Closed

Cannot find gvmd.sock #46

jskyfacts opened this issue Jun 19, 2020 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jskyfacts
Copy link

I am using python-gvm for automation with the docker image but while establishing connection it fails saying "could not find /usr/local/var/run/gvmd.sock"
The file doesn't exist in this folder, also checked other folder /var/run etc. Couldn't find it anywhere.

@pixelsquared pixelsquared self-assigned this Jun 19, 2020
@pixelsquared pixelsquared changed the title Cannot find gvmd.sock Cannot find gvmd.sock (CU-8gcpb1) Jun 19, 2020
@pixelsquared
Copy link
Member

This container has the GVM listen on port 9390 not on a socket

@jskyfacts
Copy link
Author

But the earlier build of the container used sockets. Because it worked for me earlier.
This means I cannot use UnixSocketConnection from python-gvm or there is a way of enabling it? Or any alternative?

@pixelsquared
Copy link
Member

Take a look at this comment: #43 (comment)

@eugenbesel
Copy link

This container has the GVM listen on port 9390 not on a socket

how can I use port 9390?
I have started gvm container
docker run --detach --publish 8080:9392 --env PASSWORD="Your admin password here" --volume gvm-data:/data --name gvm securecompliance/gvm
and when I try to connect via openssl:
sudo openssl s_client -connect localhost:9390
then I didnt work. Do I need private or public key for it? If yes where can I find it?

thank you for your andwer.

@pixelsquared pixelsquared changed the title Cannot find gvmd.sock (CU-8gcpb1) Cannot find gvmd.sock Sep 11, 2020
@pixelsquared
Copy link
Member

You will need to expose the GVM port by adding --publish 9390:9390 to the docker run command.

@gnikoloudakis
Copy link

gnikoloudakis commented Dec 15, 2020

@jskyfacts You have to replace su -c "gvmd --listen=0.0.0.0 --port=9390" gvm in the start.sh with su -c "gvmd --unix-socket=/data/gvmd/gvmd.sock" gvm. This will create a socket in the /data/gvmd folder

@austinsonger
Copy link
Contributor

This was added to gitbook documentation

@austinsonger austinsonger added documentation Improvements or additions to documentation and removed Add To Wiki labels Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Documentation
Awaiting triage
Development

No branches or pull requests

5 participants