Skip to content
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 because it is being used by another process. #17

Closed
forrestsun opened this issue Aug 3, 2016 · 8 comments

Comments

@forrestsun
Copy link

forrestsun commented Aug 3, 2016

PS D:\tools\pget_windows_amd64> .\pget.exe -p 6 http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8
f71-407277c10da3.mp4 --trace
Checking now http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Download start from http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
 53349059 / 53349059 [===================================================================================================================] 100.00% 6s

binding with files...
 0 / 53349059 [-----------------------------------------------------------------------------------------------------------------------------]   0.00%
Error:
remove _27c69af9-30da-4f7e-8f71-407277c10da3.mp4.6/27c69af9-30da-4f7e-8f71-407277c10da3.mp4.6.0: The process cannot access the file because it is bein
g used by another process.
failed to remove a file in download location
github.com/Code-Hex/pget.(*Data).BindwithFiles
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/util.go:251
github.com/Code-Hex/pget.(*Pget).Run
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/pget.go:78
main.main
        /Users/CodeHex/Desktop/go/pget/cmd/pget/main.go:13
runtime.main
        /usr/local/opt/go/libexec/src/runtime/proc.go:188
runtime.goexit
        /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1998

OS: Windows7 64
Pget v0.0.4, parallel file download client

@Code-Hex
Copy link
Owner

Code-Hex commented Aug 3, 2016

@forrestsun Thanks for report.
I was fix it. d2051e0

So, plz test this program.
regards.
pget_windows_amd64.zip

@Code-Hex
Copy link
Owner

Code-Hex commented Aug 4, 2016

@forrestsun Please close issue if you feel good.

@forrestsun
Copy link
Author

forrestsun commented Aug 4, 2016

The problem is not resolved :(
Run the same error message after re-downloading
You provide the program it is recompiled?The version number is still v0.0.4
I will try to download the code from github compiled

PS D:\TempFolder> .\pget.exe -p 10 http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10
da3.mp4 --trace
Checking now http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Download start from http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
 53349059 / 53349059 [===================================================================================================================] 100.00% 6s

binding with files...
 0 / 53349059 [-----------------------------------------------------------------------------------------------------------------------------]   0.00%E
rror:
remove _27c69af9-30da-4f7e-8f71-407277c10da3.mp4-1.10/27c69af9-30da-4f7e-8f71-407277c10da3.mp4-1.10.0: The process cannot access the file because it i
s being used by another process.
failed to remove a file in download location
github.com/Code-Hex/pget.(*Data).BindwithFiles
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/util.go:251
github.com/Code-Hex/pget.(*Pget).Run
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/pget.go:78
main.main
        /Users/CodeHex/Desktop/go/pget/cmd/pget/main.go:13
runtime.main
        /usr/local/opt/go/libexec/src/runtime/proc.go:188
runtime.goexit
        /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1998

@Code-Hex
Copy link
Owner

Code-Hex commented Aug 4, 2016

@forrestsun The program is recompile.
please give me execute result with trace again.

@forrestsun
Copy link
Author

forrestsun commented Aug 4, 2016

Compiled code, run the program prompts:

PS D:\TempFolder> .\pget.exe -p 10 http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10
da3.mp4 --trace
Checking now http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Download start from http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
 53349059 / 53349059 [===================================================================================================================] 100.00% 6s

binding with files...
 0 / 53349059 [-----------------------------------------------------------------------------------------------------------------------------]   0.00%
Error:
remove _27c69af9-30da-4f7e-8f71-407277c10da3.mp4-2.10\27c69af9-30da-4f7e-8f71-407277c10da3.mp4-2.10.0: The process cannot access the file because it i
s being used by another process.
failed to remove a file in download location
github.com/Code-Hex/pget.(*Data).BindwithFiles
        e:/gocode/src/github.com/Code-Hex/pget/util.go:269
github.com/Code-Hex/pget.(*Pget).Run
        e:/gocode/src/github.com/Code-Hex/pget/pget.go:80
main.main
        e:/gocode/src/github.com/Code-Hex/pget/cmd/pget/main.go:13
runtime.main
        C:/Go/src/runtime/proc.go:188
runtime.goexit
        C:/Go/src/runtime/asm_amd64.s:1998

By the way, please update the version number :)

@forrestsun
Copy link
Author

sunsl@NercUbuntu:~/gocode/pget_linux_amd64$ ./pget -p 6 http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Checking now http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Error:
  context deadline exceeded
sunsl@NercUbuntu:~/gocode/pget_linux_amd64$ ./pget -p 6 http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4 --trace
Checking now http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
Error:
context deadline exceeded
failed to head request: http://www.nerc.edu.cn/wk///2016/08/02/344a06be-dc8e-4d7b-a5b9-bc1b1edb83b5/Scorm/27c69af9-30da-4f7e-8f71-407277c10da3.mp4
github.com/Code-Hex/pget.(*Pget).CheckMirrors
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/requests.go:67
runtime.goexit
        /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1998
failed to check header
github.com/Code-Hex/pget.(*Pget).Run
        /Users/CodeHex/Desktop/go/src/github.com/Code-Hex/pget/pget.go:71
main.main
        /Users/CodeHex/Desktop/go/pget/cmd/pget/main.go:13
runtime.main
        /usr/local/opt/go/libexec/src/runtime/proc.go:188
runtime.goexit
        /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1998

OS:ubuntu 14.04 64
pget 0.0.4

@Code-Hex
Copy link
Owner

Code-Hex commented Aug 4, 2016

@forrestsun I probably fixed issue that The process cannot access the file because it i s being used by another process.
b35d5a6
So, please tell me results after one more try download.
Thanks.

And the message context deadline exceeded output as timeout 👍

@forrestsun
Copy link
Author

windows 7 64 pass
I corrected the error, but you still fast :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants