DEV Community

Cover image for Weekly Update #002
Simon Foster
Simon Foster

Posted on • Originally published at funkysi1701.com

1

Weekly Update #002

I know Active Directory is fussy about clocks being in sync however not sure how todays issue happened.

I run my docker compose file from Visual Studio and I get a weird error.

SecurityTokenNotYetValidException: IDX10222: Lifetime validation failed. The token is not yet valid. ValidFrom: 'System.DateTime', Current time: 'System.DateTime'.
Enter fullscreen mode Exit fullscreen mode

I deleted my containers, open and close Visual Studio a few times, nothing helps. Eventually I think to find out what the time is on my container. It has yesterday's date. What has happened here? Surely recreating containers would have caused them to have todays date? I reboot and everything is fine again.

Turns out that it is a know issue, see https://thorsten-hans.com/docker-on-windows-fix-time-synchronization-issue I am using WSL2 and I have now changed back to using Hyper-V and the issue hasn't come back.

Earlier in the week I spotted my build step was failing.

  - task: NuGetToolInstaller@0
Enter fullscreen mode Exit fullscreen mode

Swapping to the next version of the step is all I needed to do to fix it.

  - task: NuGetToolInstaller@1
Enter fullscreen mode Exit fullscreen mode

My guess is that support was dropped for this earlier version or there is some other incompatability with .Net 5.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more