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

Error: received handshake message out of context #107

Closed
dec0dOS opened this issue Feb 7, 2017 · 17 comments
Closed

Error: received handshake message out of context #107

dec0dOS opened this issue Feb 7, 2017 · 17 comments
Labels

Comments

@dec0dOS
Copy link

dec0dOS commented Feb 7, 2017

Hi! I'm getting "Error: received handshake message out of context" in /var/log/openvas/gsad.log after startup.
logs.txt

Do you have any ideas about it?

@udiromano
Copy link

Same problem here...

@mikesplain
Copy link
Owner

Hmm how much memory do you have available? I've seen things like this when you're limiting docker's memory

@lancelakey
Copy link

I see the same error. I've configured Docker for Mac with 12 GB of memory.

@mikesplain
Copy link
Owner

@lancelakey can you provide your docker command to start the container and any logs?

@udiromano
Copy link

I solved the problem, i've stopped the gsad service and ran it manually like so:
/usr/sbin/gsad --listen=0.0.0.0 --port=4000 --mlisten=127.0.0.1 --mport=9390
@mikesplain is there any chance you'll change the Dockerfile to support that?

@mikesplain
Copy link
Owner

@udiromano Can you try the new build once #109 finishes building? That should fix it!

@mikesplain
Copy link
Owner

Closing due to inactivity. Please reopen if you're still seeing issues!

@lexfrei
Copy link

lexfrei commented Mar 5, 2018

Same on the latest. Details in logs.
Logs and creation: https://gist.github.com/lexfrei/4d8f4b994eadf886720fb3d479908d5d
Container inspect: https://gist.github.com/lexfrei/483a26da33cf2c46c8fdc3dd8d75031b

@lexfrei
Copy link

lexfrei commented Mar 7, 2018

@mikesplain I can't reopen this issue. Can you reopen it for me plz?

@mikesplain mikesplain reopened this Mar 7, 2018
@bjoernricks
Copy link

Are you still able to connect to gsad or is the connection refused? Which browser do you use when accessing gsad? The problem should be on the client side of gsad aka your browser see https://lists.gnu.org/archive/html/libmicrohttpd/2011-09/msg00003.html

@lexfrei
Copy link

lexfrei commented Mar 7, 2018

sviridkin@mbp:~$ curl localhost:443
curl: (52) Empty reply from server
✗: 52 @ Wed Mar  7 18:51:16 MSK 2018

Same in latest Safari and Chrome

UPD:
But it works with https prefix!

sviridkin@mbp:~$ curl https://localhost:443/  --insecure
<html><body>Code 303 - Redirecting to <a href="https://localhost/login/login.html">https://localhost/login/login.html<a/></body></html>
✓ @ Wed Mar  7 18:52:56 MSK 2018

UPD2:
So, it's not a bug. You can close this issue again :)

@bjoernricks
Copy link

My bet is gnutls handles some tls stuff more strictly then others.

@lexfrei
Copy link

lexfrei commented Mar 8, 2018

Worked as expected: there is no http handling on https port. It's not friendly, but correct.

@fredairic
Copy link

fredairic bot commented Jul 31, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@fredairic fredairic bot added stale and removed stale labels Jul 31, 2018
@fredairic
Copy link

fredairic bot commented Sep 29, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@fredairic fredairic bot added the stale label Sep 29, 2018
@dec0dOS dec0dOS closed this as completed Dec 6, 2018
@juanluisbaptiste
Copy link

Hi,

I'm getting this error but when running this image behind a reverse proxy like traefik.

Maybe it has to do with the fact that the proxy is terminating ssl ? I'm using letsencrypt certs in the traefik proxy, so there's no need to run openvas with ssl enabled. How can I disable https on this image to see if that's the issue?

thanks/

@moxli
Copy link

moxli commented Jun 26, 2020

@juanluisbaptiste you need to pass --http-only as a startup parameter to GSAD
I am not sure where to set it in this image.
https://www.mankier.com/8/gsad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants