-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The process cannot access the file 'C:\WINDOWS\TEMP\<some file>' because it is being used by another process. #818
Comments
Hi @slafave |
Hi @jasonbivins - We're running Windows Defender but I have the Windows\Temp folder excluded from all scanning. |
For what it's worth, I've been getting this since loading Edge. Windows\Temp is not the best folder to exclude from AV scanning. I'm going to try setting an exclusion by process instead (Docker.Service). Will update this thread with results. |
So far, excluding the Docker.Service process from AV scanning appears to be preventing the TEMP error... |
Queue sad trombones, got the temp file access error again... Is there another process besides Docker.Service I can try excluding? Crash report: C7ED5F5F-3273-4BDE-9A44-A018CA0CBD67/2017-06-18_09-54-59
|
OK, I'm also affected by this issue. After a little bit of investigation, I doubt it's the AV. Here's my reasoning: I'm running 17.06.0-ce-rc5-win16 (12604) on the Edge channel.
Using Process Explorer (from the Sysinternals suite, https://technet.microsoft.com/en-us/sysinternals/bb842062.aspx), I searched for processes having open handles containing
Once the stack trace window with the error is dismissed, I can successfully restart Docker (from the Reset tab of the settings dialog), and everything comes up as expected. |
That's the cifs-mount container. cc @simonferquel @ebriney |
Same error, right after the latest udpate. |
And I confirm, after the error windows, clicking Restart works. |
@gtardif - did this actually get fixed? @NicolasDorier just mentioned that he was still seeing the error after the current update, and that restarting Docker worked. The error, however, still exists. |
No it's not in the actual version. I'll be fixed in the next one, sorry for the convenience. |
My version is
|
I can report that this also went away for me with the latest update on edge, 17.06.0-ce-win17 (12626). |
For me this just started happening after a docker update to latest 17.06:
Tried reset factory defaults, and this fixed it. |
I currently have Docker version 17.06.0-ce, build 02c1d87. And I have the same problem that the others mention. I see that they say that reestablishing the defaults is fixed, but in realizad I do not see it as a solution because this destroys all the containers I currently have. I hope you can support me with this inconvenience.
|
Im not sure if it destroys running contaiers. But you shouldn't even store Important state in your containers in the first place. |
Started happening after last update. Reset to defaults helps but after reboot it's not working again. |
Restart odkcer using gui helped. |
Still going on with the stable version: |
gave docker-users permission to write into temp folder. works good for now. |
Same issue here:
|
ikovalyov Can you elaborate what you did? What are docker-users? |
Same problem here. Temporary solution is reset to factory defaults and redownload all images everyday. |
Same issue since latest update. But a reboot after booting helps. |
@yskeat Just restarting Docker a few times also works (for me at least). |
@ikovalyov I have given the docker-users user group full permissions on C:\Windows\Temp but I'm still having this issue. Docker does seem to sometimes work correctly, but I haven't yet figured out if it happens after I restart Docker or if there's something else that affects it. |
This bug completely breaks my current workflow. Does anyone know if it is possible to downgrade to the previous version of Docker for Windows? |
@gtardif Can you please re-open this issue? This has not been fixed. |
@morrisalp the patch will be in the next version due by the end of the week, I reopened the issue, feel free to close it when you will have test it. |
@morrisalp, yes. Right now I'm doing restart docker after it failed to start. It works then. No need to do factory reset. |
I restart my pc and Docker started. My coworker unchecks "Start Docker when you log in" box on Settings ->General, he just clicks Docker for Windows icon every time to start and he said it worked too. |
@ljw6834 |
I unchecked "start Docker when you log in" box, restarted pc and clicked Docker for Windows" icon on my desk top, docker started normal. |
I have the same problem after last update. |
Same issue with: |
The new version 17.06.0-ce-win19 (12801), Channel: stable, |
Confirmed. Update to version 17.06.0-ce-win19 (12801), Channel: stable, c98c1c2 . |
Fixed for me too. |
After update to version 17.06.0-ce-win19 (12801), docker changes the info to "Docker command did not complete within the allowed timeout", as #927, have to restart docker every reboot. |
Faced the same on the latest version. Nothing of suggested above worked. Diagnostic id: F225E1AF-79FE-41F0-B906-CF7569CCD5AD/2017-08-11_00-55-16 |
I fixed same problem by stopping the |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
When starting machine, Docker should start normally.
Actual behavior
Docker icon indicates it's initializing. After several minutes I get the following exception. The filename is always different. The temp file indicated is always created at bootup, it's creation and modified date correspond to when I log into my machine after clean boot.
The process cannot access the file 'C:\WINDOWS\TEMP\kmrua3r5.sbk' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at Docker.Backend.MobyCommand.RunDocker(String arguments, IDictionary
2 envVariables, String stdin, Int32 timeoutMs, String cidFile) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 139 at Docker.Backend.MobyCommand.Run(String commandLine, IDictionary
2 envVariables, Boolean load, String stdin, Int32 timeoutMs) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 49at Docker.Backend.SambaShare.MountInMoby(String mount, String drive, Credential cred, CredentialInfo credInfo, String options, String ip) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 197
at Docker.Backend.SambaShare.MountInMoby(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 168
at Docker.Backend.SambaShare.Mount(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 65
at Docker.Backend.BackendServer.b__5_11(Object[] args) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\BackendServer.cs:line 54
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 145
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: