MongoDB buffering timed out
Hi,
I have just deployed my Next.js app on DokPloy that uses MongoDB and I am facing this error
My VPS is a 2 vCore, 2 Go RAM, 20 Go SDD

14 Replies
Also when it try to fetch the jobs from the home page, I get this error
for the second error, I think it's the env varable that I don't know which one to use
local or on the internet
I should better spliiit this question into three diffrent posts, but anyway that's it
Hey, I never used mongodb with next but it seems you're not defining the env for connecting. I read some problems with internal IPs so use internet ip for now. Which ORM do you use?
Hi Adek, I use mongoose


Now I have this error
Should I open a new thread ?
Is your servers firewall open on that port?
Yes, I haven't setted up a firewall all the DokPloy installation is by default
You could test from your pc in powershell
Test-NetConnection 135.125.75.152 -Port 27017
If that fails there is a firewall somewhere that blocks the port. Might even be with your vps provider
https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2025-ps
ms docs for command reference
Test-NetConnection (NetTCPIP)
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.

I don't know why it worked before, I don't think that the VPS provider blocks the 27017 port

In the meantime I have this error in the logs
Okey so I have changed the port to 27018 and it seems to work
Thank you very much for pointing me to the right direction