-
1. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
pjhavariotis Apr 22, 2016 1:23 AM (in response to ashis12ka4)Have you followed the steps as described in the documentation?
-
2. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ashis12ka4 Apr 22, 2016 3:36 AM (in response to pjhavariotis)Hi,
I didn't move
jboss-as.conf to /etc/jboss-as/ but it is present under bin/init.d .
Also
JBOSS_HOME
is defined inside my startup script, so didn't define injboss-as.conf.
I think this shouldn't be the issue.
Apart from this all seems to be fine.
-
3. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
pjhavariotis Apr 22, 2016 4:18 AM (in response to ashis12ka4)In the "jboss-as.conf" file there must be a "STARTUP_WAIT" line.
If it is commented, uncomment it and increase the value (120 should be fine)
Furthermore, did you check the /var/log/messages for errors? There must be something relevant there (search for jboss).
-
4. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ashis12ka4 Apr 22, 2016 6:00 AM (in response to pjhavariotis)I configured with the STARTUP_WAIT time but no luck.
Below are the traces from /var/log/messages
Apr 22 11:34:34 serverxxx puppet-agent[27009]: Found multiple default providers for host: safe_parsed, parsed; using safe_parsed
Apr 22 11:34:56 serverxxx puppet-agent[27009]: Finished catalog run in 21.54 seconds
Apr 22 11:52:48 serverxxx snmpd[1770]: Connection from UDP: [1.2.3.4]:55661->[5.6.7.8]
The standalone.sh inside bin folder runs fine and starts jboss as usual. Issue is with startup file.
-
5. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ashis12ka4 Apr 25, 2016 7:36 AM (in response to ashis12ka4)I have puppet running on the server and JAVA_HOME and java path is added to PATH variable locally which is overwritten by puppet.
But I assign these variables and then try to start jboss but still get the same old error.
Is the error because of puppet where the variables are not exported ?
I am clueless regarding the error.
./jboss-as-standalone.sh start
jboss-as failed to startup in the time allotted
[FAILED]
Has anyone got this error before? Can someone help and guide me if they know where to look for the error and how to fix. -
6. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ctomc Apr 25, 2016 9:30 AM (in response to ashis12ka4)Oh c'mmon stop whining and look up on the internet about this problem.
when any service fails to start what is first thing you should do? look at its logs.
for EAP / WildFly that would be your $JBOSS_HOME/standalone/log/*.log
and see what is the real problem.
-
7. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
rajs123 Apr 27, 2016 5:08 AM (in response to ashis12ka4)Try below steps
cd $JBOSS_HOME/bin/init.dcp jboss-as-standalone.sh /etc/init.d/jboss-as-standalone.sh
mkdir /etc/jboss-as
cd $JBOSS_HOME/bin/init.d
cp jboss-as.conf /etc/jboss-as/jboss-as.conf
vi /etc/jboss-as/jboss-as.conf
Change the name of jboss owner (that is. user who actually has privileges to start jboss)
:wq (that is, save)
/etc/init.d/jboss start
You should see it working! Restart your server once and check if it boots at start up!
Give appropriate permissions to file, ex: chmod 755 jboss-as.conf
If you do not wish to do any of them above again, then try crontab
crontab -e
@reboot <jboss startup script>
Otherwise, you can do the below method but it is worst method:
Open Terminal
vi /etc/init.d/start_jboss.sh (create new script)<contents of start_jboss.sh>
#!/bin/sh
<full path of jboss startup script> ex: /opt/EAP-6.0.3/standalone/jboss-as-standalone.sh
<save and close the file>
chmod guo+x start_jboss.sh (make this script executable)
update-rc.d start_jboss.sh defaults
Restart the server! You should see management console opening now!
-
8. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ashis12ka4 Apr 27, 2016 11:24 AM (in response to ctomc)@Tomaz Cerar, I am new to jboss and I tried everywhere looking in logs but couldn't find anything. That's why kept on asking. Even I know where are the logs and what the log contains. Thanks for helping !!
-
9. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
ashis12ka4 Apr 28, 2016 7:38 AM (in response to rajs123)@Rajkumar S, that really worked.
copying the jboss-as.conf to /etc/jboss-as/jboss-as.conf . Thank you !!
I am trying to understand why I need to have jboss-as.conf inside /etc/jboss-as. Even though my script has location of the conf file it was not working earlier.
-
10. Re: Can't start jboss EAP 6.3 as a service, failed to startup in the time allotted error
rajs123 Apr 29, 2016 7:04 AM (in response to ashis12ka4)Cool...I could not guess the reason now without seeing logs or reading that script you have written.
But in general, I think reason could be (1)'jboss-as-standalone.sh' might not have permissions to execute script (2) You might have not added 'jboss-as-standalone.sh' into defaultscan you do ls -lrt j* in /etc/init folder and give result? Similarly, do ls -lrt *.sh in the bin folder of $EAP_HOME where the standalone.sh script resides.We can see the permission levels of both these files.
To solve 1st problem, you can try chmod ugo+x jboss-as-standalone.sh
To solve 2nd problem, you can try "update-rc.d jboss-as-standalone.sh defaults"