# Nakama not finding any modules

**URL:** <https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146>\
**Category:** Local Setup\
**Tags:** sdk-godot\
**Created:** [November 17, 2020, 4:24pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146 "2020-11-17T16:24:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 17, 2020, 4:24pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/1 "2020-11-17T16:24:37Z")

</div>

Hey there! I just set up Nakama yesterday and followed a tutorial for setting up authoritative multiplayer in Lua, but Nakama isn’t finding modules. I’m not using docker compose and just using the docker run commands in the docker quickstart. Here is the command that I am running:

docker run --link=db -p 7350:7350 -p 7351:7351 heroiclabs/nakama --database.address root@db:26257 --socket.server\_key “my server key” --runtime.path “.\data\modules”

here is when I run tree in my Nakama folder:

C:.  
└───data  
└───modules

here is Nakama loading the modules folder:

{“level”:“info”,“ts”:“2020-11-17T16:22:28.035Z”,“caller”:“server/runtime.go:503”,“msg”:“Found runtime modules”,“count”:0,“modules”:}

I am not sure why my Lua modules are not being loaded. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [November 17, 2020, 6:18pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/2 "2020-11-17T18:18:58Z")

</div>

@FerretCode You’ll probably need to make sure that the Docker volume (virtual filesystem) is able to “see” the filesystem from inside the container. Have you followed the Docker quickstart which shows how to set up the environment with Docker compose and mount the filesystem into the container?

[https://heroiclabs.com/docs/install-docker-quickstart/#data](https://heroiclabs.com/docs/install-docker-quickstart/#data)

---

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 17, 2020, 10:16pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/3 "2020-11-17T22:16:25Z")

</div>

Hey, thanks for answering.

I’ll get back to you if it works. 🙂

---

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 17, 2020, 10:24pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/4 "2020-11-17T22:24:51Z")

</div>

It’s still not showing any modules.

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [November 17, 2020, 11:21pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/5 "2020-11-17T23:21:01Z")

</div>

@FerretCode Perhaps you could share the updated command you’re running, and what your directory structure looks like - where you’re running your docker command, where the Lua modules are etc? Are you running it from your `C:\` path as in your initial post? It’s a little hard to help otherwise.

---

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 18, 2020, 1:26am UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/6 "2020-11-18T01:26:35Z")

</div>

Sure.

From my root directory here is what the structure looks like.

![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/8a777779f7f1a1f4d67a88651b6b007e7394b2c7.png)

I’m running my command from inside the nakama folder and I switched from the command to docker compose. Here is the volume from my docker-compose.yml.

volumes:  
- /c/Users/username/projects/docker:/data

My Lua files are in my modules folder.

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [November 18, 2020, 1:11pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/7 "2020-11-18T13:11:32Z")

</div>

So your modules are in `C:\nakama\data\modules`, but the volume you’re mounting is binding from `C:\Users\username\projects\docker` to `/data` inside the container. In that case I would expect your Lua modules to be in `C:\Users\username\projects\docker\modules` at which point in your container your modules would be in `/data/modules`. Your runtime path should also be `/data/modules` and not `./data/modules` (absolute, not relative path).

---

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 18, 2020, 4:31pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/8 "2020-11-18T16:31:03Z")

</div>

My modules are not actually in C:\nakama\data\modules. The tree module puts my C drive and a dot which I assume means realtive path. They are actually in C:\Users\username\Documents\nakama-project\nakama\data\modules. I updated my volume path to /c/Users/username/Documents/nakama-project/nakama:/data but it still isn’t finding any modules.

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [November 18, 2020, 5:55pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/9 "2020-11-18T17:55:34Z")

</div>

Based on your volume mount of `/c/Users/username/Documents/nakama-project/nakama:/data` and what you say your contents of `C:\Users\username\Documents\nakama-project\nakama\data\modules` are then inside your container it’ll look like `/data/data/modules` if I’m not mistaken.

Your `C:\Users\username\Documents\nakama-project\nakama` becomes `/data` inside the container. You probably want to mount `/c/Users/username/Documents/nakama-project/nakama/data:/data` instead and use a runtime path of `/data/modules`.

---

<div class="post-metadata">

**Author:** ![FerretCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ferretcode/32/396_2.png) [@FerretCode](https://forum.heroiclabs.com/u/FerretCode)\
**Post date:** [November 18, 2020, 10:26pm UTC](https://forum.heroiclabs.com/t/nakama-not-finding-any-modules/1146/10 "2020-11-18T22:26:06Z")

</div>

Thanks so much!
