2025/06/11 14:35:48 备份 V1 Openresty 到 /opt/1panel/backup/openresty 目录
2025/06/11 14:39:51 备份 V1 Openresty 成功
2025/06/11 14:39:51 开始迁移网站目录
2025/06/11 14:39:51 迁移网站 www 目录到 /opt/1panel/www 目录
2025/06/11 14:39:51 迁移网站 www 目录成功
2025/06/11 14:39:51 迁移 Openresty conf.d 目录成功
2025/06/11 14:39:51 开始升级 Openresty
2025/06/11 14:39:51 解压 Openresty
2025/06/11 14:39:53 移动 Openresty 目录 /tmp/openresty/1.27.1.2-0-1-focal 到 /opt/1panel/apps/openresty/openresty
2025/06/11 14:39:53 拷贝 Openresty .env
2025/06/11 14:39:53 处理 WAF 配置
2025/06/11 14:39:53 拷贝 WAF ip_group 配置失败 lstat /opt/1panel/backup/openresty/1pwaf/data/rules/ip_group: no such file or directory
2025/06/11 14:39:53 处理 WAF 配置失败 lstat /opt/1panel/backup/openresty/1pwaf/data/rules/ip_group: no such file or directory
2025/06/11 14:39:53 迁移失败,回滚 Openresty
2025/06/11 14:40:07 移动 Openresty 目录失败 failed to copy data to /opt/1panel/apps/openresty/openresty/www/sites/tu.yiyou.bj.cn/index/_files/cache/images/2a2d3c.48073.1722328628.480.jpg: write /opt/1panel/apps/openresty/openresty/www/sites/tu.yiyou.bj.cn/index/_files/cache/images/2a2d3c.48073.1722328628.480.jpg: copy_file_range: no space left on device
你的磁盘满了吗?
之前刚刚在1P内做了一次快照,现在应该怎么办。。。
看一下你哪些文件夹占用大 把重复的 或者用不到的删除一下
我想问一下升级到V2需要多少空间?
一般不需要很大的空间 主要是看你 openresty 需要多大空间 你可以看一下你的 /opt/1panel/apps/openresty/openresty/ 目录占用多大
当然 你做了快照 应该是快照把你的空间占满了
/opt/1panel/apps/openresty/openresty/ 只有1G
快照在哪里我去删了
/opt/1panel/backup
这个目录下 你看一下每个文件夹的占用
空间有10个G了~~
1panel-migrator upgrade website
之后还是一样
2025/06/11 16:56:52 处理 WAF 配置
2025/06/11 16:56:52 拷贝 WAF ip_group 配置失败 lstat /opt/1panel/backup/openresty/1pwaf/data/rules/ip_group: no such file or directory
2025/06/11 16:56:52 处理 WAF 配置失败 lstat /opt/1panel/backup/openresty/1pwaf/data/rules/ip_group: no such file or directory
2025/06/11 16:56:52 迁移失败,回滚 Openresty
https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/releases/tag/v2.0.3
我们发了新版本的 1panel-migrator 你替换一下 然后再试试
root@VM-8-12-debian:~# cd /tmp
root@VM-8-12-debian:/tmp# wget https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/releases/download/v2.0.3/1panel-migrator-linux-amd64 wget https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/releases/download/v2.0.3/1panel-migrator-linux-amd64
–2025-06-11 17:30:58-- https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/releases/download/v2.0.3/1panel-migrator-linux-amd64
Resolving gitee.com (gitee.com)… 180.76.199.13
Connecting to gitee.com (gitee.com)|180.76.199.13|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/attach_files/2225233/download/1panel-migrator-linux-amd64 [following]
–2025-06-11 17:30:58-- https://gitee.com/fit2cloud-feizhiyun/1panel-migrator/attach_files/2225233/download/1panel-migrator-linux-amd64
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response… 302 Found
Location: https://foruda.gitee.com/attach_file/1749630270324638187/1panel-migrator-linux-amd64.bin?token=40f09bd5217d8100c5bdc8c83f9f3b8c&ts=1749634258&attname=1panel-migrator-linux-amd64 [following]
–2025-06-11 17:30:58-- https://foruda.gitee.com/attach_file/1749630270324638187/1panel-migrator-linux-amd64.bin?token=40f09bd5217d8100c5bdc8c83f9f3b8c&ts=1749634258&attname=1panel-migrator-linux-amd64
Resolving foruda.gitee.com (foruda.gitee.com)… 180.76.199.13
Connecting to foruda.gitee.com (foruda.gitee.com)|180.76.199.13|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4296216 (4.1M) [application/x-executable]
Saving to: ‘1panel-migrator-linux-amd64’
1panel-migrator-linux-amd64 0%[ ] 0 --.-KB/s 1panel-migrator-linux-amd64 3%[=====> ] 167.55K 543KB/s 1panel-migrator-linux-amd64 8%[===========> ] 343.55K 615KB/s 1panel-migrator-linux-amd64 10%[==============> ] 423.55K 522KB/s 1panel-migrator-linux-amd64 13%[====================> ] 583.55K 520KB/s 1panel-migrator-linux-amd64 16%[=========================> ] 711.55K 519KB/s 1panel-migrator-linux-amd64 20%[==============================> ] 839.55K 519KB/s 1panel-migrator-linux-amd64 23%[===================================> ] 967.55K 518KB/s 1panel-migrator-linux-amd64 26%[========================================> ] 1.07M 518KB/s 1panel-migrator-linux-amd64 29%[==============================================> ] 1.23M 517KB/s 1panel-migrator-linux-amd64 32%[===================================================> ] 1.35M 517KB/s 1panel-migrator-linux-amd64 36%[=========================================================> ] 1.51M 517KB/s 1panel-migrator-linux-amd64 40%[===============================================================> ] 1.68M 534KB/s e1panel-migrator-linux-amd64 42%[==================================================================> ] 1.76M 517KB/s e1panel-migrator-linux-amd64 46%[========================================================================> ] 1.91M 517KB/s e1panel-migrator-linux-amd64 50%[==============================================================================> ] 2.07M 502KB/s e1panel-migrator-linux-amd64 53%[===================================================================================> ] 2.19M 498KB/s e1panel-migrator-linux-amd64 57%[=========================================================================================> ] 2.35M 515KB/s e1panel-migrator-linux-amd64 60%[==============================================================================================> ] 2.48M 507KB/s e1panel-migrator-linux-amd64 64%[====================================================================================================> ] 2.63M 503KB/s e1panel-migrator-linux-amd64 68%[==========================================================================================================> ] 2.79M 515KB/s e1panel-migrator-linux-amd64 71%[===============================================================================================================> ] 2.91M 515KB/s e1panel-migrator-linux-amd64 74%[====================================================================================================================> ] 3.04M 515KB/s e1panel-migrator-linux-amd64 89%[============================================================================================================================================> ] 3.66M 638KB/s e1panel-migrator-linux-amd64 96%[=======================================================================================================================================================> ] 3.95M 568KB/s e1panel-migrator-linux-amd64 96%[=======================================================================================================================================================> ] 3.96M 514KB/s e1panel-migrator-linux-amd64 100%[=============================================================================================================================================================>] 4.10M 535KB/s in 7.9s
2025-06-11 17:31:06 (530 KB/s) - ‘1panel-migrator-linux-amd64’ saved [4296216/4296216]
root@VM-8-12-debian:/tmp# chmod +x 1panel-migrator-linux-amd64
root@VM-8-12-debian:/tmp# mv 1panel-migrator-linux-amd64 /usr/local/bin/1panel-migrator
root@VM-8-12-debian:/tmp# 1panel-migrator upgrade core
注意事项:
在将 1Panel V1 服务迁移至 V2 主节点前,请务必阅读!
- 原有 V1 版本的许可证信息将被清除,统一迁移为社区版本
- 出于兼容性考虑,所有 V1 网站、应用和数据库的备份记录将被清空
- 计划任务的执行记录将不保留(保留 V1 创建的计划任务本体)
- 由于版本机制差异,V1 的快照记录无法迁移至 V2
迁移期间将停止当前 V1 服务,请确认风险后再继续操作。
是否确认将 V1 迁移至 V2 主节点? (y/n): y
2025/06/11 17:31:44 即将开始自动下载 V2 安装包,请耐心等待,勿关闭终端。
2025/06/11 17:31:47 下载安装文件成功!
未检测到 1Panel V1 /usr/local/bin/1panel /usr/local/bin/1pctl ,如果已经执行过 1panel-migrator upgrade core 请先执行 1panel-migrator rollback service 回滚
root@VM-8-12-debian:/tmp# 1panel-migrator rollback service
注意事项:
请勿在未升级至 1Panel V2 版本前执行此命令
即将回滚当前 1Panel 服务到 V1 版本,是否继续 [y/n] : y
2025/06/11 17:33:02 V2 相关文件删除成功!
2025/06/11 17:33:03 V1 基础数据回滚成功!
2025/06/11 17:33:03 V1 数据回滚成功,正在启动…
1Panel 服务回滚成功!
如需回滚网站数据,请执行 1panel-migrator rollback website 命令
root@VM-8-12-debian:/tmp# 1panel-migrator upgrade website
注意事项:
网站迁移前请务必阅读!
- 迁移完成后,所有网站配置将保存至 {1Panel 安装目录}/www
- OpenResty 将升级至 1.27.1.2-0-1-focal
- 迁移操作会重置 OpenResty 主配置文件,如有自定义修改,请提前备份
- PHP 运行环境将被移除(已创建网站中的 PHP 容器不会删除,但会迁移为静态网站)
- V2 版本迁移成功后,可在网站设置中将迁移的静态网站切换为 PHP 网站
- 因反代缓存机制已重构,请确保所有网站的反代缓存已关闭
迁移期间网站将不可访问,请确认风险后继续操作。
是否确认迁移网站? (y/n): y
再次确认:确定要升级网站吗? (y/n): y
正在升级网站…
2025/06/11 17:33:44 Directory /opt/1panel/backup/openresty has been removed
2025/06/11 17:33:49 应用商店状态正常
2025/06/11 17:33:49 已存在 openresty 安装包,跳过下载
2025/06/11 17:33:49 开启拉取 Openresty 镜像 1panel/openresty:1.27.1.2-0-1-focal 请等待
1.27.1.2-0-1-focal: Pulling from 1panel/openresty
Digest: sha256:c6ae4bc3392115d0778697047e05b3a87eff73c5d12895d3786f17ba21515bf4
Status: Image is up to date for 1panel/openresty:1.27.1.2-0-1-focal
docker.io/1panel/openresty:1.27.1.2-0-1-focal
2025/06/11 17:33:57 docker-compose down executed successfully
2025/06/11 17:33:57 备份 V1 Openresty 到 /opt/1panel/backup/openresty 目录
2025/06/11 17:34:10 备份 V1 Openresty 成功
2025/06/11 17:34:11 开始迁移网站目录
2025/06/11 17:34:11 迁移网站 www 目录到 /opt/1panel/www 目录
2025/06/11 17:34:11 迁移网站 www 目录成功
2025/06/11 17:34:11 迁移 Openresty conf.d 目录成功
2025/06/11 17:34:11 开始升级 Openresty
2025/06/11 17:34:11 解压 Openresty
2025/06/11 17:34:13 移动 Openresty 目录 /tmp/openresty/1.27.1.2-0-1-focal 到 /opt/1panel/apps/openresty/openresty
2025/06/11 17:34:13 拷贝 Openresty .env
2025/06/11 17:34:13 处理 WAF 配置
2025/06/11 17:34:13 启动 Openresty …
2025/06/11 17:34:14 docker-compose up -d executed successfully
2025/06/11 17:34:14 启动 Openresty 成功
2025/06/11 17:34:14 升级 Openresty 成功
不行啊~登录了一下还是v1.10.30-lts
1pctl status 执行看一下
root@VM-8-12-debian:~# 1pctl status
● 1panel.service - 1Panel, a modern open source linux panel
Loaded: loaded (/etc/systemd/system/1panel.service; enabled; preset: enabled)
Active: active (running) since Wed 2025-06-11 17:38:09 CST; 15min ago
Main PID: 800 (1panel)
Tasks: 6 (limit: 4490)
Memory: 186.1M
CPU: 3.686s
CGroup: /system.slice/1panel.service
└─800 /usr/bin/1panel
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [GIN] 2025/06/11 - 17:51:54 | 200 | 6.924629ms | 111.204.11.132 | GET "/a>
Jun 11 17:51:54 VM-8-12-debian 1panel[800]:
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: 2025/06/11 17:51:54 github.com/1Panel-dev/1Panel/backend/app/repo/website.go:99
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [1.476ms] [rows:7] SELECT * FROM website_ssls
WHERE website_ssls
.id
IN (11,1>
Jun 11 17:51:54 VM-8-12-debian 1panel[800]:
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: 2025/06/11 17:51:54 github.com/1Panel-dev/1Panel/backend/app/repo/website.go:99
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [2.301ms] [rows:7] SELECT * FROM websites
ORDER BY created_at desc LIMIT 10
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [GIN] 2025/06/11 - 17:51:54 | 200 | 2.326253ms | 111.204.11.132 | POST "/a>
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [GIN] 2025/06/11 - 17:51:54 | 200 | 10.344884ms | 111.204.11.132 | POST "/a>
Jun 11 17:51:54 VM-8-12-debian 1panel[800]: [GIN] 2025/06/11 - 17:51:54 | 200 | 24.775985ms | 111.204.11.132 | POST "/a>
lines 1-20/20 (END)
私信我地址 我远程帮你看一下