# Nakama service gets terminated

**URL:** <https://forum.heroiclabs.com/t/nakama-service-gets-terminated/3405>\
**Category:** Local Setup\
**Created:** [January 11, 2023, 1:09pm UTC](https://forum.heroiclabs.com/t/nakama-service-gets-terminated/3405 "2023-01-11T13:09:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali1Abbas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ali1abbas/32/1171_2.png) [@Ali1Abbas](https://forum.heroiclabs.com/u/Ali1Abbas)\
**Post date:** [January 11, 2023, 1:09pm UTC](https://forum.heroiclabs.com/t/nakama-service-gets-terminated/3405/1 "2023-01-11T13:09:33Z")

</div>

our project currently live and we have problem with nakama service gets terminated we have check nakama catches this error :  
net/http. (\*connReader).Read(0xc000b23b.  
8]: net/http/server.go: 780 +0x16d  
8]: bufio.(\*Reader) .£i11(0xc0009c0f00)  
8]: bufio/bufio.go: 106 +0x103  
8]: bufio.( \*Reader).Peek(0xco009c0fo0, 0x4)  
8]: bufio/bu£io.go:144.+0x5d  
8]: net/http.(\*conn).serve( 0xc0009 743c0, (0  
78]: net/http/server.go:1992 +0x716  
78]: created by net/http. (\*Server) .Serve  
78]:. net/http/server.go:3071 +0x4db

and regrading to the infrastructure wise we have hosted on the aws t2xlarge instance

we have realized that fatal error occur in the go build in nakama it seem mutex happed 2 goroutines try to reach same resource at the same time and race condition happend.

fatal error concurrent map write

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [January 11, 2023, 5:24pm UTC](https://forum.heroiclabs.com/t/nakama-service-gets-terminated/3405/2 "2023-01-11T17:24:33Z")

</div>

Hi Ali1Abbas, we cannot tell from your stack trace what issue is occurring. If you’d like to enter a support relationship with Heroic Labs please email [support@heroiclabs.com](mailto:support@heroiclabs.com)
