Problem with the dspace.log file after upgrading to version 7.6.4

129 views
Skip to first unread message

Technologiczny Informator

unread,
Jul 18, 2025, 7:27:51 AM7/18/25
to DSpace Technical Support

Hi everyone,

Has anyone already tried upgrading their DSpace to version 7.6.4?
I did it on my test instance and unfortunately I noticed that there are no entries in the dspace.log file.
However, dspace-cli.log works normally.
Has anyone encountered this issue?

Regards,
Mariusz

Sean Carte

unread,
Jul 18, 2025, 7:34:14 AM7/18/25
to Technologiczny Informator, DSpace Technical Support
Yes, here too.

I just checked and I have loglevel.dspace set to INFO in config/log4j2.xml but it looks like only WARN-level messages are being logged.

Sean

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/eb5d064a-50bc-46b4-90ef-4d10b9d07cd0n%40googlegroups.com.

Technologiczny Informator

unread,
Jul 18, 2025, 7:40:24 AM7/18/25
to DSpace Technical Support

Then I’m not alone with this issue. Thanks for the information.

Regards,
Mariusz

DSpace Technical Support

unread,
Jul 18, 2025, 10:00:23 AM7/18/25
to DSpace Technical Support
Hi Mariusz or Sean,

Could one of you create a bug ticket in https://github.com/DSpace/DSpace/issues and also let us know what version you are upgrading from?  That way I can try and locate a volunteer to investigate what may be going on.  I'm not recalling any logging changes that occurred in 7.6.4 (but maybe something had a side effect).   Obviously, though, in 7.6.3 we did update the log4j configuration to add the new "dspace-cli.log" file. 

If you can provide us with any more details in the bug ticket, that might help someone to track down the issue more quickly.

Tim

Sean Carte

unread,
Jul 18, 2025, 12:17:20 PM7/18/25
to DSpace Technical Support
Hi Tim


Seems strange that it's just the two of us though.

Sean

Brian Keese

unread,
Jul 18, 2025, 1:10:36 PM7/18/25
to DSpace Technical Support
Me too. I am running a fork of the dspace-7_x branch that I made a week ago or so. 

-Brian


Brian Keese

unread,
Jul 18, 2025, 1:29:38 PM7/18/25
to DSpace Technical Support
I just commented on the ticket. There was a version bump of log4j that broke tomcat logging but not CLI logging.

Technologiczny Informator

unread,
Jul 21, 2025, 2:02:30 AM7/21/25
to DSpace Technical Support

So we have a problem with log4j. Just what next since upgrading to 2.25.1 as Sean checked doesn't solve the problem?

Regards,
Mariusz

DSpace Technical Support

unread,
Jul 21, 2025, 12:18:44 PM7/21/25
to DSpace Technical Support
Hi Mariusz,

Since it appears log4j 2.25.x is being problematic, I'd recommend anyone impacted currently *downgrade* to log4j 2.24.3.

It should be possible to do so by just updating your root "pom.xml" to have:
<log4j.version>2.24.3</log4j.version>

After that change, you'd have to rebuild the DSpace backend (mvn -U clean package) and reinstall (ant update).

I'm not yet sure what could have changed in log4j to cause this.  We've never hit this sort of incompatibility in a log4j minor release before.  I'm also hoping we can find a way to detect in automated tests whether logging is working (to avoid this occurring again in the future).

Tim

Technologiczny Informator

unread,
Jul 22, 2025, 2:26:17 AM7/22/25
to DSpace Technical Support
Hi,

This is what I did and it actually works as expected. Thank you all for your help.

Regards,
Mariusz


DSpace Technical Support

unread,
Jul 22, 2025, 11:10:35 AM7/22/25
to DSpace Technical Support
All,

A few updates to this thread.  After some additional testing, we've discovered that upgrading to log4j version 2.25.1 does solve the logging issues.   (The prior mentioned fix of downgrading to version 2.24.3 also works -- either is perfectly OK to patch the issue)

If you want to upgrade to log4j 2.25.1, the fix is the small one-line change in this PR: https://github.com/DSpace/DSpace/pull/11028   

Simply update your root "pom.xml" to have:
<log4j.version>2.25.1</log4j.version>

After that change, you'd have to rebuild the DSpace backend (mvn -U clean package) and reinstall (ant update).

I've also updated the 7.6.4 Release Notes to include a warning about this log4j issue: https://wiki.lyrasis.org/display/DSDOC7x/Release+Notes#ReleaseNotes-7.6.4ReleaseNotes

We are also working on a very quick DSpace 7.6.5 release to fix this issue.  I think this should be out either today or tomorrow. 7.6.5 will be a very small release which only includes a few dependency updates (including this very important log4j one). So it will be a simple upgrade for anyone running 7.6.4.

Tim
Reply all
Reply to author
Forward
0 new messages