Crowd wont autostart

Hello, i hope someone could help me. I was installing Atlassian Jira, confluence, and crowd as non root user to an Ubuntu 18.04 Laptop. When i do a cronjob @reboot jira and confluence starts fine. But crowd would not start with the cronjob. When the system is up and running, i can start crowd in terminal with  ./start_crowd.sh without any problems. The "HowTo" at Confluence Dokumentation did not work for me. When i start the script in Konsole i get the following:

 

wtobais@wtobais-LIFEBOOK-E458:~/atlassian/application-data/atlassian-crowd-3.3.3$ ./start_crowd.sh
To run Crowd in the foreground, start the server with ./start_crowd.sh -fg
Using CATALINA_BASE: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_HOME: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_TMPDIR: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/temp
Using JRE_HOME: /home/wtobais/jdk1.8.0_191
Using CLASSPATH: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/bootstrap.jar:/home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.

 

I am not sure whats wrong and i dont have any ideas....

Please help :)

2 answers

0 votes

The message you have pasted here tells us that Crowd is starting up fine, after cleaning up after a Crowd session that was killed rather than shut down correctly.

If it's not starting on a command that is being run, could you show us the errors that you get from that command, rather than a successful start?

You should not really be running crowd with cron, it should be using systemd or init.d scripts (depending on which your prefer)

with the init.d script i get an unavailable message in WebBrowser, and when i try to start manualy the following in Terminal:

Tomcat appears to still be running with PID 3087. Start aborted.
If the following process is not a Tomcat process, remove the PID file and try again:
UID        PID  PPID  C STIME TTY          TIME CMD
wtobais   3087  2836  0 13:28 ?        00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor

 

is there maybe a problem with more instances with tomcat ?

What does the log file say the error is?

which logfile did you mean?? sry for the stupid question :D

Sorry, I should have said.  On my crowd machine, I have this:

/opt/crowd-data-3.1.1/logs# ls -l
total 688
-rw-r----- 1 charlie charlie 699183 Jan 20 15:00 atlassian-crowd.log

I am not sure you can take a look on the logfile:   https://cloudpaulokat.ddnss.de/nextcloud/s/xQdFPdyM2rSiaxe

That looks like it is running fine.  We need to see where it is failing to start.  Could you stop it, remove the log file (so we have a clean short one), and the pid file if that has stayed, and then use whatever startup script that is failing to see what it does

when i use init.d script for starting crowd, there are no log entrys at all.  Another Problem in this case is that confluence will not start too. when i dont use init.d for crowd confluence is starting up most of the time......

Can you log in as root, and run "/etc/init.d/crowd.sh start" (or whatever the script is called) - that should give you an error if Crowd is not starting.

when i start /etc/init.d/crowd.init.d as non root user the server came up. without any Problem.  And the same as root. but it will not autostart... im gonna cry

 

root@wtobais-LIFEBOOK-E458:/etc/init.d# ./crowd.init.d start
Starting Crowd:
Using CATALINA_BASE: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_HOME: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_TMPDIR: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/temp
Using JRE_HOME: /home/wtobais/jdk1.8.0_191
Using CLASSPATH: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/bootstrap.jar:/home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/work/catalina.pid
Tomcat started.
done.
wtobais@wtobais-LIFEBOOK-E458:/etc/init.d$ ./crowd.init.d start
Starting Crowd:
Using CATALINA_BASE: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_HOME: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat
Using CATALINA_TMPDIR: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/temp
Using JRE_HOME: /home/wtobais/jdk1.8.0_191
Using CLASSPATH: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/bootstrap.jar:/home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /home/wtobais/atlassian/application-data/atlassian-crowd-3.3.3/apache-tomcat/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
done

are there any limitations about the evaluation license on jira, confluence or crowd ??

is there a possability that this Problem came from using the same container like described here :

Unable to Start JIRA when Running with Confluence or Crowd in the Same Application Server Container

 i think im gonna give it a try....

Ok, great.  There's no limitations with the licence, the problem you have is something to do with the way your "auto start" is configured.

i was trying to autostart crowd with the provided init.d Script. and a symlink in /etc/init.d.

when i restart the notebook jira and confluence is starting fine. I have no error message  from crowd but when i try to open http://localhost:8095/crowd/console/secure/console.action  i get an side unavailable message in Web Browser. so i have to start crowd manually.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

91 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you