payara / Payara

Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
http://www.payara.fish
Other
873 stars 300 forks source link

Bug Report: Payara Micro v6.2024.6 Reporting as v6.2024.5 #6766

Closed mzaum closed 1 week ago

mzaum commented 3 weeks ago

Brief Summary

When launching Payara Micro v6.2024.6, it is logging that it is version v6.2024.5.

[2024-06-19T10:56:23.839-0400] [] [INFO] [] [PayaraMicro] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1718808983839] [levelValue: 800] Payara Micro 6.2024.5 #badassmicrofish (build 18) ready in 13,817 (ms)

Expected Outcome

Logs should show v6.024.6.

Current Outcome

Logs show v6.2024.5.

Reproducer

Simply launch Payara Micro.

Operating System

Ubuntu 22.04

JDK Version

OpenJDK Runtime Environment (build 11.0.23+9-post-Ubuntu-1ubuntu122.04.1)

Payara Distribution

Payara Micro

kalinchan commented 3 weeks ago

Works on my machine.

[2024-06-19T16:48:16.797+0100] [] [INFO] [NCLS-CORE-00017] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1718812096797] [levelValue: 800] Payara Micro 6.2024.6 #badassmicrofish (19) startup time : Embedded (921ms), startup services(4,725ms), total(5,646ms)

mzaum commented 3 weeks ago

So it turns out I was pointing it at an existing --rootdir. Deleting that root dir and creating a new one fixed it. Is that expected behavior?

felixif commented 2 weeks ago

Hello @mzaum,

I tried your case just now. I first started a Payara Micro 6.2024.5 with a rootdir created under {path_to_jar}\tmp\pm-domain. This created the domain folder, that has under \config\branding a glassfish-version.properties file. This file is the one responsible for reporting the number. I then ran Payara Micro 6.2024.6 pointing at the same pm-domain folder, and I noticed that the glassfish-version.properties does not change.

I assumed that this is because the file is present and Payara assumes it is ok, so I decided to simply delete it and re-run Payara Micro 6.2024.6 to see what happens. The file gets re-created, so I believe this is intended. Simply delete the file when you switch the versions and it should be fine. But it might be a good idea to also document this behaviour.

Best regards, Felix

github-actions[bot] commented 2 weeks ago

Greetings, It's been more than 5 days since we requested more information or an update from you on the details of this issue. Could you provide an update soon, please? We're afraid that if we do not receive an update, we'll have to close this issue due to inactivity.

github-actions[bot] commented 1 week ago

Greetings, It's been more than 5 days since this issue was identified as abandoned. We have closed this issue due to inactivity, please feel free to re-open it if you have more information to share.