我正在研究蜂巢的POC,我遇到了连接无人机的问题。对于基本设置,我让服务器正常工作,我可以通过https://X.X.X.X:5000访问它(由于接受默认设置,我得到了一个证书错误)。当我在同一子网上设置另一个服务器时,我运行以下命令并获得一个错误。
user@beeswarm-sensor1:/opt/drone_workdir$ sudo beeswarm --config https://X.X.X.X:5000/ws/drone/add/0f74fe
2014-09-03 16:12:24,681 (root) Initializing BeeSwarm version 0.4.17
2014-09-03 16:12:24,688 (requests.packages.urllib3.connectionpool) Starting new HTTPS connection (1): 10.6.13.238
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)
InsecureRequestWarning)
2014-09-03 16:12:24,704 (root) Error while extracting configuration from https://X.X.X.X:5000/ws/drone/add/0f74fe, please make sure that the correct url was provided.我假设这是由于证书错误造成的,但我没有看到比斯温的文档中有任何关于这对其他任何人都有问题的引用。因为这只是一个快速的POC,所以我不想处理创建证书之类的问题。
谢谢,埃里克
发布于 2014-09-04 16:05:31
我相信这个问题是由于我在sudo下跑蜂巢而引起的。一旦我以非特权用户的身份运行它,它就工作得很好。我为这篇文章道歉。
https://serverfault.com/questions/626261
复制相似问题