Stash fails to start - Missing column
Symptoms
The following appears in the atlassian-stash.log
:
Caused by: org.hibernate.HibernateException: Missing column: remote_address_binary in public.cwd_application_address
Or:
Caused by: org.hibernate.HibernateException: Missing column: slug in STASH.STASH_USER
at org.hibernate.mapping.Table.validateColumns(Table.java:365) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1336) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:155) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:525) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1928) ~[hibernate-core-4.3.4.Final.jar:4.3.4.Final]
at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:339) ~[spring-orm-4.0.0.RELEASE.jar:4.0.0.RELEASE]
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:427) ~[spring-orm-4.0.0.RELEASE.jar:4.0.0.RELEASE]
at com.atlassian.stash.internal.hibernate.ExtendedLocalSessionFactoryBean.buildSessionFactory(ExtendedLocalSessionFactoryBean.java:90) ~[stash-dao-impl-2.11.4.jar:na]
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:412) ~[spring-orm-4.0.0.RELEASE.jar:4.0.0.RELEASE]
... 9 common frames omitted
Cause
There is a mismatch between the application version being used to start Stash and the database.
Resolution
Locate and start the newest version of Stash installed on the server. If you cannot get Stash to start open a support request at https://support.atlassian.com and provide a dump of the databasechangelog
table which Support will use to identify the correct version.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.