Skip to content

Linux self-hosted runners offline since 2026-11-06 01:38 UTC: NotTimeValid on broker.actions.githubusercontent.com (Let's Encrypt YR1 / Root YR chain), same as #4560 #4838

Open

Description

@jf1991999

Summary

Since about 2026-11-06 01:38 UTC, self-hosted runners on Linux cannot create a session with broker.actions.githubusercontent.com. Every attempt fails in BrokerMessageListener with:

System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: NotTimeValid

The runner shows as offline in GitHub and jobs stay queued. This looks like the same failure as #4560 (July 2026, macOS), now on Linux. Runners that already had an open connection kept working until that connection dropped; every new connection fails, including after restarting the service.

What changed on the server side

broker.actions.githubusercontent.com presented a newly issued certificate (leaf notBefore 2026-11-05 23:35:54 UTC):

0: CN=*.actions.githubusercontent.com  notBefore Nov  5 23:35:54 2026 GMT, notAfter Feb  3 23:35:53 2027 GMT
1: C=US, O=Let's Encrypt, CN=YR1        notBefore Sep  3 2025,               notAfter Sep  2 2028
2: C=US, O=ISRG, CN=Root YR             (cross-signed by ISRG Root X1) notBefore May 13 2026, notAfter Sep 2 2032

pipelines.actions.githubusercontent.com and vstoken.actions.githubusercontent.com still serve an older certificate (issuer YR2, notBefore Oct 14 2026).

Environment

  • Runner 2.338.2 (latest release), linux-x64, Ubuntu 24.04.5 LTS under WSL2
  • OpenSSL 3.0.13, ca-certificates 20260816ubuntu0.24.04.1
  • No proxy. System clock verified correct: it matches the Date header returned by the server to the second.
  • Three runners on the same machine fail identically.

Diagnosis (the OS trust and the network are healthy)

  1. curl and openssl s_client (IPv4 and IPv6, repeated 5 times each) connect and report Verify return code: 0 (ok).
  2. openssl verify -x509_strict -untrusted <served intermediates> <leaf> is OK. With -attime set to the present it is OK.
  3. No expired certificates exist in /etc/ssl/certs.
  4. Restarting the runner service does not help.
  5. Adding the official self-signed ISRG Root YR (from letsencrypt.org/certs/gen-y/root-yr.pem; its subject key identifier matches the served cross-signed certificate) to the system trust store and restarting does not help. Reverted afterwards.

So OpenSSL validates the served chain, but the runner's bundled .NET SslStream rejects it with NotTimeValid. This is the same pattern reported in #4560.

Impact

All self-hosted runners that are routed to the edge serving this certificate and have to open a new connection go offline, and all jobs stay queued. There is no client-side workaround other than disabling TLS verification, which should not be used.

Ask

Activity

  1. jf1991999 commented on Nov 6, 2026

    @jf1991999
    Author

    Update after about 4 hours: still failing on every new connection, nothing changed on our side has helped. More data in case it helps narrow it down.

    Same chain shape works elsewhere. pipelines.actions.githubusercontent.com and vstoken.actions.githubusercontent.com serve a structurally identical chain (leaf, then Let's Encrypt YR2, then the same cross-signed ISRG Root YR, SHA-256 07:26:39:D0:B1:40:D5:BF…; leaf notBefore Oct 14 2026). The broker's new leaf (notBefore Nov 5 23:35:54 UTC) is issued by YR1 instead. The leaf and intermediate AIA/CRL URLs (yr1.i.lencr.org, yr.i.lencr.org, yr1.c.lencr.org/113.crl) all download and are time-valid. Nothing in the chain is outside its validity window by our checks.

    Things tried on one runner, none changed the NotTimeValid error:

    • restarting the service (several times)
    • trusting the self-signed ISRG Root YR in the system store
    • DOTNET_SYSTEM_NET_DISABLEIPV6=1
    • a minimal trust store via SSL_CERT_FILE / SSL_CERT_DIR containing only ISRG Root X1
    • no ~/.dotnet/corefx certificate or CRL cache exists on the machine, and the clock matches the server's Date header to the second

    Observation: other self-hosted runners that were already connected before the rotation (macOS ARM64, Windows, and two Linux runners on the same host) still show as online. They hold long-lived sessions, so I would expect them to hit the same error the next time they reconnect. Only runners that had to open a new session after about 01:38 UTC went offline. We are in Australia, so it may be the edge we reach that was rotated first.

    No other reports found yet, which may just mean few runners reconnected so far. Happy to run any diagnostics that would help.

  2. jf1991999 commented on Nov 6, 2026

    @jf1991999
    Author

    Found the trigger on our side, and a workaround. The failure depends on the timezone of the runner process.

    Our runners had TZ=UTC in each runner's .env. A freshly registered runner on the same host (no .env, system timezone Australia/Sydney, UTC+11) created its session on the first try, while the existing runners kept failing with NotTimeValid. Changing only the TZ line in .env and restarting the service, on one runner:

    TZ result
    UTC, Etc/UTC, UTC0, GMT, Africa/Abidjan, Atlantic/Reykjavik (all offset 0) NotTimeValid, no session
    unset (system zone Australia/Sydney), or Australia/Sydney session created, runner online

    Repeatable across about ten restarts. With TZ=Australia/Sydney all three runners came back online immediately. Everything else (network, certificates, trust store, clock) was identical between the passing and failing runs.

    So the .NET chain validation seems to treat the new broker chain (leaf notBefore 2026-11-05 23:35:54 UTC, YR1) as not yet valid when the process's local UTC offset is zero (I have not tested negative offsets). The same chain shape under YR2 was accepted with TZ=UTC before the rotation, so something about the new leaf or intermediate is sensitive to this. Hopefully this helps to find the root cause. Workaround for anyone hit by this: remove or change a zero-offset TZ in the runner's environment (.env) and restart the runner.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions