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

[Flaky test] TestFilebeat/Filebeat_crashes_due_to_incorrect_config - "Exiting: Failed to start crawler" #42778

Open
AndersonQ opened this issue Feb 19, 2025 · 2 comments
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@AndersonQ
Copy link
Member

Flaky Test

Stack Trace

2025-02-17 16:52:03 CEST	=== Failed
2025-02-17 16:52:03 CEST	=== FAIL: filebeat/testing/integration TestFilebeat/Filebeat_crashes_due_to_incorrect_config (30.02s)
2025-02-17 16:52:03 CEST	    integration.go:151: running filebeat integration test...
2025-02-17 16:52:03 CEST	    run_beat.go:132: preparing to run filebeat...
2025-02-17 16:52:03 CEST	    run_beat.go:315: searching for the filebeat directory, starting with C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\testing\integration...
2025-02-17 16:52:03 CEST	    run_beat.go:330: found filebeat directory at C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat
2025-02-17 16:52:03 CEST	    run_beat.go:145: temporary config has been created at C:\Users\BUILDK~1\AppData\Local\Temp\TestFilebeatFilebeat_crashes_due_to_incorrect_config28719075\001\filebeat.yml
2025-02-17 16:52:03 CEST	    run_beat.go:161: running C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\filebeat.exe -e -c C:\Users\BUILDK~1\AppData\Local\Temp\TestFilebeatFilebeat_crashes_due_to_incorrect_config28719075\001\filebeat.yml -E logging.level=debug --path.home C:\Users\BUILDK~1\AppData\Local\Temp\TestFilebeatFilebeat_crashes_due_to_incorrect_config28719075\001\home
2025-02-17 16:52:03 CEST	    run_beat.go:215: C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\filebeat.exe is running (pid: 5032)
2025-02-17 16:52:03 CEST	    integration.go:181: filebeat stopped, exit code 1
2025-02-17 16:52:03 CEST	    integration.go:193:
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	        Expectations are not met:
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	         * to have a substring "Exiting: Failed to start crawler: starting input failed: error while initializing input: no path is configured"
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	    integration.go:298:
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	        Last 10 lines of the output:
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.217Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "crawler",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 71,
2025-02-17 16:52:03 CEST	            "file.name": "beater/crawler.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/beater.(*crawler).Start"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Loading Inputs: 1",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.217Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "crawler",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 117,
2025-02-17 16:52:03 CEST	            "file.name": "beater/crawler.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/beater.(*crawler).startInput"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "starting input, keys present on the config: [filebeat.inputs.0.id filebeat.inputs.0.type]",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "crawler",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 155,
2025-02-17 16:52:03 CEST	            "file.name": "beater/crawler.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Stopping Crawler",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "crawler",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 165,
2025-02-17 16:52:03 CEST	            "file.name": "beater/crawler.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Stopping 0 inputs",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "crawler",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 185,
2025-02-17 16:52:03 CEST	            "file.name": "beater/crawler.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/beater.(*crawler).Stop"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Crawler stopped",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "registrar",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 130,
2025-02-17 16:52:03 CEST	            "file.name": "registrar/registrar.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Stop"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Stopping Registrar",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "debug",
2025-02-17 16:52:03 CEST	          "log.logger": "registrar",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 138,
2025-02-17 16:52:03 CEST	            "file.name": "registrar/registrar.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Run"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Starting Registrar",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "registrar",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 166,
2025-02-17 16:52:03 CEST	            "file.name": "registrar/registrar.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Run"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Ending Registrar",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "debug",
2025-02-17 16:52:03 CEST	          "log.logger": "registrar",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 167,
2025-02-17 16:52:03 CEST	            "file.name": "registrar/registrar.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Run"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Stopping Registrar",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	        {
2025-02-17 16:52:03 CEST	          "@timestamp": "2025-02-17T15:51:32.218Z",
2025-02-17 16:52:03 CEST	          "ecs.version": "1.6.0",
2025-02-17 16:52:03 CEST	          "log.level": "info",
2025-02-17 16:52:03 CEST	          "log.logger": "registrar",
2025-02-17 16:52:03 CEST	          "log.origin": {
2025-02-17 16:52:03 CEST	            "file.line": 135,
2025-02-17 16:52:03 CEST	            "file.name": "registrar/registrar.go",
2025-02-17 16:52:03 CEST	            "function": "github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).Stop"
2025-02-17 16:52:03 CEST	          },
2025-02-17 16:52:03 CEST	          "message": "Registrar stopped",
2025-02-17 16:52:03 CEST	          "service.name": "filebeat"
2025-02-17 16:52:03 CEST	        }
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	
2025-02-17 16:52:03 CEST	=== FAIL: filebeat/testing/integration TestFilebeat (73.43s)
2025-02-17 16:52:03 CEST	    run_beat.go:238: ensuring the filebeat binary is available...
2025-02-17 16:52:03 CEST	    run_beat.go:315: searching for the filebeat directory, starting with C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\testing\integration...
2025-02-17 16:52:03 CEST	    run_beat.go:330: found filebeat directory at C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat
2025-02-17 16:52:03 CEST	    run_beat.go:255: found outdated filebeat binary at C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\filebeat.exe, removing...
2025-02-17 16:52:03 CEST	    run_beat.go:270: building C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\filebeat.exe binary with "mage.exe build"...
2025-02-17 16:52:03 CEST	    run_beat.go:281: C:\buildkite-agent\builds\bk-agent-prod-gcp-1739806843708816827\elastic\filebeat\filebeat\filebeat.exe binary has been successfully built
@AndersonQ AndersonQ added the flaky-test Unstable or unreliable test cases. label Feb 19, 2025
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 19, 2025
@AndersonQ AndersonQ added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Feb 19, 2025
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 19, 2025
@rdner
Copy link
Member

rdner commented Feb 19, 2025

As discussed on Slack, looks like it's seen only on Windows so far. Some differences between OS types might be involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

3 participants