Closed felipecarneiro closed 1 month ago
Hi @felipecarneiro, Simply put, the first time you ran it, you didn't wait for the app to finish migrating the database. That process was interrupted and now there's a problem.
select * from scadalts.schema_version;
We can try to remove the record related to the failed migration and run the application again.Hi @felipecarneiro, what is the situation, has the problem been solved?
Regards.
Hi, I didn’t have time to test this week yet, I’m going to replicate the scenario again and post the test results. Thanks!
On Thu, Oct 3, 2024 at 10:22 AM Kamil Jarmusik @.***> wrote:
Closed #3024 https://github.com/SCADA-LTS/Scada-LTS/issues/3024 as completed.
— Reply to this email directly, view it on GitHub https://github.com/SCADA-LTS/Scada-LTS/issues/3024#event-14504471436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB552RYW7CJISKKXUEMAKQTZZVAJLAVCNFSM6AAAAABO4A3KT6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGUYDINBXGE2DGNQ . You are receiving this because you were mentioned.Message ID: @.***>
Hi @felipecarneiro, you can ask here: https://github.com/SCADA-LTS/Scada-LTS/discussions
I just did a fresh install of ScadaLTS v2.7.8 on a new Linux server using the .war file, it creates the database in the first run, but there are some new fields that are not present.
This seems to be related to: https://github.com/SCADA-LTS/Scada-LTS/issues/1947#issuecomment-972915101
These errors are shown in tomcat logs:
I found out these fields are not being created when the application creates the database structure on first execution. They are present in migration classes in the sources (src/org/scada_lts/dao/migration/mysql/) but the new ones are somehow not being applied.
For instance, the table "users" is clearly missing the columns "hideMenu" and "theme", which are defined in _V2_7_0_1_UserParameters.java (line 13):
The table "events" is missing column "shortMessage" which is defined in _V2_6_.java (line 43):
jdbcTmp.execute("ALTER TABLE events ADD shortMessage LONGTEXT;");
And so on...
(The latest Docker version creates the database correctly.)
Scada-LTS version: v2.7.8 (Github ref. 6791491) Tomcat version: 9.0.95 Java version: JRE 17.0.12+7-Debian-2deb12u1 (also tried with jdk-11.0.2) Mysql version: 8.4.2 MySQL Community Server OS: Debian 12.7 - Linux kernel 6.1.0-25-amd64