djdd87 / SynoAI

A Synology Surveillance Station notification system utilising DeepStack AI
GNU General Public License v3.0
213 stars 24 forks source link

Message from DSM when stopping container from API #191

Closed Skuair closed 1 year ago

Skuair commented 1 year ago

I have a container (ha-dockermon: https://github.com/philhawthorne/ha-dockermon) that exposes to me an API to start and stop my containers that are on my Synology 220+. I use it from Home Assistant (not on my NAS this one) for the rest command to start/stop synoAI when i leave/enter home mode in surveillance station. I do the same in parallel for start/stop CodeProjectAiServer.

But, i don't know why, when i call the stop rest command (GET ip_ha-dockermon:port/container/synoai/stop for example), immediatly i receive a message in DSM saying that synoAI container has crashed. All my other containers don't crash when stopped by API call.

Screenshot (french) in DSM after stopped by API: image

There are no logs in the container when it crashes.

But there is no problem when i stop the container with docker command line via ssh on the NAS, nor with the docker UI on DSM.

This is very strange.

djdd87 commented 1 year ago

Sorry, I don't know the inner workings of the Synology Docker handling so I can't even guess why. There might be something to gracefully handle the stop request that I've just not implemented.

Skuair commented 1 year ago

No problem. Let's wait the new update DSM 7.2 with the new container manager and I will check again.