# Filebeat intermittently crashes during start up

**URL:** https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994
**Category:** Beats
**Tags:** filebeat
**Created:** [December 26, 2016, 9:52am UTC](https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994 "2016-12-26T09:52:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sai\_Birada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_birada/32/142367_2.png) [@Sai\_Birada](https://discuss.elastic.co/u/Sai_Birada)
#### Post date: [December 26, 2016, 9:52am UTC](https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994/1 "2016-12-26T09:52:33Z")

</div>

Hi,  
I am using filebeat-1.2.3 binary, built with go-1.7.1 in my freebsd box. When I am starting this binary in my freebsd boxes I am facing the error mentioned below. I am not facing this issue every time I start filebeat but, I could consistently reproduce this by continuous stop and start filebeat.

```auto
fatal error: concurrent map read and map write

goroutine 23 [running]:
runtime.throw(0x86ef00, 0x21)
	/root/go/src/runtime/panic.go:566 +0x95 fp=0xc42043b868 sp=0xc42043b848
runtime.mapaccess2_faststr(0x7e9680, 0xc4202bd6e0, 0xc42036b9e0, 0x12, 0x3, 0x300000002)
	/root/go/src/runtime/hashmap_fast.go:306 +0x52b fp=0xc42043b8c8 sp=0xc42043b868
github.com/elastic/beats/filebeat/crawler.(*Registrar).getState(0xc420384600, 0xc42036b9e0, 0x12, 0x0, 0x0)
	/root/src/github.com/elastic/beats/filebeat/crawler/registrar.go:231 +0xa0 fp=0xc42043b910 sp=0xc42043b8c8
github.com/elastic/beats/filebeat/crawler.(*Registrar).GetFileState(0xc420384600, 0xc42036b9e0, 0x12, 0x20, 0x20)
	/root/src/github.com/elastic/beats/filebeat/crawler/registrar.go:140 +0x3f fp=0xc42043b948 sp=0xc42043b910
github.com/elastic/beats/filebeat/crawler.(*Registrar).fetchState(0xc420384600, 0xc42036b9e0, 0x12, 0xa43380, 0xc420291130, 0x1, 0x1)
	/root/src/github.com/elastic/beats/filebeat/crawler/registrar.go:170 +0x5a fp=0xc42043ba28 sp=0xc42043b948
github.com/elastic/beats/filebeat/crawler.(*Prospector).scan(0xc4200d4e00, 0xc42036b9e0, 0x12, 0xc42039d260)
	/root/src/github.com/elastic/beats/filebeat/crawler/prospector.go:304 +0x7fc fp=0xc42043be18 sp=0xc42043ba28
github.com/elastic/beats/filebeat/crawler.(*Prospector).logRun(0xc4200d4e00, 0xc42039d260)
	/root/src/github.com/elastic/beats/filebeat/crawler/prospector.go:178 +0x277 fp=0xc42043bf38 sp=0xc42043be18
github.com/elastic/beats/filebeat/crawler.(*Prospector).Run(0xc4200d4e00, 0xc42039d260)
	/root/src/github.com/elastic/beats/filebeat/crawler/prospector.go:149 +0x1bc fp=0xc42043bf90 sp=0xc42043bf38
runtime.goexit()
	/root/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc42043bf98 sp=0xc42043bf90
created by github.com/elastic/beats/filebeat/crawler.(*Crawler).Start
	/root/src/github.com/elastic/beats/filebeat/crawler/crawler.go:52 +0x272

```

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [December 26, 2016, 3:03pm UTC](https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994/2 "2016-12-26T15:03:42Z")

</div>

That looks like a bug. Any reason for not using a newer version? There have been lots of changes since 1.2.3, so I'd recommend trying 5.1, or at least 1.3.1.

---

<div class="post-metadata">

### Author: ![Sai\_Birada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_birada/32/142367_2.png) [@Sai\_Birada](https://discuss.elastic.co/u/Sai_Birada)
#### Post date: [December 27, 2016, 6:32am UTC](https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994/3 "2016-12-27T06:32:27Z")

</div>

Hi tudor,  
Updated to latest 5.1.2 version and now its working fine.  
Thanks.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 24, 2017, 6:33am UTC](https://discuss.elastic.co/t/filebeat-intermittently-crashes-during-start-up/69994/4 "2017-01-24T06:33:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
