Hi,
I will sure try the piece of hql code. However, I face an issue right now (see below item 2).
1)
Hmmm....there do seem to be 2 foreign-key constraints missing:
Code: Select all
"fkdatasetimagelink_child_image" FOREIGN KEY (child) REFERENCES image(id)
"fkdatasetimagelink_parent_dataset" FOREIGN KEY (parent) REFERENCES dataset(id)
Any idea what happened to these? I would certainly try re-instating them to see if there are any errors.
I see no explanation but the fact that the database was created in march 2011 and despite the fact that I pay attention to the upgrade procedure posted on the openmicroscopy website, something could have been missed. This is the only plausible explanation. I will try the "inserts" strategy (with explicit columns) on a freshly created DB. This should fix all these problems I imagine.
2) Maybe because of my manipulations or because system disk of the server got full (but not the /usr containing the OMERO application, nor /tmp, nor the place containing the omero data or postgresql database, I got the error below). Since then, there is no way to restart omero.... I am trying to revert to the last backup. If you have any suggestion, I am very interested !
3)
but no error of other kind
Code: Select all
grep -v -e "duplicate key value violates unique constraint" /tmp/adding_inserts_a_second_time.err | grep -v -e "already exists."
returns no line. So, I guess it means that there where no insert that was not included because of foreign_key (if inserts come in the wrong order to satify the foreign_keys contraints, I don't know if that can happen)
Interesting. And is there anything in the stdout?
I attached the full file but it list several entries like
- Code: Select all
setval
--------
115
(1 row)
Many thanks
Best
Jacques
--------------------------- Blitz-0.log----------------------------- (At 10:02, the server rebooted, thus tried to stop omero) - see attached file for more context
2014-11-01 10:02:26,962 INFO [ome.services.sessions.state.SessionCache] (2-thread-1) Synchronizing session cache. Count = 5
2014-11-01 10:02:26,962 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(6ae0f58a-c8f3-41f2-b3c8-10b1248575c6)
2014-11-01 10:02:26,962 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Args: [null, InternalSF@55497367]
2014-11-01 10:02:26,970 INFO [ ome.security.basic.EventHandler] (2-thread-1) Auth: user=0,group=0,event=null(Sessions),sess=6ae0f58a-c8f3-41f2-b3c8-10b1248575c6
2014-11-01 10:02:26,978 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546962] time[15] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
2014-11-01 10:02:26,978 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Rslt: (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1, 3, ... 4 more), ... 4 more)
2014-11-01 10:02:26,978 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(2b8ac874-6a1c-4d67-89a5-0d09742023db)
2014-11-01 10:02:26,978 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Args: [null, InternalSF@55497367]
2014-11-01 10:02:26,979 INFO [ ome.security.basic.EventHandler] (2-thread-1) Auth: user=0,group=0,event=null(Sessions),sess=6ae0f58a-c8f3-41f2-b3c8-10b1248575c6
2014-11-01 10:02:26,984 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546978] time[5] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
2014-11-01 10:02:26,984 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Rslt: (ome.model.meta.Experimenter:Id_153, ome.model.meta.ExperimenterGroup:Id_3, (3, 1), ... 4 more)
2014-11-01 10:02:26,984 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(a04105df-191d-4453-a92f-f7102459794b)
2014-11-01 10:02:26,984 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Args: [null, InternalSF@55497367]
2014-11-01 10:02:26,985 INFO [ ome.security.basic.EventHandler] (2-thread-1) Auth: user=0,group=0,event=null(Sessions),sess=6ae0f58a-c8f3-41f2-b3c8-10b1248575c6
2014-11-01 10:02:26,990 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546984] time[5] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
2014-11-01 10:02:26,990 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Rslt: (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1, 3, ... 4 more), ... 4 more)
2014-11-01 10:02:26,990 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(3f5c033c-50ed-409e-b936-785e6b1d1237)
2014-11-01 10:02:26,990 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Args: [null, InternalSF@55497367]
2014-11-01 10:02:26,991 INFO [ ome.security.basic.EventHandler] (2-thread-1) Auth: user=0,group=0,event=null(Sessions),sess=6ae0f58a-c8f3-41f2-b3c8-10b1248575c6
2014-11-01 10:02:26,996 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546990] time[5] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
2014-11-01 10:02:26,996 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Rslt: (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1, 3, ... 4 more), ... 4 more)
2014-11-01 10:02:26,996 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(8c4720fc-0765-40a2-91b3-736729b52e0d)
2014-11-01 10:02:26,996 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Args: [null, InternalSF@55497367]
2014-11-01 10:02:26,997 INFO [ ome.security.basic.EventHandler] (2-thread-1) Auth: user=0,group=0,event=null(Sessions),sess=6ae0f58a-c8f3-41f2-b3c8-10b1248575c6
2014-11-01 10:02:27,002 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546996] time[5] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
2014-11-01 10:02:27,002 INFO [ ome.services.util.ServiceHandler] (2-thread-1) Rslt: (ome.model.meta.Experimenter:Id_754, ome.model.meta.ExperimenterGroup:Id_3, (3, 1), ... 4 more)
2014-11-01 10:02:27,002 INFO [ org.perf4j.TimingLogger] (2-thread-1) start[1414832546962] time[39] tag[omero.sessions.synchronization]
2014-11-01 10:02:27,002 INFO [ome.services.sessions.state.SessionCache] (2-thread-1) Synchronization took 39 ms.
2014-11-01 10:03:00,015 INFO [ ome.services.blitz.fire.SessionManagerI] (2-thread-5) Performing requestHeartbeats
2014-11-01 10:03:48,034 INFO [ ome.services.blitz.Entry] ( main) Calling close on context OMERO.blitz
2014-11-01 10:03:48,035 INFO [ o.s.blitz.repo.AbstractRepositoryI] ( main) Releasing /usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/./lib/scripts
2014-11-01 10:03:48,920 INFO [ o.s.blitz.repo.AbstractRepositoryI] ( main) Releasing /OMERO//ManagedRepository
2014-11-01 10:03:48,996 INFO [ o.s.blitz.repo.AbstractRepositoryI] ( main) Releasing /OMERO/
2014-11-01 10:03:49,046 INFO [ ome.services.blitz.fire.Registry] ( main) Removed ClusterNode/6ae0f58a-c8f3-41f2-b3c8-10b1248575c6 from registry
2014-11-01 10:03:49,047 INFO [ ome.services.util.ServiceHandler] ( main) Executor.doWork -- ome.services.blitz.fire.Ring.executeUpdate - set closed = now()
2014-11-01 10:03:49,047 INFO [ ome.services.util.ServiceHandler] ( main) Args: [null, InternalSF@55497367]
2014-11-01 10:03:49,057 ERROR [ o.h.e.def.AbstractFlushingEventListener] ( main) Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) ~[hibernate-core.jar:na]
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2438) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2858) ~[hibernate-core.jar:na]
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:267) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:259) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:178) ~[hibernate-core.jar:na]
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) ~[hibernate-core.jar:na]
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) [hibernate-core.jar:na]
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1208) [hibernate-core.jar:na]
at ome.logic.UpdateImpl.afterUpdate(UpdateImpl.java:295) [server.jar:na]
at ome.logic.UpdateImpl.doAction(UpdateImpl.java:313) [server.jar:na]
at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303) [server.jar:na]
at ome.logic.UpdateImpl.saveAndReturnObject(UpdateImpl.java:118) [server.jar:na]
at ome.security.basic.BasicSecuritySystem.loadEventContext(BasicSecuritySystem.java:431) [server.jar:na]
at ome.security.basic.EventHandler.doLogin(EventHandler.java:210) [server.jar:na]
at ome.security.basic.EventHandler.invoke(EventHandler.java:146) [server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111) [org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) [org.springframework.transaction.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) [server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) [server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at com.sun.proxy.$Proxy69.doWork(Unknown Source) [na:na]
at ome.services.util.Executor$Impl.execute(Executor.java:457) [server.jar:na]
at ome.services.util.Executor$Impl.execute(Executor.java:401) [server.jar:na]
at ome.services.blitz.fire.Ring.closeSessionsForManager(Ring.java:353) [blitz.jar:na]
at ome.services.blitz.fire.Ring.destroy(Ring.java:205) [blitz.jar:na]
at ome.services.blitz.util.BlitzConfiguration.destroy(BlitzConfiguration.java:286) [blitz.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:273) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:199) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1017) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:993) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:946) [org.springframework.context.jar:3.0.1.RELEASE-A]
at ome.system.OmeroContext.closeAll(OmeroContext.java:315) [common.jar:na]
at ome.services.blitz.Entry.shutdown(Entry.java:250) [blitz.jar:na]
at ome.services.blitz.Entry.start(Entry.java:219) [blitz.jar:na]
at ome.services.blitz.Entry.main(Entry.java:150) [blitz.jar:na]
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "event_pkey"
Detail: Key (id)=(46359204) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103) ~[postgresql.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836) ~[postgresql.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) ~[postgresql.jar:na]
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:64) ~[btm.jar:2.1.3]
at com.sun.proxy.$Proxy9.executeUpdate(Unknown Source) ~[na:na]
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:46) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2418) ~[hibernate-core.jar:na]
... 47 common frames omitted
2014-11-01 10:03:49,057 INFO [ org.perf4j.TimingLogger] ( main) start[1414832629047] time[10] tag[omero.call.exception]
2014-11-01 10:03:49,059 WARN [ ome.services.util.ServiceHandler] ( main) DataIntegrityViolationException thrown.
org.springframework.dao.DataIntegrityViolationException: could not insert: [ome.model.meta.Event]; SQL [insert into event (containingEvent, external_id, permissions, experimenter, experimenterGroup, "session", status, time, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [event_pkey]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) ~[org.springframework.transaction.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) ~[server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) ~[server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at com.sun.proxy.$Proxy69.doWork(Unknown Source) [na:na]
at ome.services.util.Executor$Impl.execute(Executor.java:457) [server.jar:na]
at ome.services.util.Executor$Impl.execute(Executor.java:401) [server.jar:na]
at ome.services.blitz.fire.Ring.closeSessionsForManager(Ring.java:353) [blitz.jar:na]
at ome.services.blitz.fire.Ring.destroy(Ring.java:205) [blitz.jar:na]
at ome.services.blitz.util.BlitzConfiguration.destroy(BlitzConfiguration.java:286) [blitz.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:273) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:199) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1017) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:993) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:946) [org.springframework.context.jar:3.0.1.RELEASE-A]
at ome.system.OmeroContext.closeAll(OmeroContext.java:315) [common.jar:na]
at ome.services.blitz.Entry.shutdown(Entry.java:250) [blitz.jar:na]
at ome.services.blitz.Entry.start(Entry.java:219) [blitz.jar:na]
at ome.services.blitz.Entry.main(Entry.java:150) [blitz.jar:na]
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) ~[hibernate-core.jar:na]
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2438) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2858) ~[hibernate-core.jar:na]
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:267) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:259) ~[hibernate-core.jar:na]
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:178) ~[hibernate-core.jar:na]
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) ~[hibernate-core.jar:na]
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) ~[hibernate-core.jar:na]
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1208) ~[hibernate-core.jar:na]
at ome.logic.UpdateImpl.afterUpdate(UpdateImpl.java:295) ~[server.jar:na]
at ome.logic.UpdateImpl.doAction(UpdateImpl.java:313) ~[server.jar:na]
at ome.logic.UpdateImpl.doAction(UpdateImpl.java:303) ~[server.jar:na]
at ome.logic.UpdateImpl.saveAndReturnObject(UpdateImpl.java:118) ~[server.jar:na]
at ome.security.basic.BasicSecuritySystem.loadEventContext(BasicSecuritySystem.java:431) ~[server.jar:na]
at ome.security.basic.EventHandler.doLogin(EventHandler.java:210) ~[server.jar:na]
at ome.security.basic.EventHandler.invoke(EventHandler.java:146) ~[server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
... 30 common frames omitted
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "event_pkey"
Detail: Key (id)=(46359204) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103) ~[postgresql.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836) ~[postgresql.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) ~[postgresql.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) ~[postgresql.jar:na]
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:64) ~[btm.jar:2.1.3]
at com.sun.proxy.$Proxy9.executeUpdate(Unknown Source) ~[na:na]
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:46) ~[hibernate-core.jar:na]
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2418) ~[hibernate-core.jar:na]
... 47 common frames omitted
2014-11-01 10:03:49,059 INFO [ ome.services.util.ServiceHandler] ( main) Excp: org.springframework.dao.DataIntegrityViolationException: could not insert: [ome.model.meta.Event]; SQL [insert into event (containingEvent, external_id, permissions, experimenter, experimenterGroup, "session", status, time, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [event_pkey]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
2014-11-01 10:03:49,059 ERROR [ ome.services.blitz.fire.Ring] ( main) Error stopping ring ome.services.blitz.fire.Ring@15a861d4
ome.conditions.ValidationException: could not insert: [ome.model.meta.Event]; SQL [insert into event (containingEvent, external_id, permissions, experimenter, experimenterGroup, "session", status, time, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [event_pkey]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [ome.model.meta.Event]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:637) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:117) ~[org.springframework.orm.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) ~[org.springframework.transaction.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) ~[server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[org.springframework.aop.jar:3.0.1.RELEASE-A]
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) ~[server.jar:na]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[org.springframework.aop.jar:3.0.1.RELEASE-A]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[org.springframework.aop.jar:3.0.1.RELEASE-A]
at com.sun.proxy.$Proxy69.doWork(Unknown Source) ~[na:na]
at ome.services.util.Executor$Impl.execute(Executor.java:457) ~[server.jar:na]
at ome.services.util.Executor$Impl.execute(Executor.java:401) ~[server.jar:na]
at ome.services.blitz.fire.Ring.closeSessionsForManager(Ring.java:353) ~[blitz.jar:na]
at ome.services.blitz.fire.Ring.destroy(Ring.java:205) ~[blitz.jar:na]
at ome.services.blitz.util.BlitzConfiguration.destroy(BlitzConfiguration.java:286) [blitz.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:273) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:199) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430) [org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1017) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:993) [org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:946) [org.springframework.context.jar:3.0.1.RELEASE-A]
at ome.system.OmeroContext.closeAll(OmeroContext.java:315) [common.jar:na]
at ome.services.blitz.Entry.shutdown(Entry.java:250) [blitz.jar:na]
at ome.services.blitz.Entry.start(Entry.java:219) [blitz.jar:na]
at ome.services.blitz.Entry.main(Entry.java:150) [blitz.jar:na]
2014-11-01 10:03:49,060 INFO [ ome.services.blitz.fire.Registry] ( main) Found 0 cluster node(s) : []
2014-11-01 10:03:49,061 INFO [o.services.blitz.util.BlitzConfiguration] ( main) Shutting down Ice.Communicator
2014-11-01 10:03:49,150 INFO [ ome.services.util.ServerVersionCheck] ( main) -------------------------------------------------
2014-11-01 10:03:49,150 INFO [ ome.services.util.ServerVersionCheck] ( main) Stopping OMERO...
2014-11-01 10:03:49,150 INFO [ ome.services.util.ServerVersionCheck] ( main) -------------------------------------------------
2014-11-01 10:03:49,150 INFO [ ome.services.pixeldata.PixelDataThread] ( main) Shutting down PixelDataThread
2014-11-01 10:03:49,150 INFO [ o.s.pixeldata.PersistentEventLogLoader] ( main) Shutting down EventLogLoader
2014-11-01 10:03:49,151 INFO [ ome.services.fulltext.FullTextThread] ( main) Shutting down Full-Text Indexer
2014-11-01 10:03:49,151 INFO [ ome.services.eventlogs.EventLogQueue] ( main) Shutting down EventLogLoader
2014-11-01 10:03:49,152 INFO [ o.s.scheduler.SchedulerFactoryBean] ( main) Shutting down Quartz Scheduler
2014-11-01 10:03:49,335 INFO [.s.ShutdownSafeEhcacheManagerFactoryBean] ( main) Shutting down EHCache CacheManager
2014-11-01 10:03:49,338 INFO [ ome.services.blitz.Entry] ( main) Finished shutdown.
2014-11-01 10:18:23,417 INFO [ ome.services.blitz.Entry] ( main) Creating OMERO.blitz. Please wait...
2014-11-01 10:18:25,547 INFO [.s.ShutdownSafeEhcacheManagerFactoryBean] ( main) Initializing EHCache CacheManager
2014-11-01 10:18:26,581 INFO [ ome.services.util.DBPatchCheck] ( main) Verified database patch: OMERO5.0__0
2014-11-01 10:18:26,788 INFO [ ome.services.util.DBUserCheck] ( main) User root.id = 0
2014-11-01 10:18:26,790 INFO [ ome.services.util.DBUserCheck] ( main) User guest.id = 1
2014-11-01 10:18:26,790 INFO [ ome.services.util.DBUserCheck] ( main) Group system.id = 0
2014-11-01 10:18:26,791 INFO [ ome.services.util.DBUserCheck] ( main) Group user.id = 1
2014-11-01 10:18:26,791 INFO [ ome.services.util.DBUserCheck] ( main) Group guest.id = 2
2014-11-01 10:18:29,711 INFO [ ome.services.fulltext.FullTextAnalyzer] ( main) Initialized FullTextAnalyzer
2014-11-01 10:18:34,710 INFO [.s.ShutdownSafeEhcacheManagerFactoryBean] ( main) Shutting down EHCache CacheManager
2014-11-01 10:18:34,717 ERROR [ ome.services.blitz.Entry] ( main) Error on startup.
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [OMERO.blitz], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OMERO.blitz' defined in URL [jar:file:/usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/lib/server/blitz.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'ome.server' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ome.server' defined in URL [jar:file:/usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/lib/server/server.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ome.system.OmeroContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in class path resource [ome/services/sec-primitives.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: =====================================================
Data access exception: Did you create your database?
=====================================================
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at ome.system.OmeroContext.getInstance(OmeroContext.java:203) ~[common.jar:na]
at ome.services.blitz.Entry.start(Entry.java:193) [blitz.jar:na]
at ome.services.blitz.Entry.main(Entry.java:150) [blitz.jar:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OMERO.blitz' defined in URL [jar:file:/usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/lib/server/blitz.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'ome.server' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ome.server' defined in URL [jar:file:/usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/lib/server/server.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ome.system.OmeroContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in class path resource [ome/services/sec-primitives.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: =====================================================
Data access exception: Did you create your database?
=====================================================
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:586) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:888) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1048) ~[org.springframework.context.jar:3.0.1.RELEASE-A]
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397) ~[org.springframework.beans.jar:3.0.1.RELEASE-A]
... 3 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ome.server' defined in URL [jar:file:/usr2/local/OMERO/OMERO.server-5.0.5-ice34-b47/lib/server/server.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ome.system.OmeroContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in class path resource [ome/services/sec-primitives.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: