简体   繁体   English

WSo2 EMM - 应用管理数据库错误

[英]WSo2 EMM - App Management Database Bug

Running WSo2 EMM 1.1.0, everything has been working just fine except for one big issue.运行 WSo2 EMM 1.1.0,除了一个大问题外,一切正常。

From the moment I first click on an app in the App Management tab, the WSO2EMM_DB.h2.db file starts to steadily grow as long as the server is running, even with absolutely no changes.从我第一次单击 App Management 选项卡中的应用程序的那一刻起,只要服务器正在运行,WSO2EMM_DB.h2.db 文件就会开始稳定增长,即使绝对没有任何更改。 Eventually, it gets so big that clicking an app on that tab takes a ridiculously long time to load the list of devices using the app.最终,它变得如此之大,以至于在该选项卡上单击应用程序需要花费很长时间才能加载使用该应用程序的设备列表。 We're talking 5+ minutes, it becomes completely unusable.我们正在谈论 5 分钟以上,它变得完全无法使用。 I have checked the error logs and found no errors at all, every time.我检查了错误日志,每次都没有发现任何错误。

Restarting the server does nothing to correct the issue.重新启动服务器并不能解决问题。 Even if I click an app on the App Management tab once, and never again, the database file will continue to grow.即使我在应用程序管理选项卡上单击一次应用程序,以后再也不会,数据库文件将继续增长。 Even restarting the server and not logging into the EMM page, it will continue to grow.即使重新启动服务器而不登录 EMM 页面,它也会继续增长。

The only thing I've found so far that can possibly help is keeping backup copies of the database file and overwriting the current file when it gets too big.到目前为止,我发现唯一可能有帮助的方法是保留数据库文件的备份副本,并在当前文件变得太大时覆盖它。 Obviously that's not a solution, as I'd need to create a new backup file every time there's a change on the server, and eventually the database file would grow too big from that too.显然这不是解决方案,因为每次服务器发生更改时我都需要创建一个新的备份文件,最终数据库文件也会因此变得太大。

It's not an issue with the H2 database either.这也不是 H2 数据库的问题。 Not only have I tried starting over fresh several times and have had the same behavior, but here is the only info I could find regarding this issue, and they were having the issue regardless of whether or not it was on H2 or MySQL.我不仅尝试过多次重新开始并且有相同的行为,而且是我能找到的有关此问题的唯一信息,无论是在 H2 还是 MySQL 上,他们都遇到了问题。

I've been trying to find a solution for this for over a month with no success.一个多月以来,我一直试图为此找到解决方案,但没有成功。 Any help would be appreciated!任何帮助,将不胜感激!

EDIT: It looks like this might be the subject of EMM-826 .编辑:看起来这可能是EMM-826的主题。 Unfortunately there seems to be no response to that bug report so far.不幸的是,到目前为止,似乎对该错误报告没有任何回应。

EDIT 2: EMM-826 was closed with a message saying the following:编辑 2: EMM-826已关闭,并显示以下消息:

This issue is fixed in the EMM 1.1.0 GA latest pack.此问题已在 EMM 1.1.0 GA 最新包中修复。 Please get all the patches for the product/build the product from the latest source [ https://github.com/wso2/product-emm ] and try again.请从最新源 [ https://github.com/wso2/product-emm ] 获取产品的所有补丁/构建产品,然后重试。

Unfortunately, that did not work for me.不幸的是,这对我不起作用。 I'm not sure what exactly I'm doing wrong, so I'll list the what I did to try to fix it:我不确定我到底做错了什么,所以我将列出我尝试修复它的方法:

  1. Downloaded the EMM 1.1.0 zip from http://wso2.com/products/enterprise-mobility-manager/ .http://wso2.com/products/enterprise-mobility-manager/下载 EMM 1.1.0 zip。

  2. Downloaded the zip from https://github.com/wso2/product-emm and pasted the files from that into my EMM_HOME directory.https://github.com/wso2/product-emm下载 zip 并将其中的文件粘贴到我的 EMM_HOME 目录中。

  3. When that didn't work, I searched for patches and found I was only using patches 1-6.当那不起作用时,我搜索了补丁,发现我只使用了补丁 1-6。 In the documentation I found I could download patches 7-12 here .在文档中,我发现我可以在这里下载补丁 7-12。 Patches 9 and 10 didn't work right for some reason;由于某些原因,补丁 9 和 10 无法正常工作; causing me not to be able to reach the EMM dashboard or publisher.导致我无法访问 EMM 信息中心或发布商。 I could only access the Carbon manager.我只能访问 Carbon 管理器。 I was able to make patches 7, 8, 11, and 12 work though - with no change in behavior.不过,我能够使补丁 7、8、11 和 12 正常工作 - 行为没有改变。

Here are the steps I take to reproduce the issue:以下是我为重现该问题而采取的步骤:

  1. After setting a fresh copy of the EMM up, I log in to the EMM dashboard as Admin, set up a user account, and upload an app through the Publisher.设置 EMM 的新副本后,我以管理员身份登录 EMM 仪表板,设置用户帐户,并通过发布者上传应用程序。

  2. Register a device to the user account I set up.将设备注册到我设置的用户帐户。 In this case, an Android device running Android 4.2.2.在本例中,是运行 Android 4.2.2 的 Android 设备。

  3. From the dashboard, I go to App Management and click the app I uploaded.在仪表板中,我转到应用程序管理并单击我上传的应用程序。 The list of devices loads, but from that point on, the database file starts growing and eventually, after several hours, becomes so large it the device list will never load.设备列表加载,但从那时起,数据库文件开始增长,并最终在几个小时后变得如此之大,以至于设备列表永远不会加载。

Please help!请帮忙!

Found this happening also, from a quick look it's the WSO2EMM_DB.notifications table.也发现了这种情况,快速查看它是 WSO2EMM_DB.notifications 表。 Seems to keep a history of all notifications over time, and the info for app installs is taken from non-optimized queries, which degrade as the table grows.似乎随着时间的推移保留所有通知的历史记录,并且应用安装的信息取自未优化的查询,随着表的增长而降级。 You 'could' delete all rows from the table, and it will re-populate as devices 'check back' and report their info.您“可以”删除表中的所有行,它会在设备“检查”并报告其信息时重新填充。

But you'd probably want to write a query to just keep the latest notification of each type of each user (I'll leave that to someone else...) and as was mentioned, it is apparently fixed in the latest version.但是您可能想要编写一个查询来保留每个用户的每种类型的最新通知(我会将其留给其他人...),正如前面提到的,它显然已在最新版本中修复。

问题似乎在 EMM 2.0 中得到解决,可在此处找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM