Closed jcoe-nvt closed 3 years ago
Can you narrow down "sometimes"? I see it's complaining about permissions - may be a certain build agent?
@waldo1001 pipeline ran 2 times today and failed 2 times with same warning. In both cases rerunning the failed pipeline was the solution. I would do some more runs to verify that it happens every time on the first run, but DevOps seems to be down :(
We will try to use a different temp-folder for this .. will keep you posted.
Could you also check the user that is running the agent, and the permissions?
Service is running as Local System as explained in your 'ALOps Introduction' video
Hey @jcoe-nvt ,
did you check diskspace? does it occur on all build agents?
We have more than 300GB free space. It only happened on 1 of the build agents and currently it doesn't seem to happen anymore. So I'm not sure under what conditions this error occurs 😟
FYI, this error is still present and happens in random runs of the same pipeline on the same build server / build agent, although most of the times on the same folder:
2021-06-15T13:33:53.5648034Z * C:\DockerInstallation\Agent2\_work\8\s\PreviousApps\Addins\Astrata Connector
2021-06-15T13:33:53.5685467Z *** Duplicate folder [Astrata Connector], renaming [v2]
2021-06-15T13:33:54.0654701Z * C:\DockerInstallation\Agent2\_work\8\s\PreviousApps\Addins\b.Alert Connector
2021-06-15T13:33:54.0663829Z *** Duplicate folder [b.Alert Connector], renaming [v2]
2021-06-15T13:33:54.2898179Z * C:\DockerInstallation\Agent2\_work\8\s\PreviousApps\Addins\E-Navitrans Connector
2021-06-15T13:33:54.2904744Z *** Duplicate folder [E-Navitrans Connector], renaming [v2]
2021-06-15T13:33:54.5232585Z * C:\DockerInstallation\Agent2\_work\8\s\PreviousApps\Addins\Excel Templates
2021-06-15T13:33:54.5242241Z *** Duplicate folder [Excel Templates], renaming [v2]
2021-06-15T13:33:54.8283316Z * C:\DockerInstallation\Agent2\_work\8\s\PreviousApps\Addins\Fleetboard Connector
2021-06-15T13:33:54.8294094Z *** Duplicate folder [Fleetboard Connector], renaming [v2]
2021-06-15T13:33:55.0249204Z ##[error]Access to the path 'C:\WINDOWS\TEMP\qnsfcygp.eat\Fleetboard Connector' is denied.
2021-06-15T13:33:55.0426496Z ##[section]Finishing: Start Docker Container
@waldo1001 have you found a solution for this issue?
If not, wouldn't it be possible to solve #366 in another way? Instead of moving and renaming the addins to temp folders, just to copy the addins with the original full subpath (starting from working directory) inside the docker container.
We have a solution - it's in test now .. I hope to release this weekend if all other tests succeed.
And - what you suggest isn't that straight forward in powershell in combo with Docker, I'm afraid.. .
Dear @jcoe-nvt ,
Please try our latest release, v1.444. The issue seemed to be a "File-Lock" error instead of the "Access Denied"
Kind regards,
Describe the bug 'Docker start' fails sometimes to rename duplicate addin folders
The used yaml
The output Also the complete output is necessary for us to see what is going on. Also use backtics:
Expected behavior No error when starting docker container