crowd version 3.2 not starting
Asked by Naveed Ashraf:

Description .... Crowd has encountered errors while upgrading. Please resolve these errors and restart Crowd.

Exception ..... Could not find application to update: crowd

terraform provisions and configs crowd install but throws the above exception. Not sure why it says upgrading when it is a straight install.

Also this from the catalina.out

2018-05-03 13:30:32,230 localhost-startStop-1 INFO \[atlassian.crowd.config.CrowdApplicationConfig\] Using config directory : /var/atlassian/application-data/crowd/shared  
2018-05-03 13:30:32,231 localhost-startStop-1 INFO \[crowd.manager.upgrade.UpgradeManagerImpl\] Clearing caches after upgrade  
2018-05-03 13:30:32,233 localhost-startStop-1 ERROR \[crowd.console.listener.StartupListener\] Errors experienced during the Crowd upgrade process: \[Could not find application to update: crowd\]  
2018-05-03 13:30:32,233 localhost-startStop-1 INFO \[com.atlassian.crowd.startup\] System Information:  
2018-05-03 13:30:32,234 localhost-startStop-1 INFO \[com.atlassian.crowd.startup\] Timezone: Greenwich Mean Time  
2018-05-03 13:30:32,234 localhost-startStop-1 INFO \[com.atlassian.crowd.startup\] Java Version: 1.8.0_171  
2018-05-03 13:30:32,234 localhost-startStop-1 INFO \[com.atlassian.crowd.startup\] Java Vendor: Oracle Corporation  
2018-05-03 13:30:32,234 localhost-startStop-1 INFO \[com.atlassian.crowd.startup\] JVM Version: 25.171-b10  

Any help, very gratefully received.


Answers:
author: Gopal
body: Hi [@Naveed Ashraf](/t5/user/viewprofilepage/user-id/1329813) /anyone still looking for answer on this :  

Just delete the "crowd.cfg.xml" present in your "crowd_home/shared" directory and restart crowd ; it should solve the issue posted in this thread.  

So basically it would take you to /setup step and "crowd.cfg.xml" gets regenerated automatically when you follow the setup steps.  

hope it helps , Thanks !


author: Marcin Kempa
body: Hi [@Naveed Ashraf](/t5/user/viewprofilepage/user-id/1329813),

This error is thrown during the upgrade process and this particular upgrade task is a fairly old one. Which version of Crowd are you upgrading from?

Best Regards,

Marcin Kempa

comments: author: Naveed Ashraf
body: Hi Marcin

We're actually trying to stand up crowd 3.2 from scratch so there should be no upgrade as it is a new install. That's why we can't figure out why it's trying to do an upgrade. We are using terraform to manage the deployment. Any help, gratefully received.


author: Marcin Kempa
body: That's interesting, maybe your crowd.cfg.xml is pointing to an old database?


author: Naveed Ashraf
body: so below is my crowd.cfg.xml

The build number doesn't update to 971 although that's what it shows on the splash screen but when you click on the setup crowd button, you get

### Bootstrap error {#toc-hId-1599589666}

TimeLevelDescriptionException

|---------------------|-------|----------------------------------------------------------------------------------------------|---------------------------------------------|
| 2018-05-09 14:46:24 | fatal | Crowd has encountered errors while upgrading. Please resolve these errors and restart Crowd. | Could not find application to update: crowd |

\<?xml version="1.0" encoding="UTF-8"?\>

\<application-configuration\>  
\<setupStep\>complete\</setupStep\>  
\<setupType\>install.new\</setupType\>  
\<buildNumber\>0\</buildNumber\>  
\<properties\>  
\<property name="crowd.server.id"\>BO4C-XXXX-XXXX-BSR2\</property\>  
\<property name="hibernate.c3p0.acquire_increment"\>1\</property\>  
\<property name="hibernate.c3p0.idle_test_period"\>100\</property\>  
\<property name="hibernate.c3p0.max_size"\>30\</property\>  
\<property name="hibernate.c3p0.max_statements"\>0\</property\>  
\<property name="hibernate.c3p0.min_size"\>0\</property\>  
\<property name="hibernate.c3p0.timeout"\>30\</property\>  
\<property name="hibernate.connection.driver_class"\>com.mysql.jdbc.Driver\</property\>  
\<property name="hibernate.connection.password"\>xxxxxxxxxx\</property\>  
\<property name="hibernate.connection.url"\>jdbc:mysql://AWSRDSURL.com:3306/crowd?autoReconnect=true\&amp;characterEncoding=utf8\&amp;useUnicode=true\&amp;useSSL=false\&amp;rewriteBatchedStatements=true\</property\>  
\<property name="hibernate.connection.username"\>crowd\</property\>  
\<property name="hibernate.dialect"\>org.hibernate.dialect.MySQL5InnoDBDialect\</property\>  
\<property name="hibernate.setup"\>true\</property\>  
\<property name="license"\>AAABOQ0ODAoPeNqFkEtvgzAQhO/+FUi9tAcjQIQ8JEttDEojQYgCfRx6cekmsUpMtDa0+feFQNWHKvXgy87u55m5yGuwEnGynInljGd+MPOnFg9zy3PcCQlBFyiPRlaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXRqA9kzvUWyv9wcs7J2W9q5q7Pp1YGZGoAFkW1FqGGaxLEBpyE9HOHN4miTRhi9v4k98lAhZ/sP/st87LnvqPaDuZh5pGcqAEqqA6P0o8fQtS0CdMUlxJ5TUPeM22fC2uAXpC1qGbJ76nI7mi0f64AdrOs82HsmiFWsfjV03GHujaTBEWtWHZ8B0e6fb7xl1yZCxxcTL8OfFIP3taV1jsRcafvf+ARd9n3EwLAIUNnCmGCtKzWi00nlGbZ0QlbfKPeoCFBk3O283JV2lUKjCQB1S5l3mKa/IX02fj\</property\>  
\</properties\>  
\</application-configuration\>


author: Marcin Kempa
body: So I assume that this question is related to the one you posted [here](https://community.atlassian.com/t5/Crowd-questions/Crowd-deployment-automation-with-terraform/qaq-p/792321?utm_campaign=subscription_search_answer&utm_content=topic&utm_medium=email&utm_source=atlcomm),

The database schema is probably setup, what about the data in that database I think that you should restore the backup in that database first in order to do this kind of setup? Right now Crowd assumes that this is an upgrade as the database config is there and also the crowd.cfg.xml indicates that the install is complete hence it tries to lookup for the data in database.

Hope that helps,

Marcin Kempa