confluence popular page shows nothing
Asked by lynne:

confluence version?7.17.4

we add popular macro on home page , when we click popular page, show no updating , we test create some pages and stars some page, nothing changes , can someone help this?

popular page shows below :

?? {#toc-hId--549957572}
------------------------

*

  ###### ?????????????? {#toc-hId--955282879}

  ????????????????????????????????????\~

  ??????????????\~

  *** ** * ** ***

  system plugin( Confluence Usage Stats ) is enabled, still null in popular page

  Confluence Usage Stats version 5.0.0, don't know why i can't answer or reply ...


Answers:
author: lynne
body: 1


author: Rilwan Ahmed
body: Hi [@lynne](/t5/user/viewprofilepage/user-id/4844426) ,

Welcome to the community !!

**Popular macro** is part of system plugin "**Confluence Usage Stats** ". Can you check if the plugin and the modules are enabled ?  
(Admin settings --\> Manage Add-ons --\> select System plugins)

Use "Space Key" and not the "Space Name" in the macro settings.   

**Please note:** Space Keys are case-sensitive. Separate each item with a comma. If not specified, the current space is searched.   

Also read about the macro for more details in <https://ecosystem.atlassian.net/wiki/spaces/USGTRK/overview>

comments: author: lynne
body: system plugin( Confluence Usage Stats ) is enabled, still null in popular page

Confluence Usage Stats version 5.0.0


author: Rilwan Ahmed
body: Hi [@lynne](/t5/user/viewprofilepage/user-id/4844426) ,

Can you please share the properties of the popular content macro (click edit page nad edit on the macro)


author: lynne
body: where can i find macro settings ? should i install confluence usage tracking plugin first ? i see system plugins : confluence usage stats is already installed .

thanks


author: Rilwan Ahmed
body: Hi [@lynne](/t5/user/viewprofilepage/user-id/4844426)

Click "Edit" on the page where macro is used, and then click on macro. This will display edit option for macro.  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/208131iDCE82DF2932D700C/image-dimensions/122x122?v=v2 "image.png")

Click on "Edit" , all required values to **Restrict to these Spaces** (Use "Space Key" and not the "Space Name"), **Include these Content Types Only** , **Restrict to these Events**


author: lynne
body: cannot find macro settings? click the page edit will into its edit page????


author: Rilwan Ahmed
body: Seems you have not added the macro to the page.


author: lynne
body: this is a confluence global homepage , not a user page, in user page we can add a popular macro to show popular pages , but in homepage seemly we don't set anything, , seems global settings page returns 404 , is there any problem with our confluence ?


author: lynne
body: seems everything is fine , but global popular page still not seen , we tried restart confluence ? reindex , popular page seems broken , stuck loading ?pending in circle

in confluence log flush errors like below :

2022-07-29 00:07:36,574 ERROR \[Caesium-1-2\] \[impl.schedule.caesium.JobRunnerWrapper\] runJob Scheduled job com.atlassian.confluence.plugins.confluence-edge-index:flushEdgeIndexQueueJob#flushEdgeIndexQueue failed to run

com.atlassian.bonnie.LuceneException: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:461)

at com.atlassian.confluence.internal.index.lucene.LuceneSearchIndexAccessor.withBatchUpdate(LuceneSearchIndexAccessor.java:152)

at com.atlassian.confluence.search.v2.DelegatingSearchIndexAccessor.withBatchUpdate(DelegatingSearchIndexAccessor.java:49)

at com.atlassian.confluence.plugins.edgeindex.job.EdgeIndexQueueFlusher.runJob(EdgeIndexQueueFlusher.java:33)

at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117)

at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:87)

at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)

at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)

at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:87)

at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134)

at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106)

at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90)

at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:464)

at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:431)

at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:409)

at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66)

at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60)

at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35)

at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only


author: Rilwan Ahmed
body: Hi [@lynne](/t5/user/viewprofilepage/user-id/4844426) ,

#### **1. Regarding dashboard and popular content** {#toc-hId-151850879}

<br />

You can modify the dashboard page as mentioned in <https://confluence.atlassian.com/doc/configuring-the-site-home-page-138140.html>

i.e create a page with required contents/macros and add to site home page as mentioned in above link

**Note about permissions:**Before changing the site homepage you should check that the default 'confluence-users' or 'users' groups have permissions to view the space the page was created in, and that the page itself is not restricted to particular people or groups.

If your site is public, you'll also need to make sure anonymous users have permissions to view the space, otherwise anonymous users will be directed to the dashboard instead.

#### **2. Regarding the errors in log** {#toc-hId--1655603584}

This seems to be an issue with confluence 7.17 version. As a workaround, you need to [rebuild index from scratch](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html)  
<https://jira.atlassian.com/browse/CONFSERVER-79529>


author: lynne
body: finally solved according to this?<https://confluence.atlassian.com/confkb/popular-content-missing-after-reindexing-from-scratch-1031831625.html>

1?shutdown confluence

2?clear plugin cache dirs

3?backup index dirs and delete index/edge contents (for we just can't see popular page ,while others functions all well )

4?restart confluence

confluence worked to rebuild edge pages ?and confluence not showing errors like?runJob Scheduled job com.atlassian.confluence.plugins.confluence-edge-index:flushEdgeIndexQueueJob#flushEdgeIndexQueue? and finally global popular page work well , thanks all.


Tags: confluence-server

server