# Packetbeat error

**URL:** https://discuss.elastic.co/t/packetbeat-error/92755
**Category:** Beats
**Tags:** packetbeat
**Created:** [July 12, 2017, 5:26am UTC](https://discuss.elastic.co/t/packetbeat-error/92755 "2017-07-12T05:26:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pgyggi](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pgyggi](https://discuss.elastic.co/u/pgyggi)
#### Post date: [July 12, 2017, 5:26am UTC](https://discuss.elastic.co/t/packetbeat-error/92755/1 "2017-07-12T05:26:36Z")

</div>

**hello everyone,**  
**I run packetbeat with pf\_ring or af\_packet,both throw error:**  
_2017-07-12T13:23:04+08:00 INFO Non-zero metrics in the last 30s: http.unmatched\_responses=4059 tcp.dropped\_because\_of\_gaps=16516_  
_2017-07-12T13:23:08+08:00 ERR ParseHttp exception. Recovering, but please report this: runtime error: slice bounds out of range._  
_2017-07-12T13:23:08+08:00 ERR Stacktrace: goroutine 48 [running]:_  
_runtime/debug.Stack(0xbbcdce, 0x2b, 0xc431fd75e0)_  
\_ /root/go/src/runtime/debug/stack.go:24 +0x79\_  
_[github.com/elastic/beats/libbeat/logp.Recover](http://github.com/elastic/beats/libbeat/logp.Recover)(0xba8ace, 0x13)_  
\_ /root/go/src/github.com/elastic/beats/libbeat/logp/log.go:145 +0x138\_  
_panic(0xabf580, 0xc420010110)_  
\_ /root/go/src/runtime/panic.go:458 +0x243\_  
_[github.com/elastic/beats/packetbeat/protos/http.(\*parser](http://github.com/elastic/beats/packetbeat/protos/http.(*parser)).parseHTTPLine(0xc427d357a0, 0xc43191a240, 0xc425eb1200, 0xad5c00)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/http/http\_parser.go:174 +0xd3c\_  
_[github.com/elastic/beats/packetbeat/protos/http.(\*parser](http://github.com/elastic/beats/packetbeat/protos/http.(*parser)).parse(0xc427d357a0, 0xc43191a240, 0x0, 0xc431fd7a26)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/http/http\_parser.go:105 +0x122\_  
_[github.com/elastic/beats/packetbeat/protos/http.(\*httpPlugin](http://github.com/elastic/beats/packetbeat/protos/http.(*httpPlugin)).doParse(0xc4201f6460, 0xc42626b710, 0xc42270c780, 0xc4217b21f8, 0x1, 0x4000000000000)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/http/http.go:294 +0x16e\_  
_[github.com/elastic/beats/packetbeat/protos/http.(\*httpPlugin](http://github.com/elastic/beats/packetbeat/protos/http.(*httpPlugin)).Parse(0xc4201f6460, 0xc42270c780, 0xc4217b21f8, 0xc4201f6401, 0xa5e240, 0xc42626b710, 0x0, 0x0)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/http/http.go:225 +0xb5\_  
_[github.com/elastic/beats/packetbeat/protos/tcp.(\*TCPStream](http://github.com/elastic/beats/packetbeat/protos/tcp.(*TCPStream)).addPacket(0xc431fd7b60, 0xc42270c780, 0xc4212caea0)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/tcp/tcp.go:115 +0x176\_  
_[github.com/elastic/beats/packetbeat/protos/tcp.(\*TCP](http://github.com/elastic/beats/packetbeat/protos/tcp.(*TCP)).Process(0xc4212c84e0, 0x0, 0xc4212caea0, 0xc42270c780)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/protos/tcp/tcp.go:208 +0x3a2\_  
_[github.com/elastic/beats/packetbeat/decoder.(\*Decoder](http://github.com/elastic/beats/packetbeat/decoder.(*Decoder)).onTCP(0xc4212ca900, 0xc42270c780)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/decoder/decoder.go:317 +0xee\_  
_[github.com/elastic/beats/packetbeat/decoder.(\*Decoder](http://github.com/elastic/beats/packetbeat/decoder.(*Decoder)).process(0xc4212ca900, 0xc42270c780, 0x2c, 0x65, 0x1152a00, 0xc4212ca900)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/decoder/decoder.go:258 +0x222\_  
_[github.com/elastic/beats/packetbeat/decoder.(\*Decoder](http://github.com/elastic/beats/packetbeat/decoder.(*Decoder)).OnPacket(0xc4212ca900, 0xc42705a3f6, 0x65, 0x65, 0xc42bc3e0f0)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/decoder/decoder.go:164 +0x343\_  
_[github.com/elastic/beats/packetbeat/sniffer.(\*SnifferSetup](http://github.com/elastic/beats/packetbeat/sniffer.(*SnifferSetup)).Run(0xc420070720, 0xc0cff0, 0xc42119bfe0)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/sniffer/sniffer.go:381 +0x493\_  
_[github.com/elastic/beats/packetbeat/beater.(\*packetbeat](http://github.com/elastic/beats/packetbeat/beater.(*packetbeat)).Run.func2(0xc42119bfe0, 0xc4200983c0, 0xc4200709c0)_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/beater/packetbeat.go:155 +0x6a\_  
_created by [github.com/elastic/beats/packetbeat/beater.(\*packetbeat](http://github.com/elastic/beats/packetbeat/beater.(*packetbeat)).Run_  
\_ /root/go/src/github.com/elastic/beats/packetbeat/beater/packetbeat.go:159 +0x1b2\_

**packetbeat version 5.4.2 (amd64), libbeat 5.4.2**  
**By the way,i cannot capture any packet .**

---

<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: [August 9, 2017, 5:27am UTC](https://discuss.elastic.co/t/packetbeat-error/92755/2 "2017-08-09T05:27:01Z")

</div>

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