使用Cloudant的IBM Container上的MFPF不起作用

时间:2015-11-13 12:47:46

标签: ibm-cloud ibm-mobilefirst

我按照以下步骤选择Cloudant作为数据库。

在IBM Containers上运行IBM MobileFirst Platform Foundation https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/bluemix/run-foundation-on-bluemix/

似乎创建db命令已成功执行。

./prepareserverdbs.sh args/prepareserverdbs.properties
Arguments : 
----------- 

DB_TYPE :  cloudantNoSQLDB
DB_SRV_NAME :  container1114
DB_SRV_PLAN :  Shared
APP_NAME :  container1114
RUNTIME_NAME : 
SCHEMA_NAME :  WLADMIN

Creating database Service - container1114
Successfully created Database Service
Creating application 'container1114'
Application Created Successfully
Getting database configuration
Configuration saved in file '../usr/config/wladmin.xml'
Successfully Completed Cloudant NoSQL DB Service Binding
bash-3.2$ ./prepareserverdbs.sh args/prepareserverdbs.properties
Arguments : 
----------- 

DB_TYPE :  cloudantNoSQLDB
DB_SRV_NAME :  container1114
DB_SRV_PLAN :  Shared
APP_NAME :  container1114
RUNTIME_NAME :  AdapterBasedAuth
SCHEMA_NAME :  AdapterBasedAuth

Database service 'container1114' exists
Application 'container1114' exists
Getting database configuration
Configuration saved in file '../usr/config/AdapterBasedAuth.xml'
Successfully Completed Cloudant NoSQL DB Service Binding

但是当我打开Cloudant Web控制台时,我看不到任何数据库。

我成功使用此cloudant服务绑定应用创建了容器。但是,当我打开MFPF控制台时,我看不到任何应用程序。我在“messages.log”中收到了以下错误。

我该如何解决这个问题?

[11/13/15 12:31:40:955 UTC] 000000b4 com.ibm.worklight.management.ui.servlet.ServiceProxy         E Exception Server returned HTTP response code: 500 for URL: http://134.168.23.233:9080/worklightadmin/management-apis/1.0/runtimes?fullInfo=true while redirecting request to http://134.168.23.233:9080/worklightadmin/management-apis/1.0/runtimes?fullInfo=true
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant URL = https://e8ebde9a-5f33-4364-8eb0-d77a028f5f66-bluemix:c27f9feffefc04bf53321c1185757fed47b0d6775334ee802bc0a180xxxxxx@e8ebde9a-5f33-4364-8eb0-d77a02xxxxxxx-bluemix.cloudant.com
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Databasename = mfp_admin_db
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Username = e8ebde9a-5f33-4364-8eb0-d77xxxxx6-bluemix
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Password = ****************************************************************
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Connect Timeout = null
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Socket Timeout = null
[11/13/15 12:34:56:406 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Max Connections = null
[11/13/15 12:34:56:407 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant SSL Authentication = null
[11/13/15 12:34:56:407 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant SSL Configuration = null
[11/13/15 12:34:56:407 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Proxy Host = null
[11/13/15 12:34:56:407 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Proxy Port = null
[11/13/15 12:34:56:408 UTC] 000000ef com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant URL = https://e8ebde9a-5f33-4364-8eb0-d77a028f5f66-bluemix:c27f9feffefc04bf53321c1185757fed47b0d6775334ee802bc0a1800b2746e4@e8ebde9a-5f33-4364-8eb0-d77a0xxxxxx-bluemix.cloudant.com
[11/13/15 12:34:56:408 UTC] 000000ef com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Databasename = mfp_admin_db
[11/13/15 12:34:56:408 UTC] 000000ef com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Username = e8ebde9a-5f33-4364-8eb0-d77a028f5f66-bluemix
[11/13/15 12:34:56:408 UTC] 000000ef com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Password = ****************************************************************
[11/13/15 12:34:56:408 UTC] 000000ef com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      I Cloudant Connect Timeout = null
[11/13/15 12:34:56:407 UTC] 000000eb com.ibm.worklight.admin.datastore.DataStoreCloudantUtil      E Failed to allocate Cloudant Data Store even though it is configured.

1 个答案:

答案 0 :(得分:1)

仅供参考,对于CloudantDB,prepareserverdb.scripts不会创建任何表。它在使用startserver脚本创建容器期间发生。

当您遇到任何问题时,您可以查看Bluemix状态通知页面。它将向您显示每个服务状态。

https://status.ng.bluemix.net/

在执行prepareserver.sh脚本操作之前,您是否添加了任何项目运行时(WAR)。只有在执行图像构建(定制后)之前添加项目后,才会在MFPF控制台上显示运行时(不是应用程序)。您可以在运行时登录管理控制台后添加应用程序和适配器。

例如...... MobileFirstStarter基于图像的容器默认只有单个运行时称为“MobileFirstStarter”