maman123 发表于 2023-12-26 13:58:04

【已完成】文件解压时,解压不了,报错

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
宝塔Linux面板
系统版本:
Beta 8.0.47
问题描述:
文件解压时,解压不了,报错   FileNotFoundError: No such file or directory: '/www/wwwroot/dtwp.net/js/ajaxfileupload.js'
相关截图(日志、错误):
REQUEST_DATE: 2023-12-26 13:52:30
PAN_VERSION: 8.0.47
OS_VERSION: CentOS7.5.1804 x86_64(Py3.7.9)
REMOTE_ADDR: 27.23.191.188
REQUEST_URI: POST /files?action=UnZip
REQUEST_FORM: {'sfile': '/www/wwwroot/dtwp.net/wap.zip', 'dfile': '/www/wwwroot/dtwp.net', 'type': 'zip', 'coding': 'UTF-8', 'password': '******', 'power': '755'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/shutil.py", line 566, in move
    os.rename(src, real_dst)
FileNotFoundError: No such file or directory: '/www/server/panel/tmp/5741ff5a7c663c1fc0f12725a5814783/wap/.htaccess' -> '/www/wwwroot/dtwp.net/wap/.htaccess'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2285, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2232, in run
    result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/files.py", line 2000, in UnZip
    return self.__unzip(get)
File "/www/server/panel/class/files.py", line 2107, in __unzip
    shutil.move(temp_unzip_path, unzip_path)
File "/www/server/panel/pyenv/lib/python3.7/shutil.py", line 580, in move
    copy_function(src, real_dst)
File "/www/server/panel/pyenv/lib/python3.7/shutil.py", line 266, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/www/server/panel/pyenv/lib/python3.7/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: No such file or directory: '/www/wwwroot/dtwp.net/wap/.htaccess'

阿珂 发表于 2023-12-26 14:21:51

修复一下面板,重新尝试
不行可以尝试用命令解压:
unzip 压缩包名称
页: [1]
查看完整版本: 【已完成】文件解压时,解压不了,报错