Skip to content

Using a correct time in log file#730

Merged
tridge merged 2 commits intoRsyncProject:masterfrom
mruprich:timezone
Apr 22, 2026
Merged

Using a correct time in log file#730
tridge merged 2 commits intoRsyncProject:masterfrom
mruprich:timezone

Conversation

@mruprich
Copy link
Copy Markdown
Contributor

This should fix #729. Log after the fix:

2025/01/31 08:40:27 [2500] rsyncd version 3.4.1 starting, listening on port 873
2025/01/31 08:40:33 [2501] name lookup failed for 10.X.X.X: Name or service not known
2025/01/31 08:40:33 [2501] connect from UNKNOWN (10.X.X.X)
2025/01/31 08:40:33 [2501] rsync allowed access on module test from UNKNOWN (10.X.X.X)
2025/01/31 08:40:34 [2501] rsync on test/ from UNKNOWN (10.X.X.X)
2025/01/31 08:40:34 [2501] building file list
2025/01/31 08:40:35 [2501] send UNKNOWN [10.X.X.X] test () finch-2.14.10-2.fc35.x86_64.rpm 143985
2025/01/31 08:40:36 [2501] send UNKNOWN [10.X.X.X] test () finch-debuginfo-2.14.10-2.fc35.x86_64.rpm 348677
2025/01/31 08:40:37 [2501] send UNKNOWN [10.X.X.X] test () finch-devel-2.14.10-2.fc35.x86_64.rpm 17181
2025/01/31 08:40:37 [2501] send UNKNOWN [10.X.X.X] test () libpcap-1.10.0-4.fc38.x86_64.rpm 178919
2025/01/31 08:40:39 [2501] send UNKNOWN [10.X.X.X] test () libpcap-debuginfo-1.10.0-4.fc38.x86_64.rpm 375005

Credit for the fix goes to https://github.com/remicollet

@mruprich
Copy link
Copy Markdown
Contributor Author

mruprich commented Feb 3, 2025

Not entirely sure whether this is related but I saw the same fail on i686 in Fedora (other arches were fine) - https://kojipkgs.fedoraproject.org//work/tasks/1350/128681350/build.log

@elboulangero
Copy link
Copy Markdown
Contributor

@mruprich Link above is "not found" for me

@mruprich
Copy link
Copy Markdown
Contributor Author

mruprich commented Mar 5, 2025

Hi @elboulangero which link are you reffering to?

@elboulangero
Copy link
Copy Markdown
Contributor

@mruprich
Copy link
Copy Markdown
Contributor Author

mruprich commented Mar 5, 2025

Aaah, right, the scratch build in Fedora is empty after a while. I tried a new one and seems like that was some temporary error - https://koji.fedoraproject.org/koji/taskinfo?taskID=129850493. Is there a way restart the failed test here in the PR?

@mruprich
Copy link
Copy Markdown
Contributor Author

mruprich commented Oct 6, 2025

Hi, the checks passed after the last rebase. Any update? Anything that should be changed in the PR?

@mruprich
Copy link
Copy Markdown
Contributor Author

Hi, any update with this PR?

localtime/localtime_r need /etc/localtime for timezone info.
After chroot this file is inaccessible, causing log timestamps
to fall back to UTC. Calling tzset() before chroot ensures the
timezone data is cached by glibc for subsequent calls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tridge tridge merged commit 567c409 into RsyncProject:master Apr 22, 2026
5 checks passed
@tridge
Copy link
Copy Markdown
Member

tridge commented Apr 22, 2026

@mruprich thanks!
I added a tzset() call to ensure timezone is in cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong timing in rsync daemon log

3 participants