当前位置:   article > 正文

AccssRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPL_amqp.exceptions.accessrefused: (0, 0): (403) acces

amqp.exceptions.accessrefused: (0, 0): (403) access_refused - login was refu

今天装openstack,中途重启下机器,装到nova的时候,无法启动 openstack-nova-compute.service服务。报错如下:

  1. [root@venus nova]# journalctl -xe
  2. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  3. --
  4. -- Unit openstack-nova-compute.service has begun starting up.
  5. 1015 11:42:11 venus systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE
  6. 1015 11:42:11 venus systemd[1]: Failed to start OpenStack Nova Compute Server.
  7. -- Subject: Unit openstack-nova-compute.service has failed
  8. -- Defined-By: systemd
  9. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  10. --
  11. -- Unit openstack-nova-compute.service has failed.
  12. --
  13. -- The result is failed.
  14. 1015 11:42:11 venus systemd[1]: Unit openstack-nova-compute.service entered failed state.
  15. 1015 11:42:11 venus systemd[1]: openstack-nova-compute.service failed.
  16. 1015 11:42:11 venus systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
  17. 1015 11:42:11 venus systemd[1]: Stopped OpenStack Nova Compute Server.
  18. -- Subject: Unit openstack-nova-compute.service has finished shutting down
  19. -- Defined-By: systemd
  20. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  21. --
  22. -- Unit openstack-nova-compute.service has finished shutting down.
  23. 1015 11:42:11 venus systemd[1]: Starting OpenStack Nova Compute Server...
  24. -- Subject: Unit openstack-nova-compute.service has begun start-up
  25. -- Defined-By: systemd
  26. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  27. --
  28. -- Unit openstack-nova-compute.service has begun starting up.

查看nova-computer.log文件

  1. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self.connection.ensure_connection(errback=on_error)
  2. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 405, in ensure_connection
  3. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service callback)
  4. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/utils/functional.py", line 332, in retry_over_time
  5. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return fun(*args, **kwargs)
  6. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 261, in connect
  7. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return self.connection
  8. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 802, in connection
  9. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self._connection = self._establish_connection()
  10. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/connection.py", line 757, in _establish_connection
  11. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service conn = self.transport.establish_connection()
  12. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 130, in establish_connection
  13. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service conn.connect()
  14. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 313, in connect
  15. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service self.drain_events(timeout=self.connect_timeout)
  16. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 500, in drain_events
  17. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service while not self.blocking_read(timeout):
  18. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 506, in blocking_read
  19. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service return self.on_inbound_frame(frame)
  20. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/method_framing.py", line 55, in on_frame
  21. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service callback(channel, method_sig, buf, None)
  22. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 510, in on_inbound_method
  23. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service method_sig, payload, content,
  24. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 126, in dispatch_method
  25. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service listener(*args)
  26. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 639, in _on_close
  27. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service (class_id, method_id), ConnectionError)
  28. 2019-10-15 11:43:08.817 21429 ERROR oslo_service.service AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.

通过查看反复出现的错误:

AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.

解决方法是rabbitmq-server.service服务异常,先使用命令 rabbitmqctl status查看,如果异常输出,就重新安装rabbitmqctl,重新创建用户。如果正常输出,如下:

  1. [root@venus nova]# rabbitmqctl status
  2. Status of node rabbit@venus
  3. [{pid,1989},
  4. {running_applications,
  5. [{rabbit,"RabbitMQ","3.6.16"},
  6. {mnesia,"MNESIA CXC 138 12","4.14.3"},
  7. {ranch,"Socket acceptor pool for TCP protocols.","1.3.2"},
  8. {rabbit_common,
  9. "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
  10. "3.6.16"},
  11. {xmerl,"XML parser","1.3.14"},
  12. {ssl,"Erlang/OTP SSL application","8.1.3.1"},
  13. {os_mon,"CPO CXC 138 46","2.4.2"},
  14. {compiler,"ERTS CXC 138 10","7.0.4.1"},
  15. {public_key,"Public key infrastructure","1.4"},
  16. {crypto,"CRYPTO","3.7.4"},
  17. {syntax_tools,"Syntax tools","2.1.1"},
  18. {asn1,"The Erlang ASN1 compiler version 4.0.4","4.0.4"},
  19. {recon,"Diagnostic tools for production use","2.3.2"},
  20. {sasl,"SASL CXC 138 11","3.0.3"},
  21. {stdlib,"ERTS CXC 138 10","3.3"},
  22. {kernel,"ERTS CXC 138 10","5.2"}]},
  23. {os,{unix,linux}},
  24. {erlang_version,
  25. "Erlang/OTP 19 [erts-8.3.5.3] [source] [64-bit] [smp:32:32] [async-threads:512] [hipe] [kernel-poll:true]\n"},
  26. {memory,
  27. [{connection_readers,2772584},
  28. {connection_writers,156680},
  29. {connection_channels,794696},
  30. {connection_other,5333856},

则只需要重新创新用户,如果出现这个错误就是rabbitmq服务的事情。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/342956
推荐阅读
相关标签
  

闽ICP备14008679号