After setting a new password on the CLI, the web interface don't kicks me out from an active session and the login still only accepts the old password.
The pwhash value in pihole.toml gets updated and the file's modify timestamp also changes, but FTL seem to do not get that.
I just tested inside a container and I saw the same behavior.
pihole setpassword is not triggering the web interface reload. After manually opening and saving the config file, the process was triggered as expected.
Ah, yes, that makes it clear. This is a regression of Do not rewrite config files if unchanged by DL6ER · Pull Request #1746 · pi-hole/FTL · GitHub. Before, we wrote directly to pihole.toml triggering a CLOSE_WRITE event in inotify. Now we, instead, first write to pihole.toml.tmp, compare it with pihole.toml and either replacepihole.toml (MOVE event) or simply discard pihole.toml.tmp not touching pihole.toml at all.
The inotify watching was configured to only monitor writing events but not the replacement due to move. I also refined the debug printing to instead log more explicitly:
2023-11-22 20:58:50.826 File moved from: /etc/pihole/pihole.toml.tmp
2023-11-22 20:58:50.826 File moved to: /etc/pihole/pihole.toml
Please try FTL from branch fix/inotify_move at your earliest convenience (pre-built binaries should become available in roughly 20-30 minutes pihole checkout ftl fix/inotify_move
edit It has already been merged into development-v6
When pihole-FTL gets restarted (e.g. after an settings change or by hand via sudo service pihole-FTL restart), this will break the tailing output.
The webserver gets still queried every second for new data, but no further lines are transmitted.
Ah yes, that's likely because the web interface keeps asking for nextID=50 so no new content is added until the new log reaches 50 lines. This needs to be reset to 0 on FTL restart. Thanks!