Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7102

AccessDeniedException on Windows when using a read-only configuration dir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 28.0.0.Beta2
    • None
    • None
    • None

      When using a read-only configuration dire the server should be able to start using --read-only-server-config flag, however, the following exception is thrown and the server does not start:

      2024-12-06 14:53:37,859 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0082: Failed to create backup copies of configuration file C:\jboss-eap-8.0\standalone\configuration\standalone.xml
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:570)
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.persistence.BackupXmlConfigurationPersister.successfulBoot(BackupXmlConfigurationPersister.java:96)
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.AbstractControllerService.finishBoot(AbstractControllerService.java:495)
              at org.jboss.as.server@21.0.11.Final-redhat-00001//org.jboss.as.server.ServerService.finishBoot(ServerService.java:450)
              at org.jboss.as.server@21.0.11.Final-redhat-00001//org.jboss.as.server.ServerService.boot(ServerService.java:410)
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:370)
              at java.base/java.lang.Thread.run(Thread.java:840)
      Caused by: java.nio.file.AccessDeniedException: C:\jboss-eap-8.0\standalone\configuration\standalone.xml -> C:\jboss-eap-8.0\standalone\configuration\standalone.xml.boot
              at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
              at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
              at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:209)
              at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:284)
              at java.base/java.nio.file.Files.copy(Files.java:1305)
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.persistence.FilePersistenceUtils.copyFile(FilePersistenceUtils.java:104)
              at org.jboss.as.controller@21.0.11.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:553)
              ... 6 more
      

      The same configuration works fine in Linux

              ehugonne1@redhat.com Emmanuel Hugonnet
              ehugonne1@redhat.com Emmanuel Hugonnet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: