尝试访问通知选项卡时出现系统错误
Getting System error when trying to access notification tab
我正在尝试在我的实验室环境中探索景观服务器,一切都按预期工作。我在实验室环境中使用自签名证书。
在我的暂存环境中,我使用 HTTPS 的 letsencrypt 证书。
我在横向模式下添加了 2 台主机,它们都显示在仪表板上,所有选项卡都按预期工作,除了通知选项卡显示任何系统正在请求重启或软件包升级等。
我在 appserver.log
中遇到错误
Aug 19 12:46:15 appserver-1 ERR https://abc.xyz.com/account/standalone/alert/13/resolve#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 129, in publish#012 obj = request.traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 540, in traverse#012 ob = super(BrowserRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 457, in traverse#012 ob = super(HTTPRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/base.py", line 260, in traverse#012 obj = publication.traverseName(self, obj, entry_name)#012 File "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py", line 198, in traverseName#012 ob2 = adapter.publishTraverse(request, nm)#012 File "/opt/canonical/landscape/canonical/routes/publisher.py", line 158, in publishTraverse#012 request.response.redirect(location, trusted=trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 759, in redirect#012 return super(BrowserResponse, self).redirect(location, status, trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 886, in redirect#012 % target_host)#012ValueError: Untrusted redirect to host '1.2.3.4:443' not allowed.
如果我使用 IP
而不是 domain name i.e abc.xyx.com
访问横向仪表板,那么它工作正常。
因此它存在重定向问题但无法修复。
为了安全起见,我已经更改了域名和IP。
请帮助我。
此问题已解决。按照以下步骤操作:
1. Go to Organisatios->Settings
2. In Root URL provide your domain name. Earlier i have my IP now its replaced with domain name and everything is working fine
谢谢。
我正在尝试在我的实验室环境中探索景观服务器,一切都按预期工作。我在实验室环境中使用自签名证书。
在我的暂存环境中,我使用 HTTPS 的 letsencrypt 证书。
我在横向模式下添加了 2 台主机,它们都显示在仪表板上,所有选项卡都按预期工作,除了通知选项卡显示任何系统正在请求重启或软件包升级等。
我在 appserver.log
Aug 19 12:46:15 appserver-1 ERR https://abc.xyz.com/account/standalone/alert/13/resolve#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 129, in publish#012 obj = request.traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 540, in traverse#012 ob = super(BrowserRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 457, in traverse#012 ob = super(HTTPRequest, self).traverse(obj)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/base.py", line 260, in traverse#012 obj = publication.traverseName(self, obj, entry_name)#012 File "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py", line 198, in traverseName#012 ob2 = adapter.publishTraverse(request, nm)#012 File "/opt/canonical/landscape/canonical/routes/publisher.py", line 158, in publishTraverse#012 request.response.redirect(location, trusted=trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 759, in redirect#012 return super(BrowserResponse, self).redirect(location, status, trusted)#012 File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 886, in redirect#012 % target_host)#012ValueError: Untrusted redirect to host '1.2.3.4:443' not allowed.
如果我使用 IP
而不是 domain name i.e abc.xyx.com
访问横向仪表板,那么它工作正常。
因此它存在重定向问题但无法修复。 为了安全起见,我已经更改了域名和IP。
请帮助我。
此问题已解决。按照以下步骤操作:
1. Go to Organisatios->Settings
2. In Root URL provide your domain name. Earlier i have my IP now its replaced with domain name and everything is working fine
谢谢。