# Self-hosted Kobo randomly “shutting down” (504 error)

**URL:** <https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595>\
**Category:** Support\
**Tags:** kobo-toolbox\
**Created:** [May 5, 2022, 8:25am UTC](https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595 "2022-05-05T08:25:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lisa\_vdh](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/lisa_vdh/32/17953_2.png) [@lisa\_vdh](https://forum.getodk.org/u/lisa_vdh)\
**Post date:** [May 5, 2022, 8:25am UTC](https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595/1 "2022-05-05T08:25:43Z")

</div>

Hi everyone,

We are developping a project on a self-hosted server on Kobotoolbox. `  
Few information exists on Kobotoolbox about such problems, and how to solve them.

🤔Knowing ODK is similar to Kobotoolbox, I wonder if you would have face such problems.  
We would be grateful for any potential solutions, advices?  
Or if you know if similar topic on this forum

> While Kobo is running fine, it sometimes ends up in an Error 504: Gateway Time-out for apparently no particular reason. Kobo has been installed using the “kobo install” Python script and I cannot find any error in Kobo’s logs. Furthermore, none of Kobo’s Docker containers seems to be down.  
> After a proper restart of Kobo (still using the Python script from kobo-install), everything works fine again. This error occurs quite randomly, up to twice a day (although not everyday).

👉The link to the detail description is hereafter: [https://community.kobotoolbox.org/t/self-hosted-kobotoolbox-randomly-shutting-down-504-error/29291?u=lisa\_vdh](https://community.kobotoolbox.org/t/self-hosted-kobotoolbox-randomly-shutting-down-504-error/29291?u=lisa_vdh)

Have a good day ! 😀

---

<div class="post-metadata">

**Author:** ![Ronald\_Munjoma](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ronald_munjoma/32/1647_2.png) [@Ronald\_Munjoma](https://forum.getodk.org/u/Ronald_Munjoma)\
**Post date:** [May 5, 2022, 9:49am UTC](https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595/2 "2022-05-05T09:49:15Z")

</div>

Hi @lisa_vdh

You will probably get better and quicker responses on the Kobotoolbox forums, please post there.

---

<div class="post-metadata">

**Author:** ![lisa\_vdh](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/lisa_vdh/32/17953_2.png) [@lisa\_vdh](https://forum.getodk.org/u/lisa_vdh)\
**Post date:** [May 5, 2022, 10:56am UTC](https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595/3 "2022-05-05T10:56:25Z")

</div>

Hi @Ronald_Munjoma,

I did too! Since I expect also an answer there. Since this bug is important in my project, and I know that some functions are related to ODK, I wanted to know if also here solutions, in case.

ODK documentations has helped me a lot previously in the past

Thanks,

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [May 5, 2022, 12:26pm UTC](https://forum.getodk.org/t/self-hosted-kobo-randomly-shutting-down-504-error/37595/4 "2022-05-05T12:26:17Z")

</div>

@lisa_vdh I'm sorry you are having problems. This is a Kobo problem, so please ask the Kobo team for help.
