Page 1 of 1
OMT.sh did not run after upgrading to 22.10 [solved]
Posted: Fri Jan 13, 2023 3:47 pm
by Andrey
Hi,
Just upgraded the OpenEmm to 22.10

– and cannot re-enter to OMT.sh.
The OpenEmm system work as expected, thought.
Code: Select all
[root@OpenEmm ~]# /home/openemm/bin/OMT.sh
Checking python installation ...
Python version found: 3.8.3 (/home/openemm/opt/python3/bin/python3)
Checking Zip installation ...
Zip version 3.0 found
Starting python ...
/home/openemm/opt/python3/bin/python3: can't open file '/home/openemm/tomcat10/bin/../scripts/OMT.py': [Errno 2] No such file or directory
Please any suggestions

Re: OMT.sh did not run after upgrading to 22.10
Posted: Sun Jan 15, 2023 5:55 pm
by maschoff
Which version of OMT do you use?
Re: OMT.sh did not run after upgrading to 22.10
Posted: Sun Jan 22, 2023 2:37 pm
by Andrey
maschoff wrote: ↑Sun Jan 15, 2023 5:55 pm
Which version of OMT do you use?
This is from OMT.py
Code: Select all
= OpenEMM Maintenance Tool (OMT) v22.10.013 =
=============================================
Root mode: On
Hostname: OpenEmm
OpenEMM License: OpenEMM (ID: 0)
OpenEMM Runtime Version: 22.10.013
OpenEMM Version: 22.04.000.238
OpenEMM Manual Version: 22.04.004
Re: OMT.sh did not run after upgrading to 22.10
Posted: Tue Jan 31, 2023 10:52 am
by Andrey
Starting the OMT.py with the -debug option.
Have this trace:
Code: Select all
]$ /home/openemm/opt/python3/bin/python3 OMT.py -debug
Traceback (most recent call last):
File "OMT.py", line 158, in <module>
main()
File "OMT.py", line 81, in main
Environment.init()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 154, in init
Environment.readSystemValues()
File "/home/openemm/tomcat10/bin/EMT_lib/Environment.py", line 902, in readSystemValues
License.checkLicenseStatus()
File "/home/openemm/tomcat10/bin/EMT_lib/License.py", line 111, in checkLicenseStatus
maximumNumberOfGuiAdmins = int(License.getLicenseValue("maximumNumberOfGuiAdmins", companyID))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
I suppose the
License.getLicenseValue("maximumNumberOfGuiAdmins") returned 'NoneType')
Re: OMT.sh did not run after upgrading to 22.10
Posted: Tue Jan 31, 2023 12:59 pm
by aso
This is some new upcoming license limitation in the EMM.
To let OpenEMM work with this problem please edit your file "openemm.emm.license.xml" in "/home/openemm/webapps/emm/WEB-INF/classes" and add the line with "maximumNumberOfGuiAdmins", so it should look like:
...
<maximumNumberOfSupervisors>-1</maximumNumberOfSupervisors>
<maximumNumberOfGuiAdmins>-1</maximumNumberOfGuiAdmins>
<maximumNumberOfAdmins>-1</maximumNumberOfAdmins>
...
This is only working for OpenEMM beacuse that licensefile is a placeholder for the signed real license file in EMM.
Re: OMT.sh did not run after upgrading to 22.10
Posted: Tue Jan 31, 2023 3:06 pm
by Andrey
Thank you very much!
Yes, this is work!
Also founded this way of solution, today)
aso wrote: ↑Tue Jan 31, 2023 12:59 pm
This is some new upcoming license limitation in the EMM.
To let OpenEMM work with this problem please edit your file "openemm.emm.license.xml" in "/home/openemm/webapps/emm/WEB-INF/classes" and add the line with "maximumNumberOfGuiAdmins", so it should look like:
...
<maximumNumberOfSupervisors>-1</maximumNumberOfSupervisors>
<maximumNumberOfGuiAdmins>-1</maximumNumberOfGuiAdmins>
<maximumNumberOfAdmins>-1</maximumNumberOfAdmins>