已解决 nginx 代理禅道后,偶尔提示an error occurred
禅道版本 18.5 源码包
操作系统 CentOS
客户端浏览器 Chrome

提问者: 李鑫 悬赏:5 日期: 2023-08-07 19:01:11 答案:1 点击:193

获取技术支持

QQ:1746749398电话:18561939726
设置备注
答案列表
2023/08/08
  • 不使用nginx 代理禅道可以正常的使用的话,我们需要排查下nginx的配置,可以截图留言下具体的配置,也可以添加我们支持人员qq:1826606239 ,把相关的配置信息发我们排查看下
2023/08/08
就是简单的代理
location /zentao {
proxy_pass http://localhost:8088;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
2023/08/08
nginx的error日志里面有什么数据吗?
2023/08/08
2023/08/08 17:01:12 [error] 10659#0: *18336 no live upstreams while connecting to upstream, client: 218.19.98.181, server: localhost, request: "GET /zentao/repo-ajaxGetProjects-null.html HTTP/1.1", upstream: "http://localhost/zentao/repo-ajaxGetProjects-null.html", host: "***.**.**.**:9000", referrer: "http://***.**.**.**:9000/zentao/repo-create-11.html"
2023/08/08 17:01:14 [error] 10659#0: *18336 no live upstreams while connecting to upstream, client: 218.19.98.181, server: localhost, request: "GET /zentao/project-testcase-11.html HTTP/1.1", upstream: "http://localhost/zentao/project-testcase-11.html", host: "***.**.**.**:9000", referrer: "http://***.**.**.**:9000/zentao/project-bug-11.html"
2023/08/08 17:01:19 [error] 10659#0: *18336 no live upstreams while connecting to upstream, client: 218.19.98.181, server: localhost, request: "GET /zentao/project-bug-11.html HTTP/1.1", upstream: "http://localhost/zentao/project-bug-11.html", host: "***.**.**.**:9000", referrer: "http://***.**.**.**:9000/zentao/company-browse.html"
2023/08/08 17:01:19 [error] 10659#0: *18336 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 218.19.98.181, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "***.**.**.**:9000", referrer: "http://***.**.**.**:9000/zentao/project-bug-11.html"
2023/08/08 17:01:21 [error] 10659#0: *18300 no live upstreams while connecting to upstream, client: 183.46.59.34, server: localhost, request: "GET /zentao/message-ajaxGetMessage-0.html HTTP/1.1", upstream: "http://localhost/zentao/message-ajaxGetMessage-0.html", host: "***.**.**.**:9000", referrer: "http://***.**.**.**:9000/zentao/project-bug-3-3-all-pri_asc-0-all-0-2-20.html"
2023/08/08
可能原因 nginx 访问禅道是 domain/zentao ,禅道里面http://localhost:8088登录后连接也是 /zentao/index.php 是不是连接里面有两个/zentao重复了
试试这个配置看看 去掉禅道访问地址中的zentao:https://www.zentao.net/book/zentaopms/131.html
2023/08/09
你这个配置跟现在新的版本有点对不上,无法直接调整,是否可以直接修改nginx 配置为: location /zd
2023/08/09
可以调整试下看看
2023/08/18
不能这么改,只能zentao代理,要不然直接找不到地址
2023/08/18
添加我们的支持群同事qq:1746749398 到支持群里面沟通看看吧