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

Logs do not show up in /admin/logs #136

Closed shalak closed 11 months ago

shalak commented 11 months ago

I've created a bug to the webtrees repo, but I'm not sure if the underlying issue is there or here. Here's the problem:

I've configured a docker-compose setup.

Everything was working correctly, then, for testing purposes, I changed the config.ini.php entry od dbpass to something wrong. After recreating the containers, it failed to work, as expected. Then I changed it back to the correct password. Please bare in mind that this might be unrelated to the issue, I don't know.

Now, I noticed that there are no logs visible in /admin/logs page. It simply says No records to display.

I connected to the DB using phpMyAdmin and the SELECT * FROM wt_log ORDER BY wt_log.log_time DESC shows the logs, including new ones.

What's going on here? Any ideas on how to debug this?

shalak commented 11 months ago

Huh, today (12:01 CET) it started to work.

I just recalled that around the time the logs stopped working, I noticed that containers are on UTC, so I mounted /etc/localtime. First to the app container (the logs were not showing by then) then to the DB container (still not showing) - also I'm in CET and it was just after midnight my time (i.e. before mounting localtime the containers were on 22nd of December and after the mount they were on 23rd).

I believe this might be related...

shalak commented 11 months ago

It appears the root issue was upstream - a duplicate of https://github.com/fisharebest/webtrees/issues/4549