CreditEaseDBA / Themis

数据库审核平台
Apache License 2.0
346 stars 167 forks source link

安装完成后启动报Invalid IPv6 URL错误 #17

Closed bqwzhl20 closed 6 years ago

bqwzhl20 commented 6 years ago

File "/home/themis-test/python-project/bin/celery", line 11, in sys.exit(main()) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/main.py", line 30, in main main() File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/celery.py", line 81, in main cmd.execute_from_commandline(argv) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/celery.py", line 769, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/base.py", line 311, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/celery.py", line 761, in handle_argv return self.execute(command, argv) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/celery.py", line 693, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/worker.py", line 179, in run_from_argv return self(*args, *options) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/base.py", line 274, in call ret = self.run(args, kwargs) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/bin/worker.py", line 212, in run state_db=self.node_format(state_db, hostname), kwargs File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/worker/init.py", line 100, in init self.setup_instance(self.prepare_args(kwargs)) File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/worker/init.py", line 124, in setup_instance self._conninfo = self.app.connection() File "/home/themis-test/python-project/lib/python2.7/site-packages/celery/app/base.py", line 385, in connection 'BROKER_CONNECTION_TIMEOUT', connect_timeout File "/home/themis-test/python-project/lib/python2.7/site-packages/kombu/connection.py", line 164, in init transport = transport or urlparse(hostname).scheme File "/usr/lib64/python2.7/urlparse.py", line 142, in urlparse tuple = urlsplit(url, scheme, allow_fragments) File "/usr/lib64/python2.7/urlparse.py", line 213, in urlsplit raise ValueError("Invalid IPv6 URL") ValueError: Invalid IPv6 URL

安装完成后启动后报如上错误,服务器上面没有启用ipv6

tuteng commented 6 years ago

看一下你的celery中broker的配置,redis的密码中是否有特殊字符 参考这里 https://github.com/celery/celery/issues/1553

bqwzhl20 commented 6 years ago

已解决,确实有特殊字符,去掉后就可以了,非常感谢