]
Brian Stansberry updated WFCORE-1307:
-------------------------------------
Fix Version/s: 4.0.0.Alpha5
(was: 4.0.0.Alpha4)
jboss-cli returns success when WFLYCTL0009: Failed to store
configuration occurred
----------------------------------------------------------------------------------
Key: WFCORE-1307
URL:
https://issues.jboss.org/browse/WFCORE-1307
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 2.0.7.Final
Reporter: Brad Maxwell
Assignee: Ken Wills
Fix For: 4.0.0.Alpha5
If the server is started, and a cli call is made that fails to persist to the
standalone.xml returns success even though it failed.
Start the server.
Simple way to reproduce is to change the permissions on the configuration directory then
run some cli commands such as shown below:
{code}
$ ./bin/jboss-cli.sh -c
[standalone@localhost:9990 /] /system-property=foo1:add(value=bar1)
{"outcome" => "success"}
[standalone@localhost:9999 /]
/subsystem=ejb3:write-attribute(name=enable-statistics,value=true)
{"outcome" => "success"}
{code}
{code}
19:53:17,823 ERROR [stderr] (management-handler-thread - 1)
java.nio.file.AccessDeniedException:
/tmp/wildfly-10.0.0.CR5/standalone/configuration/standalone.xml.tmp
19:53:17,824 ERROR [stderr] (management-handler-thread - 1) at
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
19:53:17,824 ERROR [stderr] (management-handler-thread - 1) at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
19:53:17,824 ERROR [stderr] (management-handler-thread - 1) at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
19:53:17,824 ERROR [stderr] (management-handler-thread - 1) at
sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
19:53:17,825 ERROR [stderr] (management-handler-thread - 1) at
java.nio.file.Files.newByteChannel(Files.java:361)
19:53:17,825 ERROR [stderr] (management-handler-thread - 1) at
java.nio.file.Files.createFile(Files.java:632)
19:53:17,825 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.persistence.FilePersistenceUtils.createTempFileWithAttributes(FilePersistenceUtils.java:125)
19:53:17,825 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.persistence.FilePersistenceUtils.writeToTempFile(FilePersistenceUtils.java:104)
19:53:17,826 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.persistence.ConfigurationFilePersistenceResource.doCommit(ConfigurationFilePersistenceResource.java:55)
19:53:17,826 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.persistence.AbstractFilePersistenceResource.commit(AbstractFilePersistenceResource.java:58)
19:53:17,826 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.ModelControllerImpl$4.commit(ModelControllerImpl.java:781)
19:53:17,826 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.AbstractOperationContext.executeDoneStage(AbstractOperationContext.java:743)
19:53:17,827 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:680)
19:53:17,827 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
19:53:17,827 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)
19:53:17,827 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:392)
19:53:17,827 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:217)
19:53:17,828 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:208)
19:53:17,828 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$300(ModelControllerClientOperationHandler.java:130)
19:53:17,828 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:152)
19:53:17,828 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:148)
19:53:17,829 ERROR [stderr] (management-handler-thread - 1) at
java.security.AccessController.doPrivileged(Native Method)
19:53:17,829 ERROR [stderr] (management-handler-thread - 1) at
javax.security.auth.Subject.doAs(Subject.java:422)
19:53:17,829 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)
19:53:17,829 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:148)
19:53:17,830 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)
19:53:17,830 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)
19:53:17,830 ERROR [stderr] (management-handler-thread - 1) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
19:53:17,830 ERROR [stderr] (management-handler-thread - 1) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
19:53:17,831 ERROR [stderr] (management-handler-thread - 1) at
java.lang.Thread.run(Thread.java:745)
19:53:17,831 ERROR [stderr] (management-handler-thread - 1) at
org.jboss.threads.JBossThread.run(JBossThread.java:320)
19:53:17,831 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0009: Failed to store configuration to
standalone.xml: java.nio.file.AccessDeniedException:
/tmp/wildfly-10.0.0.CR5/standalone/configuration/standalone.xml.tmp
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at java.nio.file.Files.copy(Files.java:3004)
at
org.jboss.as.controller.persistence.FilePersistenceUtils.writeToTempFile(FilePersistenceUtils.java:109)
at
org.jboss.as.controller.persistence.ConfigurationFilePersistenceResource.doCommit(ConfigurationFilePersistenceResource.java:55)
at
org.jboss.as.controller.persistence.AbstractFilePersistenceResource.commit(AbstractFilePersistenceResource.java:58)
at org.jboss.as.controller.ModelControllerImpl$4.commit(ModelControllerImpl.java:781)
at
org.jboss.as.controller.AbstractOperationContext.executeDoneStage(AbstractOperationContext.java:743)
at
org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:680)
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)
at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:392)
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:217)
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:208)
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$300(ModelControllerClientOperationHandler.java:130)
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:152)
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:148)
at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)
at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
{code}