[
https://issues.jboss.org/browse/AS7-1816?page=com.atlassian.jira.plugin.s...
]
Rostislav Svoboda commented on AS7-1816:
----------------------------------------
With latest build (7.1.0.CR1-SNAPSHOT) it connects to remote domain controller in cycle
and ends on FileNotFoundException (Too many open files) when trying to create config
backup.
{code}
[Host Controller] 15:50:34,004 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,109 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,213 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,318 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,421 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,524 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,627 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,733 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,837 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:34,942 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 15:50:35,047 ERROR [org.jboss.as.controller] (Controller Boot Thread)
JBAS014601: Error booting the container: java.lang.RuntimeException:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014673: Failed
to create backup copies of configuration file
/home/rsvoboda/TESTING/CLUSTER/jboss-as7-slave/domain/configuration/host.xml
[Host Controller] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:189)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
[Host Controller] Caused by:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014673: Failed
to create backup copies of configuration file
/home/rsvoboda/TESTING/CLUSTER/jboss-as7-slave/domain/configuration/host.xml
[Host Controller] at
org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:294)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.controller.persistence.BackupXmlConfigurationPersister.successfulBoot(BackupXmlConfigurationPersister.java:65)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.host.controller.HostControllerConfigurationPersister.successfulBoot(HostControllerConfigurationPersister.java:155)
[jboss-as-host-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.controller.AbstractControllerService.finishBoot(AbstractControllerService.java:225)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:327)
[jboss-as-host-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:183)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] ... 1 more
[Host Controller] Caused by: java.io.FileNotFoundException:
/home/rsvoboda/TESTING/CLUSTER/jboss-as7-slave/domain/configuration/host_xml_history/host.last.xml
(Too many open files)
[Host Controller] at java.io.FileOutputStream.open(Native Method) [:1.6.0_22]
[Host Controller] at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
[:1.6.0_22]
[Host Controller] at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
[:1.6.0_22]
[Host Controller] at
org.jboss.as.controller.persistence.ConfigurationFile.copyFile(ConfigurationFile.java:393)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] at
org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:291)
[jboss-as-controller-7.1.0.CR1-SNAPSHOT.jar:]
[Host Controller] ... 6 more
{code}
DC down, domain.sh with --cached-dc option doesn't start on slave
node
----------------------------------------------------------------------
Key: AS7-1816
URL:
https://issues.jboss.org/browse/AS7-1816
Project: Application Server 7
Issue Type: Bug
Components: Scripts
Affects Versions: 7.0.1.Final
Reporter: Rostislav Svoboda
Assignee: Brian Stansberry
Priority: Critical
Fix For: 7.1.0.CR1
I have local copy of the domain configuration (using -backup), file
domain.cached-remote.xml exists.
Can't start domain.sh (with --cached-dc) when DC is down, script ends with could not
connect to remote server error.
*Details:*
(Master instance = MI, slave instance = SI, both on the same machine, EAP6 instances
copied into different directories)
MI> just start bin/domain.sh
SI: remove all domain/configuration/domain* (optional)
SI: change name attribute of host element in domain/configuration/host.xml
SI: change interfaces definition to public IP address in domain/configuration/host.xml
SI: change domain-controller definition to use remote domain controller (127.0.0.1 in my
case) in domain/configuration/host.xml
SI: run bin/domain.sh --backup
MI> shutdown EAP6 instance
SI: shutdown EAP6 instance
SI: make sure file domain/configuration/domain.cached-remote.xml
SI: run bin/domain.sh --cached-dc
SI: there is error, DC couldn't be contacted
log:
{code}
[Host Controller] 09:01:06,861 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO
Implementation Version 3.0.0.Beta3
[Host Controller] 09:01:11,980 WARN [org.jboss.as.domain.controller] (Controller Boot
Thread) Could not connect to remote domain controller 127.0.0.1:9999
[Host Controller] 09:01:12,083 ERROR [stderr] (Controller Boot Thread) Exception in
thread "Controller Boot Thread" java.lang.IllegalStateException:
java.net.ConnectException: Could not connect to remote server at 5000 within 5000ms
[Host Controller] 09:01:12,083 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.host.controller.RemoteDomainConnectionService.connect(RemoteDomainConnectionService.java:238)
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:159)
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:291)
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) at
java.lang.Thread.run(Thread.java:662)
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) Caused by:
java.net.ConnectException: Could not connect to remote server at 5000 within 5000ms
[Host Controller] 09:01:12,084 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.protocol.ProtocolChannelClient.connect(ProtocolChannelClient.java:144)
[Host Controller] 09:01:12,085 ERROR [stderr] (Controller Boot Thread) at
org.jboss.as.host.controller.RemoteDomainConnectionService.connect(RemoteDomainConnectionService.java:221)
[Host Controller] 09:01:12,085 ERROR [stderr] (Controller Boot Thread) ... 4 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira