为了能快速了解并处理您的问题,请提供以下基础信息:
宝塔Linux面板
Beta 8.0.47
文件解压时,解压不了,报错 FileNotFoundError:[Errno 2] 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: CentOS 7.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: [Errno 2] 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: [Errno 2] No such file or directory: '/www/wwwroot/dtwp.net/wap/.htaccess'
|
|