xmake
xmake copied to clipboard
使用xmake update升级失败,无法拷贝下载后的文件
Xmake 版本
3.0.1
操作系统版本和架构
windows 11 version 24H2
描述问题
试图使用xmake update升级,但升级无法完成 看起来下载可以成功,但下载后解压的文件无法拷贝到指定的目录
期待的结果
正常升级
工程配置
(与配置无关)
附加信息和错误日志
# xmake update -vD
pinging the host(gitee.com) ... 88 ms
pinging the host(github.com) ... 151 ms
pinging the host(gitlab.com) ... 155 ms
C:\Program Files\Git\cmd\git.exe ls-remote --refs https://gitee.com/tboox/xmake.git
pinging the host(fastly.jsdelivr.net) ... 129 ms
update version v3.0.4 from official source ..
prepared to download to temp dir C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4 ..
C:\Users\pc\xmake\winenv\bin\curl -SL -A "Xmake/3.0.1+master.30c391ef6 (Windows;) curl/8.11.0" https://fastly.jsdelivr.net/gh/xmake-mirror/[email protected]/xmake-v3.0.4.win64.exe.zip -o C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
=> downloading https://fastly.jsdelivr.net/gh/xmake-mirror/[email protected]/xmake-v3.0.4.win64.exe.zip .. % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3585k 100 3585k 0 0 3008k 0 0:00:01 0:00:01 --:--:-- 3017k
C:\Users\pc\xmake\winenv\bin\7z x -y C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip -snl- -oC:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.dir
7-Zip 24.08 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-08-11
Scanning the drive for archives:
1 file, 3671214 bytes (3586 KiB)
Extracting archive: C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
--
Path = C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
Type = zip
Physical Size = 3671214
Everything is Ok
Size: 3772437
Compressed: 3671214
@programdir\core\sandbox\modules\os.lua:100: cannot copy file C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.dir\xmake-v3.0.4.win64.exe to C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe, Not access because it is busy
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1075]:
[@programdir\core\sandbox\modules\os.lua:100]: in function 'cp'
[@programdir\actions\update\main.lua:481]:
=> download https://fastly.jsdelivr.net/gh/xmake-mirror/[email protected]/xmake-v3.0.4.win64.exe.zip .. failed
C:\Users\pc\xmake\winenv\bin\curl -SL -A "Xmake/3.0.1+master.30c391ef6 (Windows;) curl/8.11.0" https://github.com/xmake-io/xmake/releases/download/v3.0.4/xmake-v3.0.4.win64.exe -o C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe
=> downloading https://github.com/xmake-io/xmake/releases/download/v3.0.4/xmake-v3.0.4.win64.exe .. % Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to open the file C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe: Permission denied
0 3684k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (23) client returned ERROR on write of 1269 bytes
@programdir\core\sandbox\modules\os.lua:378: execv(C:\Users\pc\xmake\winenv\bin\curl -SL -A "Xmake/3.0.1+master.30c391ef6 (Windows;) curl/8.11.0" https://github.com/xmake-io/xmake/releases/download/v3.0.4/xmake-v3.0.4.win64.exe -o C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe) failed(23)
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1075]:
[@programdir\core\sandbox\modules\os.lua:378]:
[@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
[@programdir\modules\net\http\download.lua:130]:
[@programdir\actions\update\main.lua:484]:
=> download https://github.com/xmake-io/xmake/releases/download/v3.0.4/xmake-v3.0.4.win64.exe .. failed
C:\Users\pc\xmake\winenv\bin\curl -SL -A "Xmake/3.0.1+master.30c391ef6 (Windows;) curl/8.11.0" https://gitlab.com/xmake-mirror/xmake-releases/-/raw/3.0.4/xmake-v3.0.4.win64.exe.zip -o C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
=> downloading https://gitlab.com/xmake-mirror/xmake-releases/-/raw/3.0.4/xmake-v3.0.4.win64.exe.zip .. % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3585k 100 3585k 0 0 2267k 0 0:00:01 0:00:01 --:--:-- 2269k
C:\Users\pc\xmake\winenv\bin\7z x -y C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip -snl- -oC:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.dir
7-Zip 24.08 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-08-11
Scanning the drive for archives:
1 file, 3671214 bytes (3586 KiB)
Extracting archive: C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
--
Path = C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.zip
Type = zip
Physical Size = 3671214
Everything is Ok
Size: 3772437
Compressed: 3671214
@programdir\core\sandbox\modules\os.lua:100: cannot copy file C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe.dir\xmake-v3.0.4.win64.exe to C:\Users\pc\AppData\Local\Temp\.xmake\251117\xmakesrc\v3.0.4\xmake-installer.exe, Not access because it is busy
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1075]:
[@programdir\core\sandbox\modules\os.lua:100]: in function 'cp'
[@programdir\actions\update\main.lua:481]:
=> download https://gitlab.com/xmake-mirror/xmake-releases/-/raw/3.0.4/xmake-v3.0.4.win64.exe.zip .. failed
error: @programdir\core\main.lua:329: @programdir\actions\update\main.lua:506: download failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1075]:
[@programdir\actions\update\main.lua:506]: in function 'download_task'
[@programdir\actions\update\main.lua:513]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:246]:
[@programdir\core\base\task.lua:504]: in function 'run'
[@programdir\core\main.lua:327]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:1075: in function 'os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:329: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
Bot detected the issue body's language is not English, translate it automatically.
Title: The upgrade using xmake update failed and the downloaded file cannot be copied.
应该还有其他安装进程在同时访问下载的文件。 可以进程管理里 kill 掉它们,或者重启下系统后再尝试
Bot detected the issue body's language is not English, translate it automatically.
There should be other installation processes accessing the downloaded files at the same time. You can kill them in process management, or try again after restarting the system.