- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我有一个绑定(bind)了 MongoDB 实例的 Bluemix 应用程序。该应用程序已经运行了大约一年。大约一周前,我的应用程序宕机了,我无法重新部署它。我在日志中看到以下内容:
Instance (index 0) failed to start accepting connections
App instance exited with guid f13c5665-7753-4451-b766-b0879b3726fd payload: {"cc_partition"=>"default", "droplet"=>"f13c5665-7753-4451-b766-b0879b3726fd", "version"=>"1c5aeea8-2718-48ff-9d89-211148391cc8", "instance"=>"5673b51557b3457f8b3e365639fe7f6f", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1445263465}
App instance exited with guid f13c5665-7753-4451-b766-b0879b3726fd payload: {"cc_partition"=>"default", "droplet"=>"f13c5665-7753-4451-b766-b0879b3726fd", "version"=>"1c5aeea8-2718-48ff-9d89-211148391cc8", "instance"=>"5673b51557b3457f8b3e365639fe7f6f", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1445263465}
Starting app instance (index 0) with guid f13c5665-7753-4451-b766-b0879b3726fd
App instance exited with guid f13c5665-7753-4451-b766-b0879b3726fd payload: {"cc_partition"=>"default", "droplet"=>"f13c5665-7753-4451-b766-b0879b3726fd", "version"=>"1c5aeea8-2718-48ff-9d89-211148391cc8", "instance"=>"5673b51557b3457f8b3e365639fe7f6f", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1445263465}
Starting app instance (index 0) with guid f13c5665-7753-4451-b766-b0879b3726fd
Traceback (most recent call last):
File "wsgi.py", line 65, in <module>
client = pymongo.Connection(mongo_url)
File "/app/.heroku/python/lib/python2.7/site-packages/pymongo/connection.py", line 220, in __init__
max_pool_size, document_class, tz_aware, _connect, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/pymongo/mongo_client.py", line 369, in __init__raise ConfigurationError(str(exc))
pymongo.errors.ConfigurationError: command SON([('authenticate', 1), ('user', u'removingForPrivacy'), ('nonce', u'removingForPrivacy'), ('key', u'removingForPrivacy')]) failed: auth failed
我的代码在我的项目中可用 https://hub.jazz.net/project/lhayward/Fabulous%20Price%20Finder/overview .连接 MongoLab 实例的方式是否改变了?为什么我会收到身份验证错误?
最佳答案
我通过电子邮件发送了 MongoLab 支持。他们回答:
Our free Sandbox databases recently went through the scheduled version upgrade event described at:
http://docs.mongolab.com/20150930-maintenance-event/
We sent several notices on this planned maintenance over the past few months.
This Sandbox database is now running MongoDB 3.0.x, which includes changes to MongoDB's authentication mechanism. This new mechanism is supported by certain newer driver versions, as described at http://docs.mongodb.org/manual/release-notes/3.0-scram/#upgrade-drivers.
In order for your application to connect to this database, you will need to use one of the drivers listed at the above link.
他们对我的应用提出了以下建议,并解决了问题:
You'll have to update the "mongo-python-driver-master" folder to a more recent version of the python driver. You can download the driver here: https://github.com/mongodb/mongo-python-driver/releases. I'd recommend either version 2.9 or 3.0.3.
关于python - 连接到 MongoLab 数据库的方式是否改变了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33344645/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!