Bug with nodemon in local development

Hello @contributors!

I’ve had a bug recently when developing locally. When I start the server with nodemon, it seems that when the server hot-reloads, the old server is still running:

This causes Sequelize to display strange bugs, Telegram can no longer connect because it is already connected, and the websockets are broken.

So I think that from the beginning, nodemon is the culprit of our problems ^^

Do you have the same problem as me?

I see this issue when I kill the process, error logs from multiple services, and it doesn’t always terminate, I have to manually go kill the process.
I get the feeling that the db is shutting down before the services are cut off, the call to the stop method then fails.

Hmm, good point, except that it doesn’t explain why the old process isn’t killed. Normally, nodemon kills the old process and starts a new one, so even if the old process doesn’t « graceful quit », it shouldn’t stay in the background indefinitely.

I noticed this recently too. (Linux)

Shutdown message at the db level and a few seconds later other messages. (like you @AlexTrovato)

I think it’s my changes to the graceful exit that broke it, or it was already present and the graceful exit just accentuated the problem

I thought it was Windows’ fault again!!! :stuck_out_tongue: