nakla / sbfspot

Scripts for building and running the docker container
18 stars 10 forks source link

Container stops silently on SBFSpot crash #13

Open cromefire opened 2 years ago

cromefire commented 2 years ago

I recently had SBFSpot crash:

log (in case there's anything interesting) ``` sma_1 | Tue Feb 22 17:38:51 2022: INFO: Starting... sma_1 | sunrise: [censored] sma_1 | sunset : [censored] sma_1 | Connecting to [censored] (1/10) sma_1 | Initializing... sma_1 | SUSyID: 125 - SessionID: [censored] ([censored]) sma_1 | SMA netID=02 sma_1 | Serial Nr: [censored] ([censored]) sma_1 | BT Signal=76.1% sma_1 | Logon OK sma_1 | Local Host Time: 22/02/2022 17:[censored] sma_1 | Plant Time : 22/02/2022 17:[censored] (-1 sec) sma_1 | TZ offset : 3600 sec - DST: On sma_1 | Last Time Set : 22/02/2022 07:[censored] sma_1 | Time was already adjusted today sma_1 | getSoftwareVersion returned an error: -1 sma_1 | getTypeLabel returned an error: -1 sma_1 | recv() returned an error: 110 sma_1 | getDeviceStatus returned an error: -1 sma_1 | send() returned an error: 107 ```

I'd normally expect the container to either crash/stop or just continue working, instead the script seems to stop, but does not crash, so it's "stuck" so it has to be restarted by hand.

cromefire commented 2 years ago

I think the culprit is SBFspot getting stuck and not exiting

wimleers commented 2 years ago

I've seen this happen too now, once. @cromefire's suspicion seems very probable to me.