Skip to content

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

@AndersonQ

Description

@AndersonQ

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

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions