repeated message every second "[clock.main:2] We must catchup NN seconds!" #2438
Replies: 18 comments 1 reply
-
I would recommend increasing the default 5 second buffer on
In addition, i recommend installing the latest stable liquidsoap 2.0.3-1 since 2.0.2 is outdated. |
Beta Was this translation helpful? Give feedback.
-
I choose a LTS distro because I want to not maintain it every day :) this comes with cons that I don't always have the latest release available. the pros is that ubuntu 22.04 lts is a very recent release so I can have imho decent versions of packages available. If you provide a repository with prebuilt packages for ubuntu/redhat/fedora, I have no opposition to install them. But compiling from source is not my main pleasure. I increased the buffer as suggested, however the message kept reappearing. examining logs I can observe the time is linearly increasing over time. process started two weeks ago and has reached yesterday a delay of 60 seconds, at which point it restarted itself:
|
Beta Was this translation helpful? Give feedback.
-
I only noticed now the existence of debs in the release. liquidsoap_2.0.5-ubuntu-impish-1_amd64.deb fails with liquidsoap_2.0.5-ubuntu-focal-1_amd64.deb fails with: liquidsoap_2.0.5-debian-buster-1_amd64.deb fails with: liquidsoap_2.0.5-debian-bookworm-1_amd64.deb fails with: |
Beta Was this translation helpful? Give feedback.
-
okay, I managed to install with the opam method, a bit inconvenient. will update in a couple of days or weeks if the issue is there. I installed exactly as in the docs plus adding "ffmpeg ogg" to the depext. it shows version 2.0.3-1 this version is more cpu hungry than the one provided by ubuntu. 12% vs 18% cpu with same argument file. |
Beta Was this translation helpful? Give feedback.
-
reproduces with opam 2.0.3-1 |
Beta Was this translation helpful? Give feedback.
-
@mailinglists35 there are no releases for
I use docker image based on |
Beta Was this translation helpful? Give feedback.
-
anyway I highly doubt 2.0.5 would fix the issue. it would have appeared in changelog, which it does not. not a big fan of docker, neither |
Beta Was this translation helpful? Give feedback.
-
I wonder if
will produce the same messages. |
Beta Was this translation helpful? Give feedback.
-
that alone fails with
I've started it instead with |
Beta Was this translation helpful? Give feedback.
-
yep, it does show the message even with the suggested configuration |
Beta Was this translation helpful? Give feedback.
-
Maybe this happens if I think there's a way to monitor stability of your http source. Also monitor if there any problems with cpu or network on your server. In generally I recommend to add some kind of monitoring.
Then you should plot data to see if there any problems at the same time that liquidsoap logs catchup. |
Beta Was this translation helpful? Give feedback.
-
LS logs catchup all the time, every second, starting with the first second until 59th then restarts the stream. I have monitored the vps before and after liquidsoap and even I also started the sample suggestion config on a bare metal machine, will be able shortly to rule out the virtualization as a cause. |
Beta Was this translation helpful? Give feedback.
-
anyway, until the results come in, let's assume the source is the root cause. I don't want any of those messages printed on stdout unless -v is given. I only expect to see the message "[clock.main:2] Too much latency! Resetting active sources..." |
Beta Was this translation helpful? Give feedback.
-
@mailinglists35 try to monitor upstream. It was my first assumption. |
Beta Was this translation helpful? Give feedback.
-
I already am. however the topic of this issue is and always was, "please stop spamming the stdout/stderr with these messages unless -v was given" |
Beta Was this translation helpful? Give feedback.
-
the same messages are printed on bare metal, with since there is no way I can fix the source, please stop spamming the stdout/stderr with these messages unless -v command line option was given |
Beta Was this translation helpful? Give feedback.
-
Hi. The logs message should stay as this is a serious issue that most people should be made aware of. As far as I can tell, the issue seems legit is and due to the fact that liquidsoap cannot process the stream in real time, according to the CPU clock. I imagine that this might be due to the We have a paragraph explaining that in our online doc:
And this should also be covered in the liquidsoap book here: https://www.liquidsoap.info/doc-2.0.4/book.html If my assumption is correct, you should be able to delegate real-time control to your
|
Beta Was this translation helpful? Give feedback.
-
there are sufficient system resources and the process is not using 100% cpu
vm guest clock is stable
installed from native ubuntu repos in ubuntu 22.04lts (jammy)
ii liquidsoap 2.0.2-1build2 amd64 audio streaming language
liquidsoap output after some time (runs inside screen so I couldn't scroll up enough to see after how much time it started) is filled with these repeating every second:
the resulting stream appears to be working
Beta Was this translation helpful? Give feedback.
All reactions