# Fehler mit nodemon bei lokaler Entwicklung

**URL:** <https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275>\
**Category:** Développement\
**Created:** [23. April 2021 um 06:01 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275 "2021-04-23T06:01:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [23. April 2021 um 06:01 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/1 "2021-04-23T06:01:49Z")

</div>

Hallo ihr [@contributors](https://community.gladysassistant.com/groups/contributors)!

Ich habe seit kurzem ein Bug, wenn ich lokal entwickle. Wenn ich den Server mit nodemon starte, scheint es so, als würde der alte Server weiterhin laufen, wenn der Server sich neu lädt:

 ![Screenshot 2021-04-23 at 13.59.34](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a2c13c70e8d2911dd38c67cef00495889e9759ea.jpeg)

Dadurch zeigt Sequelize seltsame Fehler an, Telegram verbindet sich nicht mehr, weil es bereits verbunden ist, und die Websockets sind kaputt.

Ich glaube also, dass nodemon von Anfang an der Übeltäter unserer Probleme ist ^^

Habt ihr das gleiche Problem wie ich?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [23. April 2021 um 06:04 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/2 "2021-04-23T06:04:02Z")

</div>

Ich sehe dieses Problem, wenn ich den Prozess beende. Es gibt Fehlerprotokolle von mehreren Diensten, und er wird nicht immer beendet. Ich muss den Prozess manuell beenden.  
Ich habe das Gefühl, dass die Datenbank geschlossen wird, bevor die Dienste getrennt werden. Der Aufruf der Methode stop() schlägt dann fehl.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [23. April 2021 um 06:39 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/3 "2021-04-23T06:39:56Z")

</div>

> [@AlexTrovato](#):
>
> Ich habe das Gefühl, dass die Datenbank geschlossen wird, bevor die Dienste getrennt werden, und der Aufruf der Methode stop schlägt dann fehl.

mmm gut beobachtet, außer dass das nicht erklärt, warum der alte Prozess nicht beendet wird. Normalerweise beendet nodemon den alten Prozess und startet einen neuen. Selbst wenn der alte Prozess nicht „graceful quit“ ist, sollte er also nicht unendlich im Hintergrund bleiben.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [23. April 2021 um 06:56 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/4 "2021-04-23T06:56:42Z")

</div>

Ich habe das kürzlich auch bemerkt. (Linux)

Zuerst eine Datenbank-Schließmeldung und dann ein paar Sekunden später weitere Meldungen. (wie du, @AlexTrovato)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [23. April 2021 um 06:58 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/5 "2021-04-23T06:58:02Z")

</div>

Ich glaube, dass es meine Änderungen am graceful exit waren, die das kaputt gemacht haben, oder das Problem war schon vorher da und der graceful exit hat es nur verschlimmert.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [23. April 2021 um 10:07 UTC](https://community.gladysassistant.com/t/bug-avec-nodemon-en-developpement-local/6275/6 "2021-04-23T10:07:52Z")

</div>

Ich dachte, es wäre mal wieder Windows’ Schuld!!! 😛
