HOWTO detect when JBOSS is fully up and running and ready to accept deployments?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have a simple "sanity-check" webapp that I wish to deploy on a JBoss EAP server as soon as it is started. But what does "started" mean? If my script that calls the jboss cli is launched too soon after JBoss reports it's done, I get a message saying
"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => "server-group" => "main-server-group" => "host" => "master" => "master-1-server-1" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
How can I detect that JBoss is really ready to handle deployments?
Alternatively, is there a mechanism by which I can autodeploy something on startup?
jboss
add a comment |Â
up vote
2
down vote
favorite
I have a simple "sanity-check" webapp that I wish to deploy on a JBoss EAP server as soon as it is started. But what does "started" mean? If my script that calls the jboss cli is launched too soon after JBoss reports it's done, I get a message saying
"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => "server-group" => "main-server-group" => "host" => "master" => "master-1-server-1" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
How can I detect that JBoss is really ready to handle deployments?
Alternatively, is there a mechanism by which I can autodeploy something on startup?
jboss
1
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have a simple "sanity-check" webapp that I wish to deploy on a JBoss EAP server as soon as it is started. But what does "started" mean? If my script that calls the jboss cli is launched too soon after JBoss reports it's done, I get a message saying
"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => "server-group" => "main-server-group" => "host" => "master" => "master-1-server-1" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
How can I detect that JBoss is really ready to handle deployments?
Alternatively, is there a mechanism by which I can autodeploy something on startup?
jboss
I have a simple "sanity-check" webapp that I wish to deploy on a JBoss EAP server as soon as it is started. But what does "started" mean? If my script that calls the jboss cli is launched too soon after JBoss reports it's done, I get a message saying
"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => "server-group" => "main-server-group" => "host" => "master" => "master-1-server-1" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
How can I detect that JBoss is really ready to handle deployments?
Alternatively, is there a mechanism by which I can autodeploy something on startup?
jboss
jboss
asked Mar 22 '17 at 14:46
Steve Cohen
18617
18617
1
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago
add a comment |Â
1
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago
1
1
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
#!/bin/bash
while true
do
wildflyStarted=$(grep -ic "Wildfly.*started in.*ms.*Started.*of.*services" /opt/wildfly/standalone/log/server.log)
if [[ "$wildflyStarted" -eq "1" ]]; then
break;
else
sleep 1;
fi
done
while true
do
ejbcaStatus=$(/opt/wildfly/bin/jboss-cli.sh -c --commands="cd deployment,cd ejbca.ear,read-attribute status")
if [[ "$ejbcaStatus" -eq "OK" ]]; then
break;
else
sleep 5;
fi
done
This script worked for me.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
#!/bin/bash
while true
do
wildflyStarted=$(grep -ic "Wildfly.*started in.*ms.*Started.*of.*services" /opt/wildfly/standalone/log/server.log)
if [[ "$wildflyStarted" -eq "1" ]]; then
break;
else
sleep 1;
fi
done
while true
do
ejbcaStatus=$(/opt/wildfly/bin/jboss-cli.sh -c --commands="cd deployment,cd ejbca.ear,read-attribute status")
if [[ "$ejbcaStatus" -eq "OK" ]]; then
break;
else
sleep 5;
fi
done
This script worked for me.
add a comment |Â
up vote
0
down vote
#!/bin/bash
while true
do
wildflyStarted=$(grep -ic "Wildfly.*started in.*ms.*Started.*of.*services" /opt/wildfly/standalone/log/server.log)
if [[ "$wildflyStarted" -eq "1" ]]; then
break;
else
sleep 1;
fi
done
while true
do
ejbcaStatus=$(/opt/wildfly/bin/jboss-cli.sh -c --commands="cd deployment,cd ejbca.ear,read-attribute status")
if [[ "$ejbcaStatus" -eq "OK" ]]; then
break;
else
sleep 5;
fi
done
This script worked for me.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
#!/bin/bash
while true
do
wildflyStarted=$(grep -ic "Wildfly.*started in.*ms.*Started.*of.*services" /opt/wildfly/standalone/log/server.log)
if [[ "$wildflyStarted" -eq "1" ]]; then
break;
else
sleep 1;
fi
done
while true
do
ejbcaStatus=$(/opt/wildfly/bin/jboss-cli.sh -c --commands="cd deployment,cd ejbca.ear,read-attribute status")
if [[ "$ejbcaStatus" -eq "OK" ]]; then
break;
else
sleep 5;
fi
done
This script worked for me.
#!/bin/bash
while true
do
wildflyStarted=$(grep -ic "Wildfly.*started in.*ms.*Started.*of.*services" /opt/wildfly/standalone/log/server.log)
if [[ "$wildflyStarted" -eq "1" ]]; then
break;
else
sleep 1;
fi
done
while true
do
ejbcaStatus=$(/opt/wildfly/bin/jboss-cli.sh -c --commands="cd deployment,cd ejbca.ear,read-attribute status")
if [[ "$ejbcaStatus" -eq "OK" ]]; then
break;
else
sleep 5;
fi
done
This script worked for me.
answered 12 mins ago
user674669
1011
1011
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f353095%2fhowto-detect-when-jboss-is-fully-up-and-running-and-ready-to-accept-deployments%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Tail the log file, there will be an entry along the line of "startup completed in n seconds".
â DopeGhoti
Mar 22 '17 at 15:30
@Steve Cohen, did you figure out a better way to know when Jboss is really ready? I have the exact issue. Thank you.
â user674669
1 hour ago