文档首页>
应用平台 AppStage>
常见问题>
运行时引擎>
负载均衡>
SLB部署失败>
SLB部署失败,日志显示"some html not in /opt/huawei/openresty/nginx/html"
更新时间:2024-03-19 GMT+08:00
SLB部署失败,日志显示"some html not in /opt/huawei/openresty/nginx/html"
问题现象
SLB部署失败,日志详细信息提示如下:
"some html not in /opt/huawei/openresty/nginx/html"
解决方法
登录SLB实例主机,执行以下几条命令,先将找到的html文件注释掉,然后部署。
grep "^[ \t]*root" /opt/huawei/openresty/nginx/conf/nginx.conf|grep " /opt/huawei/openresty/"|grep -v " /opt/huawei/openresty/nginx/html/"|grep -v " /opt/huawei/openresty/nginx/html;"
grep "^[ \t]*root" /opt/huawei/openresty/nginx/conf/nginx.conf|grep -v " /"|grep -v " html/"|grep -v " html;"
find /opt/huawei/openresty/nginx/conf/vhosts/ -type f|xargs grep "^[ \t]*root"|awk -F ":" '{print $2}'|grep " /opt/huawei/openresty/"|grep -v " /opt/huawei/openresty/nginx/html/"|grep -v " /opt/huawei/openresty/nginx/html;"
find /opt/huawei/openresty/nginx/conf/vhosts/ -type f|xargs grep "^[ \t]*root"|awk -F ":" '{print $2}'|grep -v " /"|grep -v " html/"|grep -v " html;"
grep "^[ \t]*alias" /opt/huawei/openresty/nginx/conf/nginx.conf|grep " /opt/huawei/openresty/"|grep -v " /opt/huawei/openresty/nginx/html/"|grep -v " /opt/huawei/openresty/nginx/html;"
grep "^[ \t]*alias" /opt/huawei/openresty/nginx/conf/nginx.conf|grep -v " /"|grep -v " html/"|grep -v " html;"
find /opt/huawei/openresty/nginx/conf/vhosts/ -type f|xargs grep "^[ \t]*alias"|awk -F ":" '{print $2}'|grep " /opt/huawei/openresty/"|grep -v " /opt/huawei/openresty/nginx/html/"|grep -v " /opt/huawei/openresty/nginx/html;"
find /opt/huawei/openresty/nginx/conf/vhosts/ -type f|xargs grep "^[ \t]*alias"|awk -F ":" '{print $2}'|grep -v " /"|grep -v " html/"|grep -v " html;"
父主题: SLB部署失败
SLB部署失败 所有常见问题
- SLB部署失败,且日志显示“FATAL Can't get local ip”
- SLB部署失败,日志显示“/etc/rc.d/init.d/functions: No such file or directory”
- SLB部署失败,日志显示“nginx is stopped”
- SLB部署失败,日志显示“will_upgrade\old_version:1.4.7”
- SLB部署失败,日志显示“Need to modify /etc/hosts,but no permission.“
- SLB部署失败,日志显示“system param fs.nr_open should not less than fs.file-max”or“system param net.ipv4.ip_local_port_range should >=30000”
- SLB部署失败,日志显示“some permission denied files in /opt/huawei/openresty/nginx/conf/”
- SLB部署失败,日志显示“Permission denied: '/opt/huawei/release/lf_test/SLB/”
- SLB部署失败,日志显示"install_slb_failed for /opt/huawei/openresty exists not for slb"
- SLB部署失败,日志显示“not all conf included in vhosts or slb_conf”
- SLB部署失败,日志显示“watchdog still running”
- SLB部署失败,日志显示“job 28e7241e42904334b failed”
- SLB部署失败,日志显示"[Service proxy.apply_sudo._wrapped_f]: fail to operator sudo,message: send request fail, status code: 400, error: None, message: illegal param\",\"status\":-2}"
- SLB部署失败,日志显示"some html not in /opt/huawei/openresty/nginx/html"
- SLB部署失败,日志显示"cannot access /opt/huawei/openresty/nginx/conf/ssl/sample/resty-auto-ssl-fallback.pem.Permission denined"
- SLB部署失败,日志显示“fail to operator sudo, message: send request fail, status code: 400, task: control sudo permission, status: failed”
- SLB部署失败,日志显示"some certificate not in /opt/huawei/openresty/nginx/conf/ssl"
- SLB部署失败,日志显示"crontab -l \n+ echo 'Permission denied crontab'"
more