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

Failing test: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/scan·cy·ts - Response console Scan operation: "before all" hook for ""scan --path" - should scan a file" "before all" hook for ""scan --path" - should scan a file" #187932

Open
kibanamachine opened this issue Jul 10, 2024 · 122 comments · Fixed by #188013
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Jul 10, 2024

A test failed on a tracked branch

CypressError: `cy.task('createEndpointHost')` failed with the following error:

> Command failed with exit code 1: vagrant ssh -- sudo ./elastic-agent-8.16.0-linux-x86_64/elastic-agent install --insecure --force --url https://172.18.0.1:8218 --enrollment-token V21nbm01QUJEMnEzZ21FRE5ZM2g6ZzRYOU43cGdTaVdiYl9yX0RKOUpPdw==
{"log.level":"warn","@timestamp":"2024-07-10T05:43:19.201Z","log.logger":"tls","log.origin":{"function":"github.com/elastic/elastic-agent-libs/transport/tlscommon.(*TLSConfig).ToConfig","file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-07-10T05:43:19.276Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).enrollWithBackoff","file.name":"cmd/enroll_cmd.go","file.line":518},"message":"Starting enrollment to URL: https://172.18.0.1:8218/","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-07-10T05:43:19.564Z","log.logger":"tls","log.origin":{"function":"github.com/elastic/elastic-agent-libs/transport/tlscommon.(*TLSConfig).ToConfig","file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-07-10T05:43:19.639Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).enrollWithBackoff","file.name":"cmd/enroll_cmd.go","file.line":524},"message":"1st enrollment attempt failed, retrying enrolling to URL: https://172.18.0.1:8218/ with exponential backoff (init 1s, max 10s)","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: status code: 400, fleet-server returned an error: UnsupportedVersion, message: version is not supported
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.16/fleet-troubleshooting.html
Error uninstalling. Printing logs
2024-07-10T05:43:19.826Z	DEBUG	[install]	Loaded configuration from /home/vagrant/elastic-agent-8.16.0-linux-x86_64/elastic-agent.yml
2024-07-10T05:43:19.826Z	DEBUG	[install]	Merged configuration from /home/vagrant/elastic-agent-8.16.0-linux-x86_64/elastic-agent.yml into result
2024-07-10T05:43:19.826Z	DEBUG	[install]	Merged all configuration files from [/home/vagrant/elastic-agent-8.16.0-linux-x86_64/elastic-agent.yml], no external input files
2024-07-10T05:43:19.827Z	DEBUG	[install.composable]	Starting controller for composable inputs
2024-07-10T05:43:19.827Z	DEBUG	[install.composable]	Started controller for composable inputs
2024-07-10T05:43:19.828Z	DEBUG	[install.composable]	Variable state changed for composable inputs; debounce started
2024-07-10T05:43:19.829Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-07-10T05:43:19.829Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-07-10T05:43:19.829Z	DEBUG	[install.composable]	Kubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-07-10T05:43:19.829Z	DEBUG	[install.composable]	kubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-07-10T05:43:19.831Z	INFO	[install.composable.providers.docker]	Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2024-07-10T05:43:19.928Z	DEBUG	[install.composable]	Computing new variable state for composable inputs
2024-07-10T05:43:19.929Z	DEBUG	[install.composable]	Stopping controller for composable inputs
2024-07-10T05:43:20.032Z	DEBUG	[install.composable]	Stopped controller for composable inputs
Error: enroll command failed for unknown reason: exit status 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.16/fleet-troubleshooting.html

[    ] Copying install files  [0s] 
                                   

[=== ] Successfully copied files  [34s] 
                                        

[=== ] Installing service  [34s] 
                                        

[=== ] Installed service  [34s] 
                                        

[=== ] Starting Service  [34s] 
                                        

[=== ] Service Started  [34s] Elastic Agent successfully installed, starting enrollment.

                                        

[=== ] Enrolling Elastic Agent with Fleet  [34s] 
                                                 

[=== ] Waiting For Enroll...  [34s] 
                                                 

[=== ] Failed to Enroll  [35s] 
                                                 

[=== ] Stopping Service  [35s] 
                                                 

[==  ] Successfully Stopped Service  [35s] 
                                                 

[==  ] Uninstalling  [35s] 
                                                 

[==  ] Service already stopped  [35s] 
                                                 

[=   ] Stopping upgrade watcher; none found  [35s] 
                                                   

[   =] Removing service  [36s] 
                                                   

[====] Successfully uninstalled service  [36s] 
                                                   

[====] Removing install directory  [36s] 
                                                   

[==  ] Removed install directory  [36s] 
                                                   

[==  ] Uninstalled  [36s] 

https://on.cypress.io/api/task

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Scan operation:`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at <unknown> (http://localhost:5618/__cypress/runner/cypress_runner.js:135281:70)
    at tryCatcher (http://localhost:5618/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5618/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5618/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5618/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5618/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://localhost:5618/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://localhost:5618/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://localhost:5618/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://localhost:5618/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at createEndpointHost (webpack:///./tasks/create_endpoint_host.ts:15:12)
    at Context.eval (webpack:///./e2e/response_actions/response_console/scan.cy.ts:60:40)

From Node.js Internals:
  Error: Command failed with exit code 1: vagrant ssh -- sudo ./elastic-agent-8.16.0-linux-x86_64/elastic-agent install --insecure --force --url https://172.18.0.1:8218 --enrollment-token V21nbm01QUJEMnEzZ21FRE5ZM2g6ZzRYOU43cGdTaVdiYl9yX0RKOUpPdw==
  {"log.level":"warn","@timestamp":"2024-07-10T05:43:19.201Z","log.logger":"tls","log.origin":{"function":"github.com/elastic/elastic-agent-libs/transport/tlscommon.(*TLSConfig).ToConfig","file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}
  {"log.level":"info","@timestamp":"2024-07-10T05:43:19.276Z","log.origin":{"func
[report_failure] output truncated to 8192 characters

First failure: kibana-on-merge - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jul 10, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@botelastic botelastic bot added the needs-team Issues missing a team label label Jul 10, 2024
@kibanamachine kibanamachine added the Team:Defend Workflows “EDR Workflows” sub-team of Security Solution label Jul 10, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jul 10, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@jbudz
Copy link
Member

jbudz commented Jul 10, 2024

/skip

@kibanamachine
Copy link
Contributor Author

Skipped

main: 94a639f

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants