org.quartz.JobPersistenceException: Couldn't store trigger 'TRIGGERdrugi85' for 'JOBdrugi85' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]


Samebug tips1

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg


7 months ago
Expert tip

Solutions on the web39

Solution icon of terracotta
via Terracotta by crangon, 1 year ago
Couldn't store trigger 'TRIGGERdrugi85' for 'JOBdrugi85' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]

Solution icon of web
Couldn't store trigger 'trigger1355274000000' for '1355274000000' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]

Solution icon of terracotta
Couldn't store trigger 'trigger1355274000000' for '1355274000000' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]

Solution icon of stackoverflow
Couldn't store trigger 'trigger1355274000000' for '1355274000000' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]

Solution icon of web
via liferay.com by Unknown author, 1 year ago
Couldn't store trigger 'com.liferay.portlet.messageboards.messaging.ExpireBanMessageListener' for 'com.liferay.portlet.messageboards.messaging.ExpireBanMessageListener' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]

Solution icon of stackoverflow
via Stack Overflow by kiran
, 3 months ago
Couldn't store trigger 'SDTriggerGroup.SDTrigger__10416434' for 'SDJobGroup.SDJob__10416434' job:Deadlock found when trying to get lock; try restarting transaction [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction]

Solution icon of googlegroups
Couldn't store trigger: com.dotmarketing.sitesearch.job.SiteSearchJobProxy [See nested exception: java.lang.ClassNotFoundException: com.dotmarketing.sitesearch.job.SiteSearchJobProxy]

Solution icon of spring
via Spring JIRA by Kai Hackemesser, 1 year ago
Couldn't store trigger: org.springframework.context.support.GenericApplicationContext [See nested exception: java.io.NotSerializableException: org.springframework.context.support.GenericApplicationContext]

Solution icon of googlegroups
Couldn't store trigger: com.dotcms.publisher.business.PublisherQueueJob [See nested exception: java.lang.ClassNotFoundException: com.dotcms.publisher.business.PublisherQueueJob]

Solution icon of googlegroups
via Google Groups by Nathan Keiter, 3 months ago
Couldn't store trigger: com.dotcms.publisher.business.PublisherQueueJob [See nested exception: java.lang.ClassNotFoundException: com.dotcms.publisher.business.PublisherQueueJob]

Stack trace

org.quartz.JobPersistenceException: Couldn't store trigger 'TRIGGERdrugi85' for 'JOBdrugi85' job:Lock wait timeout exceeded; try restarting transaction [See nested exception: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction]
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger(JobStoreSupport.java:1245)
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2936)
	at org.quartz.impl.jdbcjobstore.JobStoreSupport$38.execute(JobStoreSupport.java:2846)
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3763)
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2840)
	at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:320)
Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2362)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2280)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2265)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
	at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.updateTrigger(StdJDBCDelegate.java:1295)
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger(JobStoreSupport.java:1231)
	... 5 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 1 year ago
163 more bugmates