部署 MobileFirst Server 配置时出错
Error Deploying MobileFirst Server Configuration
在将远程 MobileFirst Server 升级到版本 7.0(从版本 6.2)的过程中,我 运行 在尝试使用服务器配置工具重新部署时遇到了问题。
这是我看到的唯一明显的错误,不确定您可能需要哪些其他信息来帮助诊断:
Buildfile: /home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml
adminstall:
[installworklightadmin] Logging output of task <installWorklightAdmin> to file /home/worklight/.mobilefirst_platform_server/configuration-logs/installWorklightAdmin_2015_06_15_14_57_11.log
[installworklightadmin] WARNING:
[installworklightadmin] The value of the MySQL system variable innodb_log_file_size is 5,242,880 (5 MB). The recommended limit is 250 MB.
[installworklightadmin] For more information, see the MySQL Reference Manual, sections "Server System Variables" and "InnoDB Configuration" for details.
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html
BUILD FAILED
/home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml:71: The element <installWorklightAdmin>, <jmx libertyAdminUser=".." libertyAdminPassword="..."/> is missing. A default user cannot be created for this server.
Total time: 2 seconds
我实际上没有在最后一个窗格中选择 "Create a default user" 选项,但无论哪种方式都会出现该错误。
如果我尝试完全创建新的服务器配置,也会看到同样的错误。
此警告与 mySQL 中的一个参数有关,需要增加该参数以避免稍后在运行时出错。这是一个警告,应该(理论上)与服务器配置工具中的错误无关。服务器配置工具有什么问题?
[installworklightadmin] The value of the MySQL system variable innodb_log_file_size is 5,242,880 (5 MB). The recommended limit is 250 MB.
[installworklightadmin] For more information, see the MySQL Reference Manual, sections "Server System Variables" and "InnoDB Configuration" for details.
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html
关于错误信息:
/home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml:71: The element , is missing. A default user cannot be created for this server.
如果您的 Liberty 是为 LDAP 配置的,就会发生这种情况。在那种情况下,服务器配置工具无法添加用户(如果 Liberty 具有基本注册表,它可以添加用户)。这也会阻止服务器配置工具执行安装,因为它需要为 JMX(一个 Liberty 管理员)创建一个用户。
解决方法是:
- 将您的 6.2 配置导出为 ant 文件(在服务器配置工具中,菜单 File/Export 配置为 ant 文件),然后 运行 手动导出文件,如此处 https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.upgrade.doc/devenv/c_upgrade_to_srvr_upgrading_wl_runtime_TOP.html 所述。您需要 运行 的 ant 目标(升级数据库 'minimal update' 不需要创建用户,应该与配置了 LDAP 的 Liberty 一起工作)
- 如果无法导出 6.2 文件,则需要创建自己的 ant 文件(例如使用 /WorklightServer/configuration-samples 中的示例配置)并添加错误消息中指示的属性。 ant任务的参考手册在这里:https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.reference.doc/devref/r_ant_tasks_installwladmin_reference.html
在将远程 MobileFirst Server 升级到版本 7.0(从版本 6.2)的过程中,我 运行 在尝试使用服务器配置工具重新部署时遇到了问题。
这是我看到的唯一明显的错误,不确定您可能需要哪些其他信息来帮助诊断:
Buildfile: /home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml
adminstall:
[installworklightadmin] Logging output of task <installWorklightAdmin> to file /home/worklight/.mobilefirst_platform_server/configuration-logs/installWorklightAdmin_2015_06_15_14_57_11.log
[installworklightadmin] WARNING:
[installworklightadmin] The value of the MySQL system variable innodb_log_file_size is 5,242,880 (5 MB). The recommended limit is 250 MB.
[installworklightadmin] For more information, see the MySQL Reference Manual, sections "Server System Variables" and "InnoDB Configuration" for details.
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
[installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html
BUILD FAILED
/home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml:71: The element <installWorklightAdmin>, <jmx libertyAdminUser=".." libertyAdminPassword="..."/> is missing. A default user cannot be created for this server.
Total time: 2 seconds
我实际上没有在最后一个窗格中选择 "Create a default user" 选项,但无论哪种方式都会出现该错误。
如果我尝试完全创建新的服务器配置,也会看到同样的错误。
此警告与 mySQL 中的一个参数有关,需要增加该参数以避免稍后在运行时出错。这是一个警告,应该(理论上)与服务器配置工具中的错误无关。服务器配置工具有什么问题?
[installworklightadmin] The value of the MySQL system variable innodb_log_file_size is 5,242,880 (5 MB). The recommended limit is 250 MB. [installworklightadmin] For more information, see the MySQL Reference Manual, sections "Server System Variables" and "InnoDB Configuration" for details. [installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html [installworklightadmin] http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html
关于错误信息:
/home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7/MobileFirst_7.xml:71: The element , is missing. A default user cannot be created for this server.
如果您的 Liberty 是为 LDAP 配置的,就会发生这种情况。在那种情况下,服务器配置工具无法添加用户(如果 Liberty 具有基本注册表,它可以添加用户)。这也会阻止服务器配置工具执行安装,因为它需要为 JMX(一个 Liberty 管理员)创建一个用户。
解决方法是:
- 将您的 6.2 配置导出为 ant 文件(在服务器配置工具中,菜单 File/Export 配置为 ant 文件),然后 运行 手动导出文件,如此处 https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.upgrade.doc/devenv/c_upgrade_to_srvr_upgrading_wl_runtime_TOP.html 所述。您需要 运行 的 ant 目标(升级数据库 'minimal update' 不需要创建用户,应该与配置了 LDAP 的 Liberty 一起工作)
- 如果无法导出 6.2 文件,则需要创建自己的 ant 文件(例如使用 /WorklightServer/configuration-samples 中的示例配置)并添加错误消息中指示的属性。 ant任务的参考手册在这里:https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.reference.doc/devref/r_ant_tasks_installwladmin_reference.html