[MacPorts] #58800: Buildbot should wait until the clock catches up to the Portfiles
MacPorts
noreply at macports.org
Tue Nov 1 09:35:16 UTC 2022
#58800: Buildbot should wait until the clock catches up to the Portfiles
----------------------------+---------------------
Reporter: ryandesign | Owner: admin@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: buildbot/mpbb | Version:
Resolution: | Keywords:
Port: |
----------------------------+---------------------
Comment (by ryandesign):
[https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/125479/steps
/install-port/logs/stdio Here's a recent example]: See first and last
lines of excerpt: The fetch phase started at 7:28:35 and, before it could
complete, macOS clock synchronization had set the clock back to 7:14:24.
{{{
DEBUG: fetch phase started at Tue Nov 1 07:28:35 UTC 2022
---> Fetching distfiles for p5.34-alien-build-plugin-download-github
DEBUG: Executing org.macports.fetch (p5.34-alien-build-plugin-download-
github)
DEBUG: Changing to port directory:
/opt/bblocal/var/buildworker/ports/build/ports/perl/p5-alien-build-plugin-
download-github
DEBUG: OS darwin/10.8.0 (macOS 10.6.8) arch i386
DEBUG: Re-registering default for configure.universal_args
DEBUG: Sourcing PortGroup perl5 1.0 from
/opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: Re-registering default for livecheck.version
DEBUG: only one arch supported, so not adding the default universal
variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback
portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback
portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: dropping privileges: euid changed to 502, egid changed to 505.
DEBUG: Portfile is from the future - check date and time of your system
while executing
"open_statefile"
(procedure "check_variants" line 28)
invoked from within
"check_variants checksum"
invoked from within
"$workername eval "check_variants $target""
(procedure "mportexec" line 7)
invoked from within
"mportexec $workername $target"
Error: Unable to execute port: Portfile is from the future - check date
and time of your system
Checksum of 'p5.34-alien-build-plugin-download-github' failed.
DEBUG: Changing to port directory:
/opt/bblocal/var/buildworker/ports/build/ports/perl/p5-alien-build-plugin-
download-github
DEBUG: OS darwin/10.8.0 (macOS 10.6.8) arch i386
DEBUG: Re-registering default for configure.universal_args
DEBUG: Sourcing PortGroup perl5 1.0 from
/opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: Re-registering default for livecheck.version
DEBUG: only one arch supported, so not adding the default universal
variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback
portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback
portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Executing org.macports.main (p5.34-alien-build-plugin-download-
github)
DEBUG: clean phase started at Tue Nov 1 07:14:24 UTC 2022
}}}
So the problem is not necessarily or not only that the VM clock runs fast.
The problem is that the ESXi host machine's clock is fast. When a VM
starts it inherits the clock value from the host, and then some time later
the guest OS does its own time synchronization which can move the clock
back.
I appear to have forgotten to set up NTP on this ESXi host. I found (in
the web UI > Manage > System > Time & date) that "NTP Service Status" was
"Stopped" and "NTP Servers" was not filled in. I clicked "Edit Settings",
filled in the NTP host, and changed "Start and stop manually" to "Start
and stop with port usage" to match the other hosts. I still needed to
enable the NTP port in the firewall, which I couldn't figure out how to do
in the web UI, so I used the vSphere Client application (Host >
Configuration > Security Profile > Firewall: Properties... > NTP Client).
After a few minutes, the host's clock did synchronize. Let's hope that
fixes it.
--
Ticket URL: <https://trac.macports.org/ticket/58800#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list