vscode-docker icon indicating copy to clipboard operation
vscode-docker copied to clipboard

Sporadic failure pushing images to ACR

Open dbafromthecold opened this issue 8 years ago • 5 comments

Repro steps: Running through the Docker: ACR Tasks: Build Image in VS Code Error is generated when trying to push image to Azure

Action: vscode-docker.acr.quickBuild Error type: SourceLocationNotFound Error Message: The provided source location 'source/201811290000/20791c20-86a1-41c6-ae5c-07b8473fe461.tar.gz' is invalid or doesn't exists. Please use 'GetBuildSourceUploadUrl' to get a valid location to upload the source.

Version: 0.4.0 OS: win32

dbafromthecold avatar Nov 29 '18 09:11 dbafromthecold

@dbafromthecold Does this reproduce every time? Or does it sometimes succeed? Anything else you could test us that might help us narrow down the issue? Thx.

StephenWeatherford avatar Nov 30 '18 00:11 StephenWeatherford

@StephenWeatherford It's failed each time I've tried. Am working with a simple dockerfile (to test): -

`FROM mcr.microsoft.com/mssql/server:2019-CTP2.0-ubuntu

RUN /opt/mssql/bin/mssql-conf set sqlagent.enabled true

CMD /opt/mssql/bin/sqlservr`

image

I can't see any other errors/logs to provide any further information I'm afraid.

dbafromthecold avatar Nov 30 '18 10:11 dbafromthecold

Sorry. Closed this by mistake. It appears to be an error with one of the libraries being used in Linux machines. I'm looking into this issue.

rosanch avatar Dec 08 '18 00:12 rosanch

@rosanch According to the error info above, this was on Win32, not Linux...? It seems suspicious to me that the provided "source location" in the error is a relative path, shouldn't it be absolute?

#701 also shows this same error, although I wasn't able to repro.

StephenWeatherford avatar Dec 11 '18 20:12 StephenWeatherford

@rosanch Actually, I think I know the cause:

In uploadSourceCode, you're not waiting for the blob upload to complete:

    blob.createBlockBlobFromLocalFile(blobInfo.containerName, blobInfo.blobName, tarFilePath, (): void => { });

StephenWeatherford avatar Dec 11 '18 20:12 StephenWeatherford