我已经在我的VPS上安装了pritunl。现在,我无法访问Web界面。无法启动服务(请查看下面的日志)。
pritunl中除了mongodb之外还有一个mariadb数据库,这有问题吗? (我需要mariadb用于其他应用程序,这就是为什么)
我遵循了CentOS的官方指南。似乎有一些缺少的先决条件,但实际上我不知道。
有人可以帮我吗? :-)

谢谢!
萌乔

pritunl logs
[undefined][2017-01-30 21:45:51,211][ERROR] Pritunl setup failed
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pritunl/setup/__init__.py", line 68, in setup_db
    setup_mongo()
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pritunl/setup/mongo.py", line 65, in setup_mongo
    serverSelectionTimeoutMS=MONGO_SOCKET_TIMEOUT,
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pymongo/mongo_client.py", line 345, in __init__
    seeds.update(uri_parser.split_hosts(entity, port))
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pymongo/uri_parser.py", line 244, in split_hosts
    raise ConfigurationError("Empty host "
ConfigurationError: Empty host (or extra comma in host list).
Traceback (most recent call last):
  File "/usr/bin/pritunl", line 9, in <module>
    load_entry_point('pritunl==1.26.1231.99', 'console_scripts', 'pritunl')()
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pritunl/__main__.py", line 264, in main
    setup.setup_db()
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pritunl/setup/__init__.py", line 68, in setup_db
    setup_mongo()
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pritunl/setup/mongo.py", line 65, in setup_mongo
    serverSelectionTimeoutMS=MONGO_SOCKET_TIMEOUT,
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pymongo/mongo_client.py", line 345, in __init__
    seeds.update(uri_parser.split_hosts(entity, port))
  File "/usr/lib/pritunl/lib/python2.7/site-packages/pymongo/uri_parser.py", line 244, in split_hosts
    raise ConfigurationError("Empty host "
pymongo.errors.ConfigurationError: Empty host (or extra comma in host list).

最佳答案

我有完全一样的问题。
唯一的解决方案是(临时)关闭apache:

显然是sudo service httpd stop或在debian sudo service apache stop

之后,您应该能够完成安装并启动pritunl,并将端口更改为不使用80和443,并最终像boss一样重新启动一切

对我来说,就像这样

sudo pritunl set app.redirect_server false
sudo service pritunl stop
sudo service apache start
sudo service pritunl start

关于python - 安装后无法启动pritunl,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41945283/

10-12 23:13