Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1173

ERROR Unable to rename file in version 2.4 and 2.4.1

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4, 2.4.1
    • 2.5
    • Appenders
    • None
    • Linux

    Description

      When using RollingAppender with version 2.4 and 2.4.1 with the archiving directory mapped to a remote Linux host. We get the following error:

      2015-10-22 18:33:33,082 Thread-1 ERROR Unable to rename file /opt/local/log/servicedeamon_124.log to /home/remote/Logs/20151022/servicedeamon-20151022-13.log - /home/remote/Logs/20151022/servicedeamon-20151022-13.log

      This used to work in version 2.3. Looking at FileRenameAction.java, I see that the method copyFile(final File source, final File destination) has been modified extensively. Issue started happening when java.nio.file.Files were used.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rpopma Remko Popma
            hdpham Hai-Dang Pham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment