Cannot build from source one of the latest revisions

LabKey Support Forum (Inactive)
Cannot build from source one of the latest revisions Leo Dashevskiy  2014-04-24 15:28
Status: Closed
 
Now, I have the following error:


500: Unexpected server error

A failure occurred during LabKey Server startup.

org.labkey.api.data.SqlScriptRunner$SqlScriptException: EHR_ComplianceDB-0.00-11.20.sql : SqlExecutor.execute(); bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: schema "ehr_compliancedb" already exists
       at org.labkey.api.data.SqlScriptManager.runScript(SqlScriptManager.java:208)
       at org.labkey.api.data.SqlScriptRunner.runScripts(SqlScriptRunner.java:82)
       at org.labkey.api.module.DefaultModule.versionUpdate(DefaultModule.java:350)
       at org.labkey.api.module.ModuleUpgrader.upgrade(ModuleUpgrader.java:59)
       at org.labkey.api.module.ModuleUpgrader$1.run(ModuleUpgrader.java:75)
Caused by: org.springframework.jdbc.BadSqlGrammarException: SqlExecutor.execute(); bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: schema "ehr_compliancedb" already exists
       at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:111)
       at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:322)
       at org.labkey.api.data.ExceptionFramework$1.translate(ExceptionFramework.java:37)
       at org.labkey.api.data.ExceptionFramework$1.translate(ExceptionFramework.java:31)
       at org.labkey.api.data.SqlExecutor.execute(SqlExecutor.java:96)
       at org.labkey.api.data.SqlExecutor.execute(SqlExecutor.java:65)
       at org.labkey.api.data.SqlExecutor.execute(SqlExecutor.java:60)
       at org.labkey.api.data.SqlScriptExecutor$Block.execute(SqlScriptExecutor.java:168)
       at org.labkey.api.data.SqlScriptExecutor.execute(SqlScriptExecutor.java:64)
       at org.labkey.core.dialect.PostgreSql84Dialect.runSql(PostgreSql84Dialect.java:860)
       at org.labkey.api.data.SqlScriptManager.runScript(SqlScriptManager.java:203)
       ... 4 more
Caused by: org.postgresql.util.PSQLException: ERROR: schema "ehr_compliancedb" already exists
       at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
       at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
       at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
       at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)
       at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:403)
       at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:395)
       at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
       at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
       at org.labkey.api.data.dialect.StatementWrapper.execute(StatementWrapper.java:1015)
       at org.labkey.api.data.SqlExecutor$NormalStatementExecutor.execute(SqlExecutor.java:123)
       at org.labkey.api.data.SqlExecutor$NormalStatementExecutor.execute(SqlExecutor.java:111)
       at org.labkey.api.data.SqlExecutor.execute(SqlExecutor.java:89)
       ... 10 more


Sounds to me like it has something to do with the database, no?

Please, help!
Thanks.