-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webserver becomes unreachable within the day #961
Comments
I have the same problem i think. Need to manually restart the service because it stops working after "some days" |
I have now incoorporated in my docker compose file a health check that checks if the webserver is still reachable. |
Could you share your docker compose file. I'd like to do the same. |
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! |
@wormvortex see code below: name: psa_car_controller volumes: Can't get the formatting right here, but at least you can copy |
Same for me. Are there any new findings? |
Finally got round to trying this and can't get it to work. Not sure if it's my formatting. I'm getting either |
try: healthcheck:
test: ['CMD-SHELL', 'curl --fail http://localhost:5000 || exit 1']
interval: 60s
retries: 3
start_period: 90s
timeout: 15s |
That worked. Thanks! |
If you want to use docker compose or stack you can use the following code: services:
psa_car_controller:
container_name: peugeot_psa_car_controller
image: flobz/psa_car_controller
tty: true
stdin_open: true
ports:
- "5000:5000"
volumes:
- psa_data:/config
restart: unless-stopped
labels:
- "autoheal=true"
healthcheck:
test: ['CMD-SHELL', 'curl --fail http://localhost:5000 || exit 1']
interval: 60s
retries: 3
start_period: 90s
timeout: 15s
volumes:
psa_data: |
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:
what command did you use
No specific command, it just occurs after a while
when the bug append ?
Don't know, a while already
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.
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):
Can post the log but nothing special is shown as connection to the car still works.
But no incoming traffic from my home network.
Additional context
Already reinstalled and repulled the whole image, so I am a bit lost what to do.
The text was updated successfully, but these errors were encountered: