Ok, I started the Script:
bin/OpenEMMInstaller.sh
Chose Option 5
Current menu: Install or update package from AGNITAS Website
OpenEMM Update via AGNITAS Website
Download and install latest packages (only openemm-package needs root permissions for OMT)? (N/y, Blank => Cancel):
> y
Starting OpenEMM Update ...
Package contains application type 'Runtime' of version '20.10.070'.
Your current version is '20.10.070'.
This is the same version.
Install anyway? (N/y, Blank => Cancel):
> N
Package contains application type 'Apache Tomcat' of version '9.0.33'.
Your current version is '9.0.33'.
This is the same version.
Install anyway? (N/y, Blank => Cancel):
> n
Package contains application type 'Apache Tomcat Native' of version '1.2.23'.
Your current version is '1.2.23'.
This is the same version.
Install anyway? (N/y, Blank => Cancel):
> n
---> The Script jumps back to the main-menu, showing this Error-Message:
Error while deploying update package /home/openemm/release/log/update_2021-02-02_18-39-30.log)
The Log contains:
Code: Select all
Update started at: 2021-02-02_18:39:30
Update package url: https://share.agnitas.de/index.php/s/bpiTmdvOalXSEyz/download
Update package file: openemm-runtime-20.10.070.tar.gz
Declined installation of version '20.10.070' for application 'runtime'
Update package url: https://share.agnitas.de/index.php/s/Tz6jMmBs8ZzQMfE/download
Update package file: apache-tomcat-9.0.33.tar.gz
Declined installation of version '9.0.33' for application 'tomcat'
Update package url: https://share.agnitas.de/index.php/s/G95WOP3wjqrnqJr/download
Update package file: apache-tomcat-native-1.2.23-CentOS8.tar.gz
Declined installation of version '1.2.23' for application 'tomcat-native'
Update package url: https://share.agnitas.de/index.php/s/Py6y7AwjaoyZzjL/download
Update package file: openemm-code-20.10.000.128.tar.gz
Error while deploying update package (Log: /home/openemm/release/log/update_2021-02-02_18-39-30.log)
Update ended at: 2021-02-02_18:40:13
So I downloaded the .128 myself via
Code: Select all
wget https://share.agnitas.de/index.php/s/Py6y7AwjaoyZzjL/download
mv download openemm-code-20.10.000.128.tar.g
And then deployed the three containing parts myself.
In the File
/home/openemm/tomcat9/bin/OMT.py I've
added a new line after 6420
Code: Select all
databaseMenu.addSubMenu(Menu("Create new database (drop existing data)", lambda: Utilities.checkDbStructureExists() and Environment.dbClientPath != None).setAction(clearDatabaseMenuAction))
databaseMenu.addSubMenu(Menu("Create new database", lambda: Environment.dbClientPath != None).setAction(clearDatabaseMenuAction))
Because the Option for creating a new Database was not shown in the Menu after I've droped the old DB-Schema due to the lambda-expression in Line 6420.
Starting the Script:
bin/OpenEMMInstaller.sh again allowes me now to Drop an Recreate the Database.
Current menu: Create new database (drop existing data)
Are you sure to drop all current data from database? ('DROP' => drop data, Blank => Back):
> DROP
Please enter database root user password:
> [...]
Dropping database data (openemm) ...
Please enter database root user password:
> [...]
Database data was dropped
Creating new database structure
DB update started
DB already contains version 20.01.368
[...]
I works and goes back to the Mainmenu where it's stated:
Database data was dropped
Database data was dropped and recreated
Then I went to Menu 4 - Security, got myself a new Password for user 'emm-master'.
After this it was necessary to restart openEMM (Option 10), as Tomcat needs to reload et voilá:
Thank you for your hint and hopefully my description of Issues helps to improve the open Source Version a bit.