Skip to content
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

"Past duration 0.###### too large" stops container from working #31

Open
epheterson opened this issue Jul 14, 2023 · 5 comments
Open

"Past duration 0.###### too large" stops container from working #31

epheterson opened this issue Jul 14, 2023 · 5 comments

Comments

@epheterson
Copy link

This Docker container works great most of the time, but often gets stuck printing errors like below and requires I manually restart it. After restarting the container it works fine again for a while until the errors start again. I'm using a Eufy camera as the source.

Past duration 0.744987 too large
@stef1949
Copy link

also having this issue

@epheterson
Copy link
Author

To increase uptime I wrote a one-liner if anyone wants to add to a scheduled task:

if docker logs rtsp2mjpg -n 5 | grep -q "too large" ; then echo "Issue detected, clearing logs and restarting container."; docker stop rtsp2mjpg; rm /volume1/@docker/containers/95da8b5321d6825e70d0abc994a6afb2066f8ae5146e6c5e2323a86061ce9ad7/log.db; docker start rtsp2mjpg; else echo "No issue detected."; fi

@stef1949
Copy link

How do I run this scheduled task? X

@epheterson
Copy link
Author

You’ll want to find your log path directory and update it, as well as the container name. Try it manually via terminal first, on the host running docker not within the docker.

I run this on my Synology NAS which has a scheduled task feature in the control panel. For other systems look into cron jobs.

@stef1949
Copy link

Changed the log level

Screenshot 2023-11-30 at 16 36 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants