Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
I'm unable to upload new application. The upload process is stuck on uploading.
by (37.6k points)

1 Answer

0 votes

This is the Tomcat issue observed on the version 9.0.31 installed by apt on Ubuntu 20.04 by default.

For some reason, even if the Headwind MDM installer upgraded Tomcat to a newer version, Ubuntu may occasionally downgrade it!

To check which version you're using, run the command:

/usr/share/tomcat9/bin/version.sh

If you will see version 9.0.31, that's it, you need to update.

Here are the commands to update Tomcat:

wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.40/bin/apache-tomcat-9.0.40.tar.gz

tar -zxf apache-tomcat-9.0.40.tar.gz

cd apache-tomcat-9.0.40

chmod a+x bin

chmod a+x lib

chmod -R a+r bin

chmod -R a+r lib

chmod a+x bin/*.sh

mv /usr/share/tomcat9/bin /usr/share/tomcat9/bin~

mv /usr/share/tomcat9/lib /usr/share/tomcat9/lib~

cp -r bin /usr/share/tomcat9

cp -r lib /usr/share/tomcat9

service tomcat9 restart

cd ..

rm -rf apache-tomcat-9.0.40

rm -f apache-tomcat-9.0.40.tar.gz

apt-mark hold tomcat9

Notice: the last command is important because it prevents Tomcat package from occasional downgrading in the future.

by (37.6k points)
edited by
Hi, I have a similar issue to this problem. My Upload freezes when the upload is at the end.
For example, when the apk is 48mb, it will stop at 48mb and don't show a completion.
I have installed the version 9.0.63.0 and also set it on hold. Could there be another reason why it freezes?
Check the Tomcat log file for details. The issue you're reporting may be raised if you're uploading a corrupted APK. See how to view the Tomcat log file here: https://qa.h-mdm.com/16822/
Unfortunately, this is not the case. The apk works fine, and the tomcat logfile only shows the start and end of an iteration. Everything else works fine.
I would propose to collect and analyze the traffic dump between the server and the client. Make sure that Tomcat version is not 9.0.31 first.
...