简体   繁体   English

登录后Eucalyptus 4.4.4 Eucaconsole崩溃

[英]Eucalyptus 4.4.4 Eucaconsole Crash After Login

With the help of folks here and at github I have a clean startup log and working login page for my Eucaconsole. 在这里和github的帮助下,我有了一个干净的启动日志和Eucaconsole的正常登录页面。 I've configured an account and user for the console via 我已经通过配置了控制台的帐户和用户

euare-accountcreate -a myconsoleaccount

euare-useraddloginprofile --as-account myconsoleaccount -u admin -p cleverpassword

-On the user-side I can reliably generate a failed login message using a known bad password. -在用户端,我可以使用已知的错误密码可靠地生成失败的登录消息。 I do this so I can see the difference between good/bad password behavior. 我这样做是为了我可以看到好/坏密码行为之间的区别。

-When I authenticate, seemingly successfuly, my browser moves to a 504 Gateway Timeout error and I find the following error info in my /var/log/eucaconsole.log: -验证成功后,我的浏览器移至504网关超时错误,并且在/var/log/eucaconsole.log中找到以下错误信息:

2018-11-05 15:37:53 INFO Authenticated Eucalyptus user: myconsoleaccount/admin from 10.0.0.7
2018-11-05 15:40:54 ERROR Error handling request
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 45, in handle
    self.handle_request(listener, req, client, addr)
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 93, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 242, in __call__
    response = self.invoke_subrequest(request, use_tweens=True)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 217, in invoke_subrequest
    response = handle_request(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 126, in __call__
    response = self.handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 88, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 62, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 51, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 163, in handle_request
    response = view_callable(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 596, in __call__
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 329, in attr_view
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 305, in predicate_wrapper
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 355, in rendered_view
    result = view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 477, in _class_requestonly_view
    response = getattr(inst, attr)()
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/login.py", line 214, in handle_login
    return self.handle_euca_login()
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/login.py", line 306, in handle_euca_login
    session['supported_platforms'] = self.get_account_attributes(['supported-platforms'])
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/__init__.py", line 318, in get_account_attributes
    attributes = conn.describe_account_attributes(attribute_names=attribute_names)
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 4447, in describe_account_attributes
    [('item', AccountAttribute)], verb='POST')
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1170, in get_list
    response = self.make_request(action, params, path, verb)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1116, in make_request
    return self._mexe(http_request)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1030, in _mexe
    raise ex
BadStatusLine: ''

Is there another log with more details? 是否有其他日志包含更多详细信息? I'm not seeing any explicit version conflicts as were present in my previous issues. 我没有看到以前各期中出现的任何明确的版本冲突。 Any other ideas? 还有其他想法吗?

[Solved. [解决了。 Above is red-herring info that was generated because of basic connectivity issues.] 上面是由于基本连接问题而生成的红鲱鱼信息。]

Steve Jones comment on his answer below is correct. 史蒂夫·琼斯(Steve Jones)对以下答案的评论是正确的。 I find the documentation a bit lacking here because I did have the ufshost value pointing to the UFS host...by IP, by DNS Name and even right there by pointing at localhost. 我发现这里缺少文档,因为我确实有ufshost值指向UFS主机...通过IP,通过DNS名称甚至在本地通过localhost指向。 In all of these cases I could use my traditional admin toolset to confirm connectivity from the eucaconsole to the target ufs host via tcpdumps generated when making a login attempt with the eucaconsole. 在所有这些情况下,我都可以使用传统的管理工具集,通过使用eucaconsole进行登录时生成的tcpdumps来确认从eucaconsole到目标ufs主机的连接。 But there's a big difference between providing the ufshost value with a good target host and making sure it matches the system.dns.dnsdomain value specified when following the Runtime Environment config instructions. 但是,在按照运行时环境配置说明进行操作时,为ufshost值提供良好的目标主机,并确保它与指定的system.dns.dnsdomain值相差很大。 The documentation for the eucaconsole handles information about this setting with no nuance and effectively just tells us the IP or hostname is fine when in fact most users will find themselves in a config scenario where they have configured Euca DNS and require a much more specific value. eucaconsole的文档可以毫不费力地处理有关此设置的信息,并且可以有效地告诉我们IP或主机名是正确的,而实际上大多数用户会发现自己已配置了Euca DNS并需要更具体的值。 Thank you for clarifying Steve!! 感谢您澄清史蒂夫!

Have you followed the rest of the configuration steps?: 您是否遵循其余的配置步骤?:

http://docs.eucalyptus.cloud/eucalyptus/4.4.4/index.html#shared/console_config_server_address.html http://docs.eucalyptus.cloud/eucalyptus/4.4.4/index.html#shared/console_config_server_address.html

From the error it looks like the console cannot connect to your eucalyptus cloud, so I would first check this setting: 从该错误来看,控制台似乎无法连接到您的桉树云,因此我将首先检查以下设置:

ufshost=127.0.0.1

in the console configuration ("/etc/eucaconsole/console.ini") and perhaps verify that you are able to use euca2ools from wherever you have installed the console. 在控制台配置中(“ /etc/eucaconsole/console.ini”),并验证是否可以从安装控制台的任何地方使用euca2ools

You should also use euserv-describe-services to verify that all services are running on your eucalyptus cloud. 您还应该使用euserv-describe-services来验证所有服务都在桉树云上运行。

If still having issues it would be useful to describe what settings you have configured and what you are trying to set up (eg ssl/nginx) 如果仍然有问题,则描述所配置的设置和尝试设置的内容(例如ssl / nginx)将非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM