invidious icon indicating copy to clipboard operation
invidious copied to clipboard

[Enhancement] Docker - Automatically restart Invidious from inside container

Open TheFrenchGhosty opened this issue 4 years ago • 6 comments

Is your enhancement request related to a problem? Please describe.

Invidious crashes for no reason.

Describe the solution you'd like

A cronjob that restart it, build into the container, to ease deployment, and allows most "amateur" admins to host instances that don't break.

Describe alternatives you've considered

External restart: but it's not ideal.

Additional context

TheFrenchGhosty avatar Mar 08 '21 19:03 TheFrenchGhosty

Great idea. Seems like a simple patch to a common and known problem.

Incognify avatar Mar 17 '21 11:03 Incognify

Wouldn't it be easier and/or better to diagnose what's provoking these crashes, and try to fix it?

SamantazFox avatar Mar 21 '21 05:03 SamantazFox

@SamantazFox It would be better, yes. However this issue has been a thing for years and it was never fixed.

Supposedly it's related to lsquic however everytime we tried to update it, it caused more issues... so yeah.

TheFrenchGhosty avatar Mar 21 '21 09:03 TheFrenchGhosty

Just a suggestion.Can we use something like docker's healthcheck to accomplish this target: like

invidious:
  healthcheck:
    test: "kill 1"
    start_period: 1h ## New in compose version 3.4
    interval: 1h

jackyzy823 avatar Sep 21 '21 07:09 jackyzy823

It's an hacky suggestion though. I would prefer to introduce a solution directly implemented into the docker container.

unixfox avatar Sep 21 '21 11:09 unixfox

This sounds simple. Why is it still not implemented?

UlyssesZh avatar Jul 30 '24 22:07 UlyssesZh