Code-Hex / pget

The fastest, resumable file download client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The process cannot access the file because it is being used by another process.

forrestsun opened this issue · comments

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

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

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

@forrestsun Please close issue if you feel good.

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

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

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 :)

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

@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 👍

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