尝试安装/配置CommCare 总部在 Ubuntu 12.04 LTS 上。我已经安装了所有依赖项,并设置它们并运行,当我输入命令时
./manage.py syncdb --noinput
显示以下错误:
INFO Raven is not configured (disabled). Please see documentation for more information.
Syncing...
Creating tables ...
sync `auditcare` in CouchDB
Traceback (most recent call last):
File "./manage.py", line 30, in <module>
execute_manager(settings)
.
.
.
.
raise RequestError("socket.error: %s" % str(e))
restkit.errors.RequestError: socket.error: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
请指导我如何摆脱此错误
答案1
您的 Couchdb 设置似乎未正确设置。您应该确保本地设置中的以下设置指向正确的数据库:
####### Couch Config ######
COUCH_HTTPS = False # recommended production value is True if enabling https
COUCH_SERVER_ROOT = '127.0.0.1:5984'
COUCH_USERNAME = 'admin'
COUCH_PASSWORD = '********'
COUCH_DATABASE_NAME = 'commcarehq'
https://github.com/dimagi/commcare-hq有非常可靠的安装说明,适用于 Ubuntu 12.04