Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira sandbox failing

Robert G. Nadon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2017

Hi all,

I am trying to create a sandbox from JIRA 7.2.6 and every time I try I get the following in the logs:

(I create the sandbox by making a copy of the DB and each directory {/opt/atlassian/ /var/atlassian/} on another machine and I was able to do this with all the previous versions?!?)

2017-03-12 13:07:25,035 JIRA-Bootstrap ERROR [c.a.jira.startup.LauncherContextListener] Unable to start JIRA.
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/atlassian/jira/util/log/RateLimitingLogger
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830)
at org.ofbiz.core.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:107)
at com.atlassian.core.ofbiz.CoreFactory.getGenericDelegator(CoreFactory.java:34)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.configureOfbiz(DatabaseConfigurationManagerImpl.java:215)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:295)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseConfigured(DatabaseConfigurationManagerImpl.java:199)
at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:130)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(DefaultJiraLauncher.java:101)
at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:31)
at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:99)
at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(LauncherContextListener.java:149)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/util/log/RateLimitingLogger
at com.atlassian.jira.ofbiz.JiraSQLInterceptorFactory.newSQLInterceptor(JiraSQLInterceptorFactory.java:23)
at org.ofbiz.core.entity.jdbc.SQLInterceptorSupport.getNonNullSQLInterceptor(SQLInterceptorSupport.java:63)
at org.ofbiz.core.entity.jdbc.SQLInterceptorSupport.getNonNullDelegate(SQLInterceptorSupport.java:86)
at org.ofbiz.core.entity.jdbc.SQLInterceptorSupport.getNonNullSQLConnectionInterceptor(SQLInterceptorSupport.java:81)
at org.ofbiz.core.entity.jdbc.interceptors.connection.ConnectionTracker.informInterceptor(ConnectionTracker.java:73)
at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.trackConnection(DBCPConnectionFactory.java:317)
at org.ofbiz.core.entity.transaction.DBCPConnectionFactory.getConnection(DBCPConnectionFactory.java:108)
at org.ofbiz.core.entity.ConnectionFactory.tryGenericConnectionSources(ConnectionFactory.java:69)
at org.ofbiz.core.entity.transaction.JNDIFactory.getConnection(JNDIFactory.java:164)
at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:136)
at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:59)
at org.ofbiz.core.entity.ConnectionFactory$1.getConnection(ConnectionFactory.java:52)
at org.ofbiz.core.entity.jdbc.DatabaseUtil.getConnection(DatabaseUtil.java:133)
at org.ofbiz.core.entity.jdbc.DatabaseUtil.getTableNames(DatabaseUtil.java:904)
at org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:167)
at org.ofbiz.core.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:145)

 

Thanks,

Robert

1 answer

1 vote
Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2017

Hi Robert!

Your approach is still doable and I do it frequently. Look at the stack trace available all points lead to your database. Check your dbconfig.xml and verify you can connect and do all the necessary operations/permission with that user.

Br, Niclas

Robert G. Nadon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2017

Even with JIRA version 7.2?   The database should be good as with the same user on the same system I was doing it with 6.4.7, and it worked like a champ.     I went into my grants and they looked good, I then redid the grants.  still exact same error.

Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2017

I've done it recently on 7.2 like last week. 7.1 and 7.3 during the month wink

Windows and Linux so I'm quite certain it should work.

Looking at the stack again it clearly states:

Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/util/log/RateLimitingLogger

This doesn't ring any bells you done something with this class?

Found a KB:

https://confluence.atlassian.com/jirakb/noclassdeffounderror-classnotfoundexception-or-nosuchmethodexception-due-to-incompatible-plugin-278069832.html

Robert G. Nadon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2017

Right I could find nothing on RateLimitingLogger.  I saw the above link and so I put Production JIRA into safe mode first took a clean snapshot and still the exact same problem.  I opened a case with support.atlassian.com ...   If anyone know what RateLimitingLogger and why my sandbox cannot find it I would be very interested.

Thanks!

Robert

Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2017

So nothing stands out in the log before the crash when trying safe mode? Maybe your copy wasn't complete for some reason? I know this is vague but apparently your source is working.

Robert G. Nadon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2017

Thanks I finally got it going.  It was my rsync of the server it did not happen corectly.    Which is strange as I redid it multiple times, but must have just made the same mistake each time.

Sune Mølgaard
Contributor
June 20, 2018

Hi @Robert G. Nadon,

I believe I know what failed you - you have probably `--exclude='log/**'`, which just so happens to also exclude content in *all* dirs called `log` - including content in `jira-atlassian/WEB-INF/classes/com/atlassian/jira/util/log/`, where RateLimitingLogger.class resides ;-)

Like # people like this

Suggest an answer

Log in or Sign up to answer