# Problem With Nakama queries

**URL:** <https://forum.heroiclabs.com/t/problem-with-nakama-queries/3892>\
**Category:** Local Setup\
**Created:** [May 24, 2023, 7:31am UTC](https://forum.heroiclabs.com/t/problem-with-nakama-queries/3892 "2023-05-24T07:31:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmadrezadl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ahmadrezadl/32/1087_2.png) [@Ahmadrezadl](https://forum.heroiclabs.com/u/Ahmadrezadl)\
**Post date:** [May 24, 2023, 7:31am UTC](https://forum.heroiclabs.com/t/problem-with-nakama-queries/3892/1 "2023-05-24T07:31:20Z")

</div>

Hey, my Nakama server is experiencing some problems.

For every 10 requests (Unity latest sdk, storage read and write requests), Nakama only responds to one. I tested a query individually, and it worked fine. However, Nakama is unable to perform queries, and the following error logs are generated:

> {“level”:“error”,“ts”:“2023-05-24T07:23:23.186Z”,“caller”:“server/core\_storage.go:472”,“msg”:“Could not begin database transaction.”,“error”:“context canceled”}  
> {“level”:“error”,“ts”:“2023-05-24T07:23:24.734Z”,“caller”:“server/core\_leaderboard.go:501”,“msg”:“Error writing leaderboard record”,“error”:“context canceled”}

When attempting to query accounts on the Nakama console, the following error occurs:

> Error when querying accounts: An error occurred while trying to list users.

If I repeat the process multiple times, it eventually provides a response.

I’m not sure if this is related, but the number of sessions is shown as 0.

What should I do?

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [May 24, 2023, 9:33am UTC](https://forum.heroiclabs.com/t/problem-with-nakama-queries/3892/2 "2023-05-24T09:33:59Z")

</div>

Hi @Ahmadrezadl,

Is this happening on a local Nakama instance running via Docker, or is this happening elsewhere?

Are you calling the RPCs via the client or the socket?
