2025/06/10 20:23:07 [emerg] 1#1: open() “/www/sites/app-api.nailaoyun.cn/rewrite/app-api.nailaoyun.cn.conf” failed (2: No such file or directory) in /usr/local/openresty/nginx/conf/conf.d/app-api.nailaoyun.cn.conf:33
nginx: [emerg] open() “/www/sites/app-api.nailaoyun.cn/rewrite/app-api.nailaoyun.cn.conf” failed (2: No such file or directory) in /usr/local/openresty/nginx/conf/conf.d/app-api.nailaoyun.cn.conf:33
第一次报错了,我就执行了第二次
正在升级网站...
2025/06/10 21:24:57 Directory /opt/1panel/backup/openresty has been removed
2025/06/10 21:25:02 应用商店状态正常
2025/06/10 21:25:02 已存在 openresty 安装包,跳过下载
2025/06/10 21:25:02 开启拉取 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/10 21:25:17 docker-compose down executed successfully
2025/06/10 21:25:17 备份 V1 Openresty 到 /opt/1panel/backup/openresty 目录
2025/06/10 21:25:18 备份 V1 Openresty 失败 unsupported file type: /opt/1panel/apps/openresty/openresty/www/sites/app-api.nailaoyun.cn/index/spa-api/public/storage
2025/06/10 21:25:20 删除 Openresty 目录失败 unlinkat /opt/1panel/apps/openresty/openresty/www/sites/codeup.nailaoyun.cn/index: operation not permitted
2025/06/10 21:25:20 迁移失败,回滚 Openresty
已解决,问题是我在laravel框架执行过 php artisan storage:link ,在public生成的storage目录无法删除,建议在文档中写出来这个,需要手动删除然后更新好以后重新生成
没有开防篡改,storage是laravel框架访问静态目录的软连接,不知道为什么不能够删除