flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
434 stars 229 forks source link

Webserver becomes unreachable within the day #961

Open R-dehaan opened 1 month ago

R-dehaan commented 1 month ago

Describe the bug After some time the server isn't reachable anymore. Also HA is not able to retrieve or send any information to the server.

To Reproduce Steps to reproduce the behavior:

  1. what command did you use No specific command, it just occurs after a while

  2. when the bug append ? Don't know, a while already

  3. Does it persist after restarting the program? After restarting server is reachable both in browser and via HA. But after some time it is unreachable, browser goes into time out.

  4. Does it persist after recreate config by going to http://server_address:port/config? Yes.

Config file Give the anonymize content of the config file

Environment (please complete the following information):

Additional context Already reinstalled and repulled the whole image, so I am a bit lost what to do.

grendyx commented 1 month ago

I have the same problem i think. Need to manually restart the service because it stops working after "some days"

R-dehaan commented 1 month ago

@grendyx

I have now incoorporated in my docker compose file a health check that checks if the webserver is still reachable. If it isnt reachable it will put the container to "unhealthy". Autoheal (another container) guards all containers and restarts unhealthy containers. In that way it is automatically rebooted, not really tidy but at least it works.

See below the restarts of the service: image

wormvortex commented 1 month ago

@grendyx

I have now incoorporated in my docker compose file a health check that checks if the webserver is still reachable.

If it isnt reachable it will put the container to "unhealthy".

Autoheal (another container) guards all containers and restarts unhealthy containers.

In that way it is automatically rebooted, not really tidy but at least it works.

See below the restarts of the service:

image

Could you share your docker compose file. I'd like to do the same.

grendyx commented 1 month ago

Do I need to do anything or should your magic do the trick? I'm just a user and don't know anything about dockers or coding etc :D.. Everything has worked for at least for a few days without restarting!

R-dehaan commented 1 month ago

@wormvortex see code below:

name: psa_car_controller services: psa_car_controller: tty: true stdin_open: true container_name: peugeot_psa_car_controller ports:

volumes: psa_data: external: true

Can't get the formatting right here, but at least you can copy

soulcrash14 commented 2 weeks ago

Same for me. Are there any new findings?