更新失败排查如下:
程序没有完全更新,卡死或者不动了:
1、服务器出站端口开通:9999;
2、更新时宝塔的防篡或其他安全防护需关闭,更新后可重新开启;
3、项目目录 /application/index/controller/version.php 版本号改成当前版本的上一版本,刷新页面重新更新。
提示*数据表不存在(*为实际数据库),如:
SQLSTATE[42S02]: Base table or view not found: 1146 Table '*.wd_xcx_serve_reserve_server_appoint_order' doesn't exist
访问:域名 /admin/upgrade 将没有执行完的SQL更新重新运行下。
fopen(/www/wwwroot/domain.com/application/admin/service/index/cache_data/applet_user_total_data.php): failed to open stream: Permission denied
表示对应的文件需要权限写入,但是目前文件没有写入权限,点权限又改不了(改了没反应),
建议使用如下命令:
chattr -i applet_user_total_data.php
chmod 777 applet_user_total_data.php
或手动操作,修改权限为777即可。