Self-hosted instance randomly stopped storing events #4767
-
My self-hosted instance has been doing just fine on version 2.0 for at least half a year. However, once November started, it registered only a single pageview, and after that it's not been logging a single event. The In any case, I upgraded to the latest (2.1.4) to try to resolve the issue. However, I still get the same result:
Considered causes:
The docker compose config is the standard, except that all services have been added to a named network (for nginx-proxy purposes). compose.yml
QuestionsWhere do I even start looking for answers? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I don't think anyone has reported any similar errors, so it's something new.
First, you can lower the log level in Plausible: $ cd plausible-ce
$ docker compose exec plausible bin/plausible remote iex> Logger.configure(level: :debug)
:ok
# use ctrl+c ctrl+c to exit IEx $ docker compose logs plausible -f Note that the event buffer is flushed every five seconds. So if there is an error somewhere in the connection to ClickHouse it would show up within 5 seconds after the first If these debug logs don't show anything interesting, you can also try tracing the functions on the ingestion path. iex> mod_fun_args = {Plausible.Event.WriteBuffer, :insert, 1}
iex> how_many_times = 5
iex> :recon_trace.calls(mod_fun_args, how_many_times) |
Beta Was this translation helpful? Give feedback.
-
Aha! Now everything is working properly! Might be a good thing to check in the client javascript and log a warning? Just to avoid other users making a similar mistake. |
Beta Was this translation helpful? Give feedback.
Aha!
I figured out that due to a config change, we were accidentally sending events to plausible with a
data-domain
that included the "https://" part. I even looked at the request multiple times, but didn't notice anything that was off XD.Now everything is working properly!
Might be a good thing to check in the client javascript and log a warning? Just to avoid other users making a similar mistake.