# Cant run server

**URL:** <https://forum.heroiclabs.com/t/cant-run-server/2289>\
**Category:** Local Setup\
**Created:** [January 21, 2022, 7:07am UTC](https://forum.heroiclabs.com/t/cant-run-server/2289 "2022-01-21T07:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruset](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gruset/32/940_2.png) [@gruset](https://forum.heroiclabs.com/u/gruset)\
**Post date:** [January 21, 2022, 7:07am UTC](https://forum.heroiclabs.com/t/cant-run-server/2289/1 "2022-01-21T07:07:23Z")

</div>

Hi,

Following the getting started on the website combined with [GitHub - heroiclabs/nakama-project-template: An example project on how to set up and write custom server code in Nakama server.](https://github.com/heroiclabs/nakama-project-template) files i cannot get the nakama server ro run properly through docker-compose.

I get the following error: plugin was built with a different version of package [github.com/heroiclabs/nakama-common/api](http://github.com/heroiclabs/nakama-common/api)

My dockerfile:  
FROM heroiclabs/nakama-pluginbuilder:3.9.0 AS builder

ENV GO111MODULE on

ENV CGO\_ENABLED 1

ENV GOPRIVATE “[github.com/heroiclabs/nakama-project-template](http://github.com/heroiclabs/nakama-project-template)”

WORKDIR /backend

COPY . .

RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so

FROM heroiclabs/nakama:3.9.0

COPY --from=builder /backend/backend.so /nakama/data/modules

COPY --from=builder /backend/\*.lua /nakama/data/modules/

COPY --from=builder /backend/local.yml /nakama/data/

My go.mod file:

go 1.17  
require [github.com/heroiclabs/nakama-common](http://github.com/heroiclabs/nakama-common) v1.21.0  
require [protobuf module - google.golang.org/protobuf - pkg.go.dev](http://google.golang.org/protobuf) v1.27.1 // indirect

if any other information is needed, ill provide it! 🙂

thanks in advance!

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [January 21, 2022, 8:47am UTC](https://forum.heroiclabs.com/t/cant-run-server/2289/2 "2022-01-21T08:47:29Z")

</div>

You are using the wrong version of the `nakama-common` library for Nakama 3.9.0:

> **NOTE:** For developers who use the Go server runtime support. The [nakama-common](https://github.com/heroiclabs/nakama-common) package at [v1.20.0](https://github.com/heroiclabs/nakama-common/releases/v1.20.0) must be used with this release.

> **[Release v3.9.0 · heroiclabs/nakama](https://github.com/heroiclabs/nakama/releases/tag/v3.9.0)**
>
> Notable changes
> Added
> 
> Allow creation of relayed matches with a name. Names will be mapped to match identifiers.
> Expose Nakama errors to the server runtime.
> The wallet ledger view in the Nakama Con...

In addition, this documentation will help with your issues:  
[https://heroiclabs.com/docs/nakama/server-framework/go-dependency-pinning/#go-dependency-version-mismatch](https://heroiclabs.com/docs/nakama/server-framework/go-dependency-pinning/#go-dependency-version-mismatch)

---

<div class="post-metadata">

**Author:** ![gruset](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gruset/32/940_2.png) [@gruset](https://forum.heroiclabs.com/u/gruset)\
**Post date:** [January 21, 2022, 9:00am UTC](https://forum.heroiclabs.com/t/cant-run-server/2289/3 "2022-01-21T09:00:12Z")

</div>

It is unbelievable how helpful you guys are on this forum! I once again, thank you! 🙂
