OMT.sh did not run after upgrading to 22.10 [solved]

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

Andrey
Posts: 57
Joined: Wed Jun 21, 2017 12:13 pm

OMT.sh did not run after upgrading to 22.10 [solved]

Post 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
:?:
Last edited by Andrey on Tue Jan 31, 2023 3:07 pm, edited 1 time in total.
maschoff
Site Admin
Posts: 2615
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OMT.sh did not run after upgrading to 22.10

Post by maschoff »

Which version of OMT do you use?
OpenEMM Maintainer
Andrey
Posts: 57
Joined: Wed Jun 21, 2017 12:13 pm

Re: OMT.sh did not run after upgrading to 22.10

Post 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
Andrey
Posts: 57
Joined: Wed Jun 21, 2017 12:13 pm

Re: OMT.sh did not run after upgrading to 22.10

Post 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')
aso
Posts: 34
Joined: Fri Jun 19, 2015 12:43 pm

Re: OMT.sh did not run after upgrading to 22.10

Post 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.
Andrey
Posts: 57
Joined: Wed Jun 21, 2017 12:13 pm

Re: OMT.sh did not run after upgrading to 22.10

Post 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>
Post Reply