我下载了GlassFish 4.1.1的zip文件,解压后,我使用终端启动服务器,使用 asadmin start-domain 命令。它给了我这个错误:
Traceback (most recent call last):
File "/usr/local/bin/asadmin", line 260, in <module> autoscale = boto.connect_autoscale()
File "/Library/Python/2.7/site-packages/boto/__init__.py", line 208, in connect_autoscale**kwargs)
File "/Library/Python/2.7/site-packages/boto/ec2/autoscale/__init__.py", line 115, in __init__profile_name=profile_name)
File "/Library/Python/2.7/site-packages/boto/connection.py", line 1100, in __init__provider=provider)
File "/Library/Python/2.7/site-packages/boto/connection.py", line 569, in __init__host, config, self.provider, self._required_auth_capability())
File "/Library/Python/2.7/site-packages/boto/auth.py", line 997, in get_auth_handler 'Check your credentials' % (len(names), str(names))) boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
我使用的是MacOS Sierra 10.12.2,有人知道如何解决这个错误吗?
答案 0 :(得分:3)
这里的问题是您安装了boto
Python AWS命令行实用程序。其中一个实用程序称为asadmin
,您认为您打算调用asadmin
(AWS a uto s caling admin < / strong>)命令,而不是GlassFish asadmin文件。
提取GlassFish后,您需要引用GlassFish附带的asadmin
文件,因此请按以下步骤启动域:
glassfish4/bin/asadmin start-domain