Skip to content

macos-12: timestamps differ by 182 seconds - check your system clock #2996

Description

@tresf

UPDATE: Potential workaround:

Support got back to me privately, this is what they recommend as a workaround while engineering investigates:

steps:
  - name: Sync clock
    run: sudo sntp -sS time.windows.com

Surprisingly, the command succeeds. I asked why, and they said that time.windows.com is permitted in Azure -- where the runners live -- whereas time.apple.com is not currently permitted in Azure.
Since the issue is sporadic, I haven't had enough builds yet to know if it fixes the problem.


Original post:

There is a private support ticket (2444231) open for this issue, but I wanted to file a public report incase this problem is affecting others.

Quoting:

"So when looking at the last 16 builds, that's about one in every four jobs or every other build (2 macOS jobs per build / workflow run) showing this clock problem, with one out of eight builds failing because of it."

Describe the bug
Intermittent signing failures calling |xargs codesign --force -s P5DXXXXXXX --timestamp --options runtime on 33 files.

- 2023-11-20T15:02:25.6218970Z      [exec] ./Contents/Frameworks/myfile.dylib: timestamps differ by 182 seconds - check your system clock

To Reproduce
Unsure how to reproduce.

  • I've tried calling sudo sntp -sS time.apple.com to force synchronization, but the command fails on mac-12
  • The issue only occurs when the time has drifted over a certain threshold.
  • I'm happy to share the actions file, but it references some scripts, so if this issue is related to something in the build, it will be some minor trimming to narrow it down

Quoting my colleague:

"with every step except for the first two showing times that are several minutes longer than they could be, even skipped steps. It can't be a coincidence that that difference in time is almost exactly the same as the one in the timestamps differ error message. Other instance of the same problem (not all failing):"

https://github.com/<repo>/<project>/actions/runs/6931808026/job/18854361938
https://github.com/<repo>/<project>/actions/runs/6822493602/job/18554615759
https://github.com/<repo>/<project>/actions/runs/6748369490/job/18346546669
https://github.com/<repo>/<project>/actions/runs/6741334623/job/18325763976
https://github.com/<repo>/<project>/actions/runs/6733880279/job/18303537472
https://github.com/<repo>/<project>/actions/runs/6728235436/job/18287265472
https://github.com/<repo>/<project>/actions/runs/6728003702/job/18286649495
https://github.com/<repo>/<project>/actions/runs/6728003702/job/18286649495

"So when looking at the last 16 builds, that's about one in every four jobs or every other build (2 macOS jobs per build / workflow run) showing this clock problem, with one out of eight builds failing because of it."

Expected behavior

Runner Version and Platform

  • GitHub Actions 6 (hosted)
  • Current runner version: '2.311.0'

OS of the machine running the runner? OSX/Windows/Linux/...

  • macos-12

What's not working?

  • The codesign command, intermittently

Workaround

  • No workaround at this time, resubmitting the job generally fixes it.

Job Log Output

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

  • I'm unable to locate the _diag folder. I'm happy to provide more information.
2023-11-20T15:02:17.3898910Z      [copy] Copying 1 file to /Users/runner/work/<repo>/<project>/tray/out/build
2023-11-20T15:02:17.3924940Z      [echo] Signing /Users/runner/work/<repo>/<project>/tray/out/build/scripts/payload/MyApp.app using P5DXXXXXXX
2023-11-20T15:02:22.4369960Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/bin/java: replacing existing signature
2023-11-20T15:02:22.8144560Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libnet.dylib: replacing existing signature
2023-11-20T15:02:22.8146460Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libnio.dylib: replacing existing signature
2023-11-20T15:02:23.0571980Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libzip.dylib: replacing existing signature
2023-11-20T15:02:23.0574000Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libfreetype.dylib: replacing existing signature
2023-11-20T15:02:23.0576250Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libsplashscreen.dylib: replacing existing signature
2023-11-20T15:02:23.1737660Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjimage.dylib: replacing existing signature
2023-11-20T15:02:23.2744790Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/jli/libjli.dylib: replacing existing signature
2023-11-20T15:02:23.2747460Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libosxkrb5.dylib: replacing existing signature
2023-11-20T15:02:23.4048170Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libosxui.dylib: replacing existing signature
2023-11-20T15:02:23.5190210Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/librmi.dylib: replacing existing signature
2023-11-20T15:02:23.5192710Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libsunec.dylib: replacing existing signature
2023-11-20T15:02:23.6289500Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libawt_lwawt.dylib: replacing existing signature
2023-11-20T15:02:23.8059100Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/server/libjvm.dylib: replacing existing signature
2023-11-20T15:02:23.8062430Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/server/libjsig.dylib: replacing existing signature
2023-11-20T15:02:23.9066490Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjavajpeg.dylib: replacing existing signature
2023-11-20T15:02:24.1304900Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libmlib_image.dylib: replacing existing signature
2023-11-20T15:02:24.1307550Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libmanagement.dylib: replacing existing signature
2023-11-20T15:02:24.1309810Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjsound.dylib: replacing existing signature
2023-11-20T15:02:24.2925070Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjsig.dylib: replacing existing signature
2023-11-20T15:02:24.5226360Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libprefs.dylib: replacing existing signature
2023-11-20T15:02:24.5230470Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjawt.dylib: replacing existing signature
2023-11-20T15:02:24.5235700Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libfontmanager.dylib: replacing existing signature
2023-11-20T15:02:24.6234830Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/jspawnhelper: replacing existing signature
2023-11-20T15:02:24.7255850Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libosxsecurity.dylib: replacing existing signature
2023-11-20T15:02:24.7262360Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/liblcms.dylib: replacing existing signature
2023-11-20T15:02:24.8568230Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libverify.dylib: replacing existing signature
2023-11-20T15:02:25.0567620Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libj2gss.dylib: replacing existing signature
2023-11-20T15:02:25.0570830Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libjava.dylib: replacing existing signature
2023-11-20T15:02:25.1786290Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/client/libjvm.dylib: replacing existing signature
2023-11-20T15:02:25.2909500Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/client/libjsig.dylib: replacing existing signature
2023-11-20T15:02:25.4907470Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libawt.dylib: replacing existing signature
2023-11-20T15:02:25.4912150Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libosx.dylib: replacing existing signature
2023-11-20T15:02:25.4914400Z      [exec] ./Contents/PlugIns/Java.runtime/Contents/Home/lib/libosxapp.dylib: replacing existing signature
2023-11-20T15:02:25.6218970Z      [exec] ./Contents/Frameworks/libusb4java.dylib: timestamps differ by 182 seconds - check your system clock
2023-11-20T15:02:25.6763520Z 
2023-11-20T15:02:25.6765420Z BUILD FAILED
2023-11-20T15:02:25.6769160Z /Users/runner/work/<repo>/<project>/tray/ant/apple/installer.xml:30: The following error occurred while executing this line:
2023-11-20T15:02:25.6774120Z /Users/runner/work/<repo>/<project>/tray/ant/apple/installer.xml:232: exec returned: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions