Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048464
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 01. General setupmajoralways2022-01-21 22:032022-01-27 11:46
ReporterdromeroView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionPR21Q4.3SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048464: OBRebuildAppender: fails to compile after updating OB version

DescriptionError message when compiling after upgrading version (see attached image: error_message.png inside images.zip)

We noticed in the Wiki that the class 'OBRebuildAppender' was removed in version 21Q1.2 (see attached image: removed_obrebuildappender.png inside images.zip).
Steps To ReproduceFrom version 19Q2 I went to 'Module Management' --> 'Check for updates'. I successfully upgraded to version 21Q4.3, and then when I wanted to compile I got the error message shown in the attached image (error_message.png).
TagsNo tags attached.
Attached Fileszip file icon images.zip [^] (72,685 bytes) 2022-01-21 22:03
txt file icon stacktrace_error.txt [^] (9,415 bytes) 2022-01-24 19:05 [Show Content]
txt file icon updateDatabase_successful.txt [^] (14,361 bytes) 2022-01-25 17:15 [Show Content]
txt file icon smartbuild_successful.txt [^] (74,107 bytes) 2022-01-25 17:15 [Show Content]
txt file icon stacktrace_error_gdc.txt [^] (13,351 bytes) 2022-01-25 17:56 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0048488 closedAugustoMauch Execution limit of RemoveRebuildAppender is not proper 

-  Notes
(0134500)
shuehner (administrator)
2022-01-22 14:10

a.) Please to not hide the main error message or images in a zip file

b.) The Subject claims compile fails
c.) The description says an error message is shown (that is not compile fails)

b+c are very different things => Please clarify

d.) Please provide the full build output with context and not just 2 lines error message without knowing where they happen
That should include output of the buildvaliation step used in the update (which should have removed the OBRebuildAppender from the active config (see buildvalidation RemoveRebuildAppender)
(0134501)
Practics (reporter)
2022-01-22 14:16

I attach a full log from our instance. It's an instance on Opb cloud.
(0134535)
dromero (reporter)
2022-01-24 19:06

I added the stacktrace error that the compilation yields (stacktrace_error.txt)
(0134549)
cberner (developer)
2022-01-25 11:06

I'm not very sure, but the error "ERROR: column column0_.is_child_property_in_parent does not exist" suggests an ant update.database is missing and should be done after the update.
(0134559)
dromero (reporter)
2022-01-25 17:17

Following cberner's suggestion I ran an ant update.database, it was successful (see attached file: updateDatabase_successful.txt). Next step, I ran an ant smartbuild and it was also successful (see attached file: smartbuild_successful.txt).

I am going to report this to Practics and if this solves their problem we can proceed to close this issue.
(0134560)
dromero (reporter)
2022-01-25 17:57

The problem still persists, unrelated to the above.

Now, to be more precise with what is happening I attach the stacktrace thrown from the client environment after executing the smartbuild (see attached file: stacktrace_error_gdc.txt). The compilation is successful but it still shows those two errors.
(0134565)
shuehner (administrator)
2022-01-26 11:00

Hello again => That could not have helped as it would maybe have fixed wrong commands run but is not related to the initial problem.

The initial problem we are trying to reproduce on our own as not having the required information here.

Below you can find steps to fix any affected instance and checking if an error exists in code exists or not we will continue in parallel.

What would have needed is:
- Output of very first update.database in version 19Q2 in the instance where the problem happened. Not some 2nd or later run the very first update.database.
Note: Most files above are from some developer system not the cloud instance in which the problem happened (probably gdc-u18-test)
Goal verify automated code works fine.
Working example is above in "updateDatabase_successful.txt"
- Once those 2 ERROR lines (to be ignored)
- Then " [java] Removed OBRebuildAppender from log4j2.xml"
- After that everything fine

To just fix the instance you can
- Edit the config/log4j2.xml
- Remove all 3 lines containing OBRebuildAppender (1 comment, 2 active lines)
- After

That buildvalidation RemoveRebuildAppender running on that 'very first update.database' will do that automatically which worked locally (updateDatabase_successful.txt). But for some reason did not work apparently in your cloud instance initially.

Important reminder:
- smartbuild cannot be used for release upgrade
- It cannot work in all cases (i.e. when files are deleted)
- A full recompile is required for any release upgrade
  - For example: ant update.database compile.complete.deploy
(0134596)
AugustoMauch (manager)
2022-01-27 11:46

The issue can be closed because the underlying problem was solved here [1] and the environment where it was reproduced was fixed by updating the log configuration to remove the mention to OBRebuildAppender

[1] https://issues.openbravo.com/view.php?id=48488 [^]

- Issue History
Date Modified Username Field Change
2022-01-21 22:03 dromero New Issue
2022-01-21 22:03 dromero Assigned To => Triage Finance
2022-01-21 22:03 dromero File Added: images.zip
2022-01-21 22:03 dromero Modules => Core
2022-01-21 22:03 dromero Triggers an Emergency Pack => No
2022-01-21 22:30 Practics Issue Monitored: Practics
2022-01-22 14:00 shuehner Assigned To Triage Finance => Triage Platform Base
2022-01-22 14:10 shuehner Note Added: 0134500
2022-01-22 14:10 shuehner Status new => feedback
2022-01-22 14:11 shuehner Issue Monitored: shuehner
2022-01-22 14:16 Practics Note Added: 0134501
2022-01-24 19:05 dromero File Added: stacktrace_error.txt
2022-01-24 19:06 dromero Note Added: 0134535
2022-01-25 11:06 cberner Note Added: 0134549
2022-01-25 17:15 dromero File Added: updateDatabase_successful.txt
2022-01-25 17:15 dromero File Added: smartbuild_successful.txt
2022-01-25 17:17 dromero Note Added: 0134559
2022-01-25 17:56 dromero File Added: stacktrace_error_gdc.txt
2022-01-25 17:57 dromero Note Added: 0134560
2022-01-26 11:00 shuehner Note Added: 0134565
2022-01-26 11:03 shuehner Issue End Monitor: shuehner
2022-01-27 11:45 AugustoMauch Relationship added related to 0048488
2022-01-27 11:46 AugustoMauch Note Added: 0134596
2022-01-27 11:46 AugustoMauch Status feedback => closed
2022-01-27 11:46 AugustoMauch Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker