使用 Cloudant 的 IBM Container 上的 MPFF 不起作用
MFPF on IBM Container using Cloudant doesn't work
我按照以下步骤操作并选择 Cloudant 作为它的数据库。
运行 IBM Containers 上的 IBM MobileFirst Platform Foundation
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/bluemix/run-foundation-on-bluemix/
看来创建数据库命令执行成功。
./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 服务绑定应用程序创建了容器。但是当我打开 MPFF 控制台时,我没有看到任何应用程序。我在 "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.
仅供参考,对于 CloudantDB,prepareserverdb.scripts 不会创建任何表。它发生在使用 startserver 脚本创建容器的过程中。
当您遇到任何问题时,您可以查看 Bluemix 状态通知页面。它会实时显示每个服务状态。
https://status.ng.bluemix.net/
在执行 prepareserver.sh 脚本操作之前,您是否添加了任何项目运行时 (WAR)。只有在执行映像构建(post 自定义)之前添加项目后,运行时(而非应用程序)才会显示在 MPFF 控制台上。您可以在登录到运行时下的管理控制台后添加您的应用程序、适配器。
例如...基于 MobileFirstStarter 图像的容器默认只有一个名为 "MobileFirstStarter"
的运行时
我按照以下步骤操作并选择 Cloudant 作为它的数据库。
运行 IBM Containers 上的 IBM MobileFirst Platform Foundation https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/bluemix/run-foundation-on-bluemix/
看来创建数据库命令执行成功。
./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 服务绑定应用程序创建了容器。但是当我打开 MPFF 控制台时,我没有看到任何应用程序。我在 "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.
仅供参考,对于 CloudantDB,prepareserverdb.scripts 不会创建任何表。它发生在使用 startserver 脚本创建容器的过程中。
当您遇到任何问题时,您可以查看 Bluemix 状态通知页面。它会实时显示每个服务状态。
https://status.ng.bluemix.net/
在执行 prepareserver.sh 脚本操作之前,您是否添加了任何项目运行时 (WAR)。只有在执行映像构建(post 自定义)之前添加项目后,运行时(而非应用程序)才会显示在 MPFF 控制台上。您可以在登录到运行时下的管理控制台后添加您的应用程序、适配器。
例如...基于 MobileFirstStarter 图像的容器默认只有一个名为 "MobileFirstStarter"
的运行时