更新时间:2024-06-13 GMT+08:00
will_upgrade\old_version:1.4.7
问题现象
SLB部署失败,日志详细信息提示如下:
"will_upgrade"
"old_version: 1.4.7"
解决方法
当old_version显示的版本号高于当前升级的版本号,或者低于1.3.8时,无法直接升级。
解决方法:
- 当显示的版本号高于当前升级的版本号时,则不需要升级。
- 当old_version是最新版本时,需要手动将环境上的nginx进程停掉,且执行mv命令设为备份文件,再全新部署,部署完之后,在界面上配置转发策略。
- 登录SLB实例主机,执行命令crontab -e,进入编辑页面,然后将watchdog定时任务注释掉。
#* * * * * /opt/huawei/openresty/watch-dog/bin/watchdog.sh mon>>/dev/null 2>&1
- 执行以下三个命令,依次关闭 watchdog、slb_agent、nginx3个进程。
ps -ef|grep watchdog.sh | grep openresty| grep -v grep | awk '{print $2}'|xargs kill -9 ps -ef|grep slbagent | grep -v grep | awk '{print $2}'|xargs kill -9 ps -ef|grep nginx | grep -v grep | awk '{print $2}'|xargs kill -9
- 最后执行命令rm -r /opt/huawei/openresty,删除openresty目录。
- 登录SLB实例主机,执行命令crontab -e,进入编辑页面,然后将watchdog定时任务注释掉。
父主题: SLB部署失败相关问题
SLB部署失败相关问题 所有常见问题
- FATAL Can't get local ip
- /etc/rc.d/init.d/functions: No such file or directory
- nginx is stopped
- will_upgrade\old_version:1.4.7
- Need to modify /etc/hosts,but no permission.
- system param fs.nr_open should not less than fs.file-max”or“system param net.ipv4.ip_local_port_range should >=30000
- some permission denied files in /opt/huawei/openresty/nginx/conf/
- Permission denied: '/opt/huawei/release/lf_test/SLB/
- install_slb_failed for /opt/huawei/openresty exists not for slb
- not all conf included in vhosts or slb_conf
- watchdog still running
- job 28e7241e42904334b failed
- [Service proxy.apply_sudo._wrapped_f]: fail to operator sudo,message: send request fail, status code: 400, error: None, message: illegal param\",\"status\":-2}
- some html not in /opt/huawei/openresty/nginx/html
- cannot access /opt/huawei/openresty/nginx/conf/ssl/sample/resty-auto-ssl-fallback.pem.Permission denined
- fail to operator sudo, message: send request fail, status code: 400, task: control sudo permission, status: failed
- some certificate not in /opt/huawei/openresty/nginx/conf/ssl
- crontab -l \n+ echo 'Permission denied crontab'
more