Page 1 of 1

Admin in external server needs restarted

Posted: Fri Nov 16, 2012 9:57 am
by limebot
I have a demo and Admin application on a external server running and every morning the Admin site needs to be restarted to be able to log-in. This would happen on the local version to overcome you would just have to start the site first and then the admin but now I was wondering how this is done in a production installation.

Thanks for the assistance.....in advance

Re: Admin in external server needs restarted daily

Posted: Thu Nov 29, 2012 8:54 am
by limebot
I was wondering if anybody as see this or if is a known problem.
With my Admin site in external server needs restarted daily to sign in.

Re: Admin in external server needs restarted

Posted: Wed Dec 12, 2012 1:19 pm
by jefffischer
Please make sure that your demo on the external server is not configured for "create" or "create-drop" (see http://docs.broadleafcommerce.org/curre ... ation.html). Otherwise, if the demo ever goes down or is recycled, the database is wiped.

Re: Admin in external server needs restarted

Posted: Fri Dec 14, 2012 9:32 am
by limebot
I have the update statement added but it still requires a restart. What else do you think would require the admin application to be re started. This is the same reason you can not start the admin first in a local environment I know I am missing a setting I just can figure it out.

Any Ideas?

Re: Admin in external server needs restarted

Posted: Fri Dec 14, 2012 10:53 am
by phillipuniverse
the same reason you can not start the admin first in a local environment


The admin application will actually start up locally no problem without 'site' running. The difference is that you cannot login or do anything until the site has been started up. This is because the hibernate ddl is set to 'create-drop' in site (see development.properties in the site project) and is also where all the import SQL files necessary to run the site and admin are referenced (while the files themselves are contained in core/src/main/resources/sql). This is what development.properties looks like in site:

Code: Select all

blPU.hibernate.hbm2ddl.auto=create-drop
blPU.hibernate.hbm2ddl.import_files=/sql/load_admin_security.sql,\
                           /sql/load_admin_users.sql,\
                           /sql/load_code_tables.sql,\
                           /sql/load_table_sequences.sql,\
                           /sql/load_content_structure.sql,\
                           /sql/load_catalog_data.sql,\
                           /sql/load_content_data.sql

blCMSStorage.hibernate.hbm2ddl.auto=update

blSecurePU.hibernate.hbm2ddl.auto=update
solr.index.repeat.interval=10000


The admin does not have this and so no tables are created and no import files are run.

There should be no reason that you have to restart the admin in order to log in unless for some reason the site and admin are pointing at separate databases. I regularly run on Tomcat deploying both applications at the same time (the admin as 'admin.war' and the site as 'ROOT.war'). Because I have it configured in this way, the admin.war file is deployed first and starts up without a problem, then the ROOT.war file is deployed and also starts up no problem, the Tomcat restart is completed and now I can do whatever I want with both site and admin. I would check your database configuration and also that you don't have anything wonky in your properties files.