JBAS010153: Node identifier property is set to the default value. Please make sure it is unique

╄→гoц情女王★ 提交于 2020-12-30 17:20:35

问题


I am getting following WARN message while I start my host which is one of the Host Controller (HC) that is attached to the Domain Controller(DC)....

[Server:server-two] 14:06:13,822 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 33) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.

And my host-slave.xml has the follwing config...

        <server-identities>
             <!-- Replace this with either a base64 password of your own, or use a vault with a vault expression -->
             <secret value="c2xhdmVfdXNlcl9wYXNzd29yZA=="/>
        </server-identities>

I hope this config is the reason...... maybe I didn't understand..... but I couldn't find node identifier property rather this is default secret value which I hope could be the cause of this WARN message....

However I didn't mention HC to lookup host-slave.xml..... the command which I ran to start my HC is.....

[host-~-\-\-\bin]$./domain.sh -Djboss.domain.master.address=nnn.nn.nn.88 -b nnn.nn.nn.89 -bmanagement nnn.nn.nn.89 &

nnn.nn.nn.88 is my DC

Else please advise what's cause of the WARN message........

And please let me know the implication of this WARN message and advise us on the required config to overcome and sort out any consecutive consequences that would've been bound for this WARN....


回答1:


I'm new to wildfly, and noticed this warning when I started it standalone from eclipse (I'm doing the following tutorial: https://wwu-pi.github.io/tutorials/lectures/eai/020_tutorial_jboss_project.html)

The fix was to add a node-identifier to the core-environment in the subsystem:

<subsystem xmlns="urn:jboss:domain:transactions:2.0">
        <core-environment node-identifier="meindertwillemhoving">
            <process-id>
                <uuid/>
            </process-id>
        </core-environment>
        <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
</subsystem>

This is in file [wildfly]\standalone\configuration\standalone.xml. This is the same answer as https://developer.jboss.org/message/880136#880136




回答2:


According to WFLY-10541 if you are using WildFly v14.0.0 or newer you can pass the following to the startup script to set the transaction node identifier:

-Djboss.tx.node.id=<some-unique-id>



回答3:


For this <server-identities> is not the issue.... In fact it shouldn't be touched at all....

When JBoss is started in domain mode by domain.sh, by default there will be three servers server-one server-two server-three.... When you are running one more HC attached to the DC.... the defaulted server which is in auto-start mode will get clash when we start HC attaching to DC,- by the following command....

[host-~-\-\-\bin]$./domain.sh -Djboss.domain.master.address=nnn.nn.nn.88 -b nnn.nn.nn.89 -bmanagement nnn.nn.nn.89 &

Or by having the host configuration at HC (default host.xml... until unless we choose different one....)....

<domain-controller>
      <remote host="${jboss.domain.master.address:nnn.nn.nn.88}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm"/>
<domain-controller>

In order to solve this we need to turn auto-start to false..... And we need to create new server-group...... To that group we need to add dc-created-server and hc-created-server..... we can choose appropriate same profile either full-ha or full for both created server across DC and HC....

SO when we start the group by configuring required HEAP size including permgen space... You could start both DC and HC.... and in DC you could see both of your-created-servers are started in the created server-group....

DC- Domain Controller
HC- Host Controller

To deploy you need to upload .ear or web-archive in the Application Console.... You cannot place it in deployments folder as how you do in standalone mode with .dodeploy file.

If you upload same .ear next version do Replace option instead of Remove & Add option in the upload process.....



来源:https://stackoverflow.com/questions/33145959/jbas010153-node-identifier-property-is-set-to-the-default-value-please-make-su

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!