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

    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

        1. log4j2-files.png
          81 kB
          Tapani Rundgren

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: