Open zhui19871 opened 3 years ago
2021-08-26 11:36:12,693 () volttron.platform.main ERROR: Unhandled exception in rmq router loop Traceback (most recent call last): File "/home/hbt/zhuhui6/volttron/volttron/platform/main.py", line 853, in rmq_router RMQRouter(opts.vip_address, opts.vip_local_address, opts.instance_name, opts.vip_address, File "/home/hbt/zhuhui6/volttron/volttron/platform/vip/rmq_router.py", line 99, in init param = self._build_connection_parameters() File "/home/hbt/zhuhui6/volttron/volttron/platform/vip/rmq_router.py", line 111, in _build_connection_parameters param = self.rmq_mgmt.build_router_connection(self._identity, File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 1044, in build_router_connection self.create_user_with_permissions(rmq_user, permissions, ssl_auth=self.is_ssl) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 940, in create_user_with_permissions self.set_user_permissions(perms, user, ssl_auth=ssl_auth) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 354, in set_user_permissions response = self._http_put_request(url, body=permissions, ssl_auth=ssl_auth) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 162, in _http_put_request return self._call_grequest('put', url_suffix, ssl_auth, File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 120, in _call_grequest raise e File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 112, in _call_grequest response[0].raise_for_status() File "/home/hbt/zhuhui6/volttron/env/lib/python3.9/site-packages/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://hbt-desktop:15671/api/permissions/hbt-desktop/volttron1.router
2021-08-26 13:46:30,137 () volttron.platform.main ERROR: Unhandled exception in rmq router loop Traceback (most recent call last): File "/home/hbt/zhuhui6/volttron/volttron/platform/main.py", line 853, in rmq_router RMQRouter(opts.vip_address, opts.vip_local_address, opts.instance_name, opts.vip_address, File "/home/hbt/zhuhui6/volttron/volttron/platform/vip/rmq_router.py", line 99, in init param = self._build_connection_parameters() File "/home/hbt/zhuhui6/volttron/volttron/platform/vip/rmq_router.py", line 111, in _build_connection_parameters param = self.rmq_mgmt.build_router_connection(self._identity, File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 1044, in build_router_connection self.create_user_with_permissions(rmq_user, permissions, ssl_auth=self.is_ssl) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 940, in create_user_with_permissions self.set_user_permissions(perms, user, ssl_auth=ssl_auth) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 354, in set_user_permissions response = self._http_put_request(url, body=permissions, ssl_auth=ssl_auth) File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 162, in _http_put_request return self._call_grequest('put', url_suffix, ssl_auth, File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 120, in _call_grequest raise e File "/home/hbt/zhuhui6/volttron/volttron/utils/rmq_mgmt.py", line 112, in _call_grequest response[0].raise_for_status() File "/home/hbt/zhuhui6/volttron/env/lib/python3.9/site-packages/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://hbt-desktop:15671/api/permissions/hbt-desktop/volttron1.router 2021-08-26 13:46:30,149 () volttron.platform.main ERROR: 'Thread' object has no attribute 'isAlive' 2021-08-26 13:46:30,161 () volttron.platform.main ERROR: None
Thankyou for the issue. RabbitMQ VOLTTRON is not supported for ubuntu 20.04 (Check known issues section in https://github.com/VOLTTRON/volttron/releases/tag/8.0.0) and above. We are working on upgrading it.
my ubuntu version is 21.04, and git clone volttron is 8.0, and rabbitmq version 3.7.7, and use follow command to show rabbitmq is well:
hbt@hbt-desktop:~/zhuhui6/volttron$ $RABBITMQ_HOME/sbin/rabbitmqctl status Status of node rabbit@hbt-desktop ... [{pid,124255}, {running_applications, [{rabbitmq_shovel_management, "Management extension for the Shovel plugin","3.7.7"}, {rabbitmq_federation_management,"RabbitMQ Federation Management", "3.7.7"}, {rabbitmq_management,"RabbitMQ Management Console","3.7.7"}, {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.7"}, {cowboy,"Small, fast, modern HTTP server.","2.2.2"}, {rabbitmq_federation,"RabbitMQ Federation","3.7.7"}, {rabbitmq_auth_mechanism_ssl, "RabbitMQ SSL authentication (SASL EXTERNAL)","3.7.7"}, {rabbitmq_trust_store,"Client X.509 certificates trust store","3.7.7"}, {rabbitmq_amqp1_0,"AMQP 1.0 support for RabbitMQ","3.7.7"}, {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.7"}, {rabbitmq_shovel,"Data Shovel for RabbitMQ","3.7.7"}, {rabbit,"RabbitMQ","3.7.7"}, {amqp_client,"RabbitMQ AMQP Client","3.7.7"}, {rabbit_common, "Modules shared by rabbitmq-server and rabbitmq-erlang-client", "3.7.7"}, {ranch_proxy_protocol,"Ranch Proxy Protocol Transport","1.5.0"}, {ranch,"Socket acceptor pool for TCP protocols.","1.5.0"}, {amqp10_client,"AMQP 1.0 client from the RabbitMQ Project","3.7.7"}, {ssl,"Erlang/OTP SSL application","10.2.3"}, {public_key,"Public key infrastructure","1.9.2"}, {asn1,"The Erlang ASN1 compiler version 5.0.14","5.0.14"}, {amqp10_common, "Modules shared by rabbitmq-amqp1.0 and rabbitmq-amqp1.0-client", "3.7.7"}, {cowlib,"Support library for manipulating Web protocols.","2.1.0"}, {inets,"INETS CXC 138 49","7.3.2"}, {mnesia,"MNESIA CXC 138 12","4.18.1"}, {crypto,"CRYPTO","4.8.3"}, {jsx,"a streaming, evented json parsing toolkit","2.8.2"}, {recon,"Diagnostic tools for production use","2.3.2"}, {os_mon,"CPO CXC 138 46","2.6.1"}, {xmerl,"XML parser","1.3.26"}, {lager,"Erlang logging framework","3.6.3"}, {goldrush,"Erlang event stream processor","0.1.9"}, {compiler,"ERTS CXC 138 10","7.6.6"}, {syntax_tools,"Syntax tools","2.4"}, {syslog,"An RFC 3164 and RFC 5424 compliant logging framework.","3.4.2"}, {sasl,"SASL CXC 138 11","4.0.1"}, {stdlib,"ERTS CXC 138 10","3.14"}, {kernel,"ERTS CXC 138 10","7.2"}]}, {os,{unix,linux}}, {erlang_version, "Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64]\n"}, {memory, [{connection_readers,0}, {connection_writers,0}, {connection_channels,0}, {connection_other,2732}, {queue_procs,0}, {queue_slave_procs,0}, {plugins,1209448}, {other_proc,24500336}, {metrics,199500}, {mgmt_db,183416}, {mnesia,92528}, {other_ets,3233312}, {binary,186160}, {msg_index,66176}, {code,30136694}, {atom,1286449}, {other_system,12353873}, {allocated_unused,10828672}, {reserved_unallocated,24576}, {strategy,rss}, {total,[{erlang,73450624},{rss,84303872},{allocated,84279296}]}]}, {alarms,[]}, {listeners, [{clustering,25672,"::"}, {amqp,5672,"::"}, {'amqp/ssl',5671,"::"}, {https,15671,"::"}]}, {vm_memory_calculation_strategy,rss}, {vm_memory_high_watermark,0.4}, {vm_memory_limit,1568656588}, {disk_free_limit,50000000}, {disk_free,6575857664}, {file_descriptors, [{total_limit,924},{total_used,4},{sockets_limit,829},{sockets_used,0}]}, {processes,[{limit,1048576},{used,451}]}, {run_queue,1}, {uptime,4734}, {kernel,{net_ticktime,60}}] hbt@hbt-desktop:~/zhuhui6/volttron$
but when i use the command: ./start-volttron to start volttron is failed, and error as follows:
2021-08-26 10:36:27,518 () pika.connection WARNING: Could not connect, 2 attempts left 2021-08-26 10:36:29,526 () pika.adapters.base_connection WARNING: Connection to 10.113.26.17:5671 failed: [SSL] internal error (_ssl.c:1129) 2021-08-26 10:36:29,528 () pika.connection WARNING: Could not connect, 1 attempts left 2021-08-26 10:36:31,536 () pika.adapters.base_connection WARNING: Connection to 10.113.26.17:5671 failed: [SSL] internal error (_ssl.c:1129) 2021-08-26 10:36:31,537 () pika.connection WARNING: Could not connect, 0 attempts left 2021-08-26 10:36:31,538 () volttron.platform.vip.rmq_connection ERROR: Connection open error. Check if RabbitMQ broker is running.
please help, thanks!