question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing INSERT audit logs

See original GitHub issue

During a migration, I’ve seen the Analytics plugin warn a few times Unable to find payment creation audit log for id XXXX (affects payment, subscription event, invoice and invoice item objects).

The rows seem to be there and a subsequent refresh doesn’t trigger a warning. Could it be a caching problem?

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
sbrossiecommented, Sep 2, 2021

The issue has been identified in the analytics plugin, and a fix was released, so closing this issue.

0reactions
pierrecommented, Jun 8, 2022

Unclear if it’s related but I came across for a very large account (Kill Bill 0.22.29-8e93f0a319):

Caused by: java.lang.NullPointerException: null
	at org.killbill.billing.util.audit.dao.DefaultAuditDao$3.inTransaction(DefaultAuditDao.java:250)
	at org.killbill.billing.util.audit.dao.DefaultAuditDao$3.inTransaction(DefaultAuditDao.java:245)
	at org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper$JdbiTransaction.inTransaction(EntitySqlDaoTransactionalJdbiWrapper.java:74)
	at org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper$JdbiTransaction.inTransaction(EntitySqlDaoTransactionalJdbiWrapper.java:61)
	at org.skife.jdbi.v2.sqlobject.InTransactionHandler$1.inTransaction(InTransactionHandler.java:41)
	at org.skife.jdbi.v2.tweak.transactions.LocalTransactionHandler.inTransaction(LocalTransactionHandler.java:188)
	at org.skife.jdbi.v2.tweak.transactions.DelegatingTransactionHandler.inTransaction(DelegatingTransactionHandler.java:86)
	at org.killbill.commons.jdbi.transaction.RestartTransactionRunner.inTransaction(RestartTransactionRunner.java:62)
	at org.skife.jdbi.v2.BasicHandle.inTransaction(BasicHandle.java:332)
	at org.skife.jdbi.v2.sqlobject.InTransactionHandler.invoke(InTransactionHandler.java:36)
	at org.skife.jdbi.v2.sqlobject.SqlObject.invoke(SqlObject.java:184)
	at org.skife.jdbi.v2.sqlobject.SqlObject$2.intercept(SqlObject.java:97)
	at org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper$InitialEntitySqlDao$$EnhancerByCGLIB$$93ec8c0.inTransaction(<generated>)
	at org.killbill.billing.util.entity.dao.EntitySqlDaoTransactionalJdbiWrapper.execute(EntitySqlDaoTransactionalJdbiWrapper.java:98)
	at org.killbill.billing.util.audit.dao.DefaultAuditDao.doGetAuditLogsViaHistoryForId(DefaultAuditDao.java:245)
	at org.killbill.billing.util.audit.dao.DefaultAuditDao.getAuditLogsForId(DefaultAuditDao.java:179)
	at org.killbill.billing.util.audit.api.DefaultAuditUserApi.getAuditLogs(DefaultAuditUserApi.java:87)
	at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:89)
	at org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:35)
	at org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:105)
	at sun.reflect.GeneratedMethodAccessor723.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.killbill.billing.osgi.api.ROOSGIKillbillInterceptor.invoke(ROOSGIKillbillInterceptor.java:59)
	at com.sun.proxy.$Proxy393.getAuditLogs(Unknown Source)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessFactoryBase$3.getAuditLog(BusinessFactoryBase.java:297)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessFactoryBase$AuditLogWithRetry.withRetry(BusinessFactoryBase.java:750)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessFactoryBase.getSubscriptionEventCreationAuditLog(BusinessFactoryBase.java:292)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessContextFactory.getSubscriptionEventCreationAuditLog(BusinessContextFactory.java:403)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.createBusinessSubscriptionTransition(BusinessSubscriptionTransitionFactory.java:208)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.createBusinessSubscriptionTransition(BusinessSubscriptionTransitionFactory.java:170)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.buildTransitionsForBundle(BusinessSubscriptionTransitionFactory.java:117)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.buildTransitionsForBundle(BusinessSubscriptionTransitionFactory.java:89)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.createBusinessSubscriptionTransitions(BusinessSubscriptionTransitionFactory.java:75)
	at org.killbill.billing.plugin.analytics.dao.factory.BusinessSubscriptionTransitionFactory.createBusinessSubscriptionTransitions(BusinessSubscriptionTransitionFactory.java:62)
	at org.killbill.billing.plugin.analytics.dao.BusinessSubscriptionTransitionDao.update(BusinessSubscriptionTransitionDao.java:89)
	at org.killbill.billing.plugin.analytics.dao.AllBusinessObjectsDao.update(AllBusinessObjectsDao.java:58)
	at org.killbill.billing.plugin.analytics.api.user.AnalyticsUserApi.rebuildAnalyticsForAccount(AnalyticsUserApi.java:128)
	at org.killbill.billing.plugin.analytics.http.AnalyticsAccountResource.doPut(AnalyticsAccountResource.java:85)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Audit Log Data - Microsoft Community Hub
Missing Audit Log Data. We have a list in SPO site that has many items added every week. The O365 Audit Log in...
Read more >
Solved: Missing audit \ activities - ServiceNow Community
Solved: One of my first line teams has notified me of an issue where activities in a ticket have disappeared, namely the Work...
Read more >
Audit log Missing Data - Microsoft Power BI Community
Hello, I urgently need help, I've seen in the data extracted from Audit Log Search that is missing a lot of records. I've...
Read more >
Error: No Audit log configuration provided - SAP Community
1, I am getting an error saying that “No Audit log configuration provided.”. How can I add Audit log configuration to the application?...
Read more >
Track organization activities from the audit log
Go to admin.atlassian.com. Select your organization if you have more than one. · Select Security > Audit log. · Enter your search criteria...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found