canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Could not query user's page views

Open kenxt opened this issue 1 year ago • 2 comments

Summary:

I have a self-hosted canvas(prod 2024/09/23), and configed a cassandra, copyed analytics. I found the file cassandra.yml has gone, so I created a cassandra.yml, and executed "rake db:migrate" again, the system created tables in cassandra. But I could not query any user's pageviews , and the table page_views is empty in cassandra. I can access "views courses analytics", and canvas display course related data information on the page.

Steps to reproduce:

1.git analytics 2.rake db:migrate successfuly, Setting.set('enable_page_views', 'cassandra') 3.fail to rake db:migrate_pageviews_to_cassandra. rake aborted! Don't know how to build task 'db:migrate_pageviews_to_cassandra' (See the list of available tasks with

Expected behavior:

canvas can display course related data information in analytics pages. administrator can query page view history.

Actual behavior:

the page view history is empty

Additional notes:

I have not found db:migrate_pageviews_to_cassandra in the list of available tasks with rake --tasks I found some explanatory text in gems/canvas_cassandra, I'm not sure if there are more detailed explanations or guidance documents available

kenxt avatar Oct 01 '24 06:10 kenxt