P
P
P_Alexander2019-09-22 17:59:50
Java
P_Alexander, 2019-09-22 17:59:50

How to fix org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0081: Failed to back up error when running wildfly 17?

Good evening, when I start the server, I get such an error, I can’t find anything at all on Google, who knows, help me!
I'm in the system under lightbringer:lightbringer Wildfly:wildfly
server
One interesting thing, in the log, a little lower it says that access to the standalone.xml file is closed, I go to look at the file's permissions and see that this file has the rights of my user (lightbringer:lightbringer) under which I'm in the system, and the server itself is under another one (wildfly:wildfly), well, that is, all its files, which is wildly not clear why. If I change the rights and the owner and group for the file to (wildfly: wildfly) then after the launch it became again (lightbringer: lightbringer)!!
WHY?!?!?
If you need logs, I can provide everything!

17:44:33,899 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0081: Failed to back up /opt/wildfly-17.0.0.Final/standalone/configuration/standalone.xml: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0081: Failed to back up /opt/wildfly-17.0.0.Final/standalone/configuration/standalone.xml
  at org.jboss.as.controller.persistence.ConfigurationFile.backup(ConfigurationFile.java:562)
  at org.jboss.as.controller.persistence.ConfigurationFilePersistenceResource.doCommit(ConfigurationFilePersistenceResource.java:69)
  at org.jboss.as.controller.persistence.AbstractFilePersistenceResource.commit(AbstractFilePersistenceResource.java:63)
  at org.jboss.as.controller.ModelControllerImpl$3.commit(ModelControllerImpl.java:729)
  at org.jboss.as.controller.AbstractOperationContext.executeDoneStage(AbstractOperationContext.java:855)
  at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:769)
  at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
  at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1412)
  at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
  at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
  at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:289)
  at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:255)
  at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
  at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:240)
  at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:138)
  at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:162)
  at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:158)
  at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:313)
  at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270)
  at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
  at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
  at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:158)
  at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
  at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
  at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
  at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
  at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
  at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
  at java.lang.Thread.run(Thread.java:748)
  at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: java.nio.file.AccessDeniedException: /opt/wildfly-17.0.0.Final/standalone/configuration/standalone.xml -> /opt/wildfly/standalone/configuration/standalone_xml_history/current/standalone.v1.xml
  at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
  at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
  at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:457)
  at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262)
  at java.nio.file.Files.move(Files.java:1395)
  at org.jboss.as.controller.persistence.ConfigurationFile.moveFile(ConfigurationFile.java:597)
  at org.jboss.as.controller.persistence.ConfigurationFile.backup(ConfigurationFile.java:544)
  ... 29 more

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
P_Alexander, 2019-09-22
@P_Alexander

Removed the server from autoload, and gave the rights to all files from the standalone/ folder
And everything started up!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question