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

Proxy-scanner - Failed to connect to lacework-scanner-proxy-scanner.lacework.svc.cluster.local port 8080 after 3 ms: Connection refused #106

Closed
shyamjos opened this issue Sep 20, 2022 · 1 comment

Comments

@shyamjos
Copy link

shyamjos commented Sep 20, 2022

After deploying the proxy scanner using the official helm chart we are unable to do an on-demand scan, getting connection refused error, from the logs we can see that server is listening on port 8080 but not responding when we curl the service

image version 0.9.0

Proxy scanner logs

[WARNING]:   2022-09-20 07:15:08 - Error while loading cache file. Scanner will start with bootstap mode: open /opt/lacework/lacework_proxy_scanner_state.json.gz: no such file or directory 
[ERROR]:   2022-09-20 07:15:08 - Error while loading cache. Running in bootstrap mode. open /opt/lacework/lacework_proxy_scanner_state.json.gz: no such file or directory 
[INFO]:   2022-09-20 07:15:13 - Starting server.. 
[INFO]:   2022-09-20 07:15:13 - ScanDataHandlerWorker #1: Starting.. 
[INFO]:   2022-09-20 07:15:13 - RegistryScannerWorkers #0: Starting.. 
[INFO]:   2022-09-20 07:15:13 - Listener started 
[INFO]:   2022-09-20 07:15:13 - server started successfully on port 8080 

curl output

curl lacework-scanner-proxy-scanner.lacework.svc.cluster.local:8080
curl: (7) Failed to connect to lacework-scanner-proxy-scanner.lacework.svc.cluster.local port 8080 after 3 ms: Connection refused

@shyamjos
Copy link
Author

We fixed this issue, If the .Values.name is defined and the user passes release name via helm cli , then we should set selector as {{ include "scanner.fullname" . }} otherwise service will become inaccessible.

Also created a PR #112

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

No branches or pull requests

1 participant