Skip to content
Lenarys Analytics Docs
Back to website
Administration Troubleshooting

Troubleshooting

Resolve the most common installation, access, data, schedule, license, AI, and tracking problems.

First checks

  1. Reproduce as the affected user

    Role, audience, report-enabled state, and feature entitlement can make administrator testing misleading.

  2. Check Preferences

    Confirm API mode, endpoint, license status, plan, last check, feature access, and Billing Admin.

  3. Run cron

    Review Moodle task output for schedule or background errors.

  4. Enable debug only temporarily

    Capture the minimum detail needed, then disable it and remove sensitive diagnostic artifacts.

Access problems

SymptomCheck
User cannot open Lenarys AnalyticsSystem assignment of local/la:view.
Report is missing from LibraryAudience rule, plan lock, search term, and pagination.
“No access” messageUser does not match a report audience.
“Enable report first” messageUser matches the audience but has no enabled report relation.
Marketplace or Audience tab missingCurrent user is not the configured Billing Admin.

Empty or unexpected data

  • Clear report filters and URL parameters, then apply one filter at a time.
  • Confirm the report definition targets tables and records used by this Moodle site.
  • Review SQL joins for duplicate rows or unintended exclusions.
  • Check whether courses, activities, users, grades, or completions are hidden, suspended, deleted, or not yet created.
  • Compare a small sample to native Moodle screens before trusting totals.

Schedules

If a schedule does not send, confirm Moodle cron is running, the schedule is enabled and valid, the next attempt is due, the report is still entitled, recipients still have local/la:view, the recipient cap is not exceeded, and Moodle email delivery succeeds. Review failure count, last attempt, next attempt, and last error.

License & AI

SymptomCheck
API check failsEndpoint, DNS/TLS, firewall/proxy, response format, and server time.
Local license is ignoredAPI mode is Manual, JSON is valid, and entitlement date is current.
AI generation unavailableMoodle 4.5 or later, a configured AI provider with Generate text enabled, license AI prompt, Billing Admin, and provider quota.
Generated report fails reviewDefinition shape, restricted tables, sensitive fields, SQL validity, and supported columns.

Tracking

If time or visits remain empty, confirm tracking is enabled, the user is logged in and not a guest, the page resolves to a supported logical page, the window stays visible and focused, user activity remains within the idle timeout, and AJAX requests succeed. Multiple tabs intentionally count only from the elected leader tab.

Keep evidence together. Record the affected user, report/app ID, filters, timestamp, license state, browser, and exact error before changing configuration.

Was this page helpful?

Your feedback is stored in this browser.