NathanVaughn / webtrees-docker

Up-to-date Docker image for webtrees with all the bells and whistles.
https://hub.docker.com/r/nathanvaughn/webtrees
MIT License
64 stars 15 forks source link

Delay required after Apache is launched #130

Open CiViC321 opened 1 year ago

CiViC321 commented 1 year ago

The container launch may fail sometime. If a delay is added after Apache is launched it will always start.

NathanVaughn commented 1 year ago

Could you be more specific? Are you referring to the setup wizard? Or do you mean at the end when apache2-foreground is launched?

CiViC321 commented 1 year ago

Hi Nathan

When a server start with many docker containers running, there might not yet a contect switch between line 383 in docker-entrypoint.py and line

  1. In other words Apache has not yet start completely and then line 408 fails. I did the laxy think and just added a delay before line 410. Something more elegant might be required :-) but it works.

Thanks for looking to it.

Kind regards Petri

NathanVaughn commented 1 year ago

Thanks for the clarification, I just added a retry system to the setup wizard call. The Action to rebuild the image should be done in about an hour (https://github.com/NathanVaughn/webtrees-docker/actions/runs/6828710311), try it and let me know if that helps. It has an increasing backoff that tries up to 10 times, with an additional second between each try.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.