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.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more