0

我正在尝试将版本 OpenProject 12.0.6 部署到 Kubernetes,但我不断在日志中收到错误:

I, [2022-01-20T23:25:36.550405 #252]  INFO -- : Started GET "/api/v3/users/3/avatar" for 10.36.0.0 at 2022-01-20 23:25:36 +0000
E, [2022-01-20T23:25:36.593041 #252] ERROR -- : Failed to render 3 avatar: undefined method `path' for nil:NilClass
I, [2022-01-20T23:25:36.594496 #252]  INFO -- : duration=38.14 db=15.80 view=22.34 status=404 method=GET path=/api/v3/users/3/avatar params={} host=project.mydomain.com user=3
I, [2022-01-20T23:25:36.594821 #246]  INFO -- : Started GET "/api/v3/notifications?pageSize=0&filters=%5B%7B%22readIAN%22%3A%7B%22operator%22%3A%22%3D%22%2C%22values%22%3A%5B%22f%22%5D%7D%7D%5D" for 10.32.0.1 at 2022-01-20 23:25:36 +0000
2022-01-20 23:25:36 +0000 Read: #<NoMethodError: undefined method `empty?' for 404:Integer>
I, [2022-01-20T23:25:36.607979 #246]  INFO -- : Started GET "/api/v3/users/3/avatar" for 10.42.128.0 at 2022-01-20 23:25:36 +0000
I, [2022-01-20T23:25:36.616672 #246]  INFO -- : duration=149.11 db=33.90 view=115.21 status=200 method=GET path=/api/v3/capabilities params={"pageSize"=>"1000", "filters"=>"[{\"principal\":{\"operator\":\"=\",\"values\":[\"3\"]}}]"} host=project.mydomain.com user=3
I, [2022-01-20T23:25:36.679825 #246]  INFO -- : duration=82.39 db=49.62 view=32.77 status=200 method=GET path=/api/v3/notifications params={"pageSize"=>"0", "filters"=>"[{\"readIAN\":{\"operator\":\"=\",\"values\":[\"f\"]}}]"} host=project.mydomain.com user=3
E, [2022-01-20T23:25:36.691770 #246] ERROR -- : Failed to render 3 avatar: undefined method `path' for nil:NilClass
I, [2022-01-20T23:25:36.692401 #246]  INFO -- : duration=81.25 db=50.26 view=30.99 status=404 method=GET path=/api/v3/users/3/avatar params={} host=project.mydomain.com user=3
2022-01-20 23:25:36 +0000 Read: #<NoMethodError: undefined method `empty?' for 404:Integer>
I, [2022-01-20T23:25:36.701986 #252]  INFO -- : Started GET "/api/v3/users/3/avatar" for 10.32.0.1 at 2022-01-20 23:25:36 +0000
E, [2022-01-20T23:25:36.727462 #252] ERROR -- : Failed to render 3 avatar: undefined method `path' for nil:NilClass
I, [2022-01-20T23:25:36.728020 #252]  INFO -- : duration=23.24 db=11.98 view=11.26 status=404 method=GET path=/api/v3/users/3/avatar params={} host=project.mydomain.com user=3
2022-01-20 23:25:36 +0000 Read: #<NoMethodError: undefined method `empty?' for 404:Integer>
I, [2022-01-20T23:25:40.775815 #252]  INFO -- : Started GET "/" for 10.35.0.0 at 2022-01-20 23:25:40 +0000

它在以前的版本中运行良好,但我似乎无法通过这个错误。在一个独立的系统上它工作得很好。我感觉它与入口有关。

我尝试启用 CORS 并使用我能想到的每个配置/请求路径,但日志中没有足够的信息来查明问题。

在浏览器中,我们不断收到:“加载资源失败:服务器响应状态为 502(错误网关)”。

有人在 Kubernetes 集群中运行此版本吗?

4

0 回答 0