JetBrains / teamcity-azure-storage

TeamCity Azure artifacts storage support plugin
Apache License 2.0
15 stars 7 forks source link

Download links stopped working for artifacts hosted on Azure BLOB storage #12

Closed development-1000realities closed 3 years ago

development-1000realities commented 3 years ago

Plugin version: 0.5.0 Teamcity version: 2019.2 (build 71499) For several months the plugin was working correctly. Yesterday however, the artifact download links stopped working for all builds in all projects. No changes were made to teamcity or the blob storage. The generated redirect download link yields the following error every time: `AuthenticationFailed

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:xxxxx-edited-out-xxxxxxxxxxxxx Time:2020-11-03T23:52:59.2000012Z Signed expiry time [Tue, 03 Nov 2020 23:52:45 GMT] must be after signed start time [Tue, 03 Nov 2020 23:52:59 GMT]`
development-1000realities commented 3 years ago

Update: Looks like the issue was resolved on Azure's end. No changes were made, but as of today download links are working properly again.

development-1000realities commented 3 years ago

For anyone else experiencing this issue: The problem actually returned after a few days and download links were consistently broken. Upgrading to teamcity 2020.2 didn't solve it. As it turned out the root cause was the server (VM) that teamcity was hosted on having invalid system time. The difference was quite small (~ 188 seconds) but already past the point of acceptability for Azure. It seems that the system timestamp was valid initially, but it slowly drifted out of sync over time. We have fixed the issue by running an NTP service on the host machine that would synchronize system time regularly.