roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate Keegan <nate.kee...@cityofprescott.net>
Subject Re: Roller 4.0 and Roller Planet Issue
Date Fri, 04 Jan 2008 20:49:36 GMT
I keep seeing this in the logs:

DEBUG 2008-01-04 13:31:00,146 TaskScheduler:runTasks - 
RefreshRollerPlanetTask: next allowed run time = Wed Dec 31 17:05:00 MST 
1969
DEBUG 2008-01-04 13:31:00,146 TaskScheduler:runTasks - MISSED last run, 
checking if waiting is necessary
DEBUG 2008-01-04 13:31:00,147 TaskScheduler:runTasks - WAITING for next 
reasonable run time
...
DEBUG 2008-01-04 13:32:00,128 TaskScheduler:runTasks - PingQueueTask: 
LAUNCHING task
DEBUG 2008-01-04 13:32:00,128 RollerTaskWithLeasing:run - PingQueueTask: 
Attempting to acquire lease
DEBUG 2008-01-04 13:32:00,129 JPAThreadManagerImpl:registerLease - 
Attempting to register lease for task - PingQueueTask
DEBUG 2008-01-04 13:32:00,147 TaskScheduler:runTasks - 
RefreshRollerPlanetTask: next allowed run time = Wed Dec 31 17:05:00 MST 
1969
DEBUG 2008-01-04 13:32:00,147 TaskScheduler:runTasks - MISSED last run, 
checking if waiting is necessary
DEBUG 2008-01-04 13:32:00,148 TaskScheduler:runTasks - WAITING for next 
reasonable run time
DEBUG 2008-01-04 13:32:00,149 JPAThreadManagerImpl:registerLease - last 
run = Fri Jan 04 13:22:00 MST 2008
DEBUG 2008-01-04 13:32:00,150 JPAThreadManagerImpl:registerLease - new 
run time = Fri Jan 04 13:32:00 MST 2008
DEBUG 2008-01-04 13:32:00,150 JPAThreadManagerImpl:registerLease - last 
acquired = Fri Jan 04 13:22:00 MST 2008
DEBUG 2008-01-04 13:32:00,151 JPAThreadManagerImpl:registerLease - time 
leased = 30
DEBUG 2008-01-04 13:32:00,151 JPAThreadManagerImpl:registerLease - lease 
expiration = Fri Jan 04 13:52:00 MST 2008
DEBUG 2008-01-04 13:32:00,165 TaskScheduler:runTasks - SyncWebsitesTask: 
next allowed run time = Thu Jan 01 17:00:00 MST 1970
DEBUG 2008-01-04 13:32:00,166 TaskScheduler:runTasks - MISSED last run, 
checking if waiting is necessary
DEBUG 2008-01-04 13:32:00,166 TaskScheduler:runTasks - WAITING for next 
reasonable run time
DEBUG 2008-01-04 13:32:00,167 TaskScheduler:runTasks - Finished

My directories:

[root@viking classes]# more planet-custom.properties
cache.dir=/opt/SUNWappserver/domains/domain1/roller_data/cache
output.dir=/opt/SUNWappserver/domains/domain1/roller_data/webapp
template.dir=/opt/SUNWappsserver/domains/domain1/roller_data/templates

[root@viking /]# ls /opt/SUNWappserver/domains/domain1/roller_data/cache/
total 44
drwxr-xr-x   2 root     root         512 Jan  3 11:27 .
drwxr-xr-x   5 root     root         512 Jan  2 15:43 ..
-rw-r--r--   1 root     root       15683 Jan  4 13:00 
feed_http___viking_8080_roller_planet_feed_entries_rss
-rw-r--r--   1 root     root        3290 Jan  4 13:00 
feed_http___viking_8080_roller_planetrss

It looks like there is data being collected.

Nothing on the front page blog...webdev log code for the front page blog 
is below:

#includeTemplate($model.weblog "_header")

#set($maxResults = 25)
#set($since = 365)

    <div id="centercontent_wrap">
        <div id="centercontent"> 
            <h1>$config.siteName</h1>
            <p class="subtitle">$config.siteDescription</p>

            <table class="menuTabTable" cellspacing="0"><tbody><tr>
               <td class="menuTabSelected">
                  <div class="menu-tr">
                     <div class="menu-tl">
                        &nbsp;&nbsp;<a href="$url.home">Recent 
Entries</a>&nbsp;&nbsp;
                     </div>
                  </div>
               </td>   
               <td class="menuTabSeparator"></td>
               <td class="menuTabUnselected">
                  <div class="menu-tr">
                     <div class="menu-tl">
                        &nbsp;&nbsp;<a 
href="$url.page("directory")">Weblog Directory</a>&nbsp;&nbsp;
                     </div>
                  </div>
               </td>       
               <td class="menuTabSeparator"></td>
            </tr></tbody></table>
            <table class="menuItemTable" cellspacing="0"><tbody><tr>
            <td class="padleft"></td></tr></tbody></table>

            <div id="tabContent">
                <div id="recentEntries">
                 
                    #if (!$model.results)
                        ## 1) SITE-WIDE entries (the default)
                        ##set($pager = 
$site.getWeblogEntriesPager($since, $maxResults))

                        ## 2) PLANET-entries
                        #set($pager = 
$planet.getAggregationPager($since, $maxResults))
                        ## The below pager code should work against either:

                        #if($pager.items.size() > 0)
                            #set($entryCount = $pager.items.size() - 1)
                            #set($startDate = $pager.items.get(0).pubTime)
                            #set($endDate = 
$entries.get($entryCount).pubTime)
                        #end

                         #if(!$pager.nextLink)
                            #set($pinnedEntries = 
$site.getPinnedWeblogEntries(5))
                            #foreach($pinnedEntry in $pinnedEntries)
                                <div class="entry">
                                    <a class="entryTitle" 
href="$utils.escapeHTML($pinnedEntry.permalink)">
                                        
$utils.truncateNicely($utils.removeHTML($pinnedEntry.title), 50, 50, "...")
                                    </a><br />
                                    <p class="entryDetails">
                                        <a 
href="$utils.escapeHTML($pinnedEntry.website.URL)">$pinnedEntry.website.name</a>
                                        #if($pinnedEntry.category.name)| 
$pinnedEntry.category.name #end
                                        #if($pinnedEntry.pubTime) | 
$utils.formatDate($pinnedEntry.pubTime, $text.get("macro.weblog.
date.toStringFormat")) #end
                                        
#if($pinnedEntry.creator.screenName)| By $pinnedEntry.creator.screenName 
#end
                                        <br/>
                                    </p>
                                    <p 
class="entryDescription">                   
                                        $pinnedEntry.displayContent
                                   </p>
                                </div>
                            #end
                        #end

                        #foreach($entry in $pager.items)
                            #if($velocityCount < $maxResults)
                                #includeTemplate($model.weblog "_entry")
                            #end
                        #end

                        <div class="pagingcontrols">
                        #if($pager.nextLink)
                           <a href="$pager.nextLink">&lt; 
$pager.nextName</a>
                        #end
                        #if($pager.nextLink && $pager.prevLink)
                           &nbsp;|&nbsp;
                        #end
                        #if($pager.prevLink)
                           <a href="$pager.prevLink">$pager.prevName 
&gt;</a>
                        #end
                        </div>

                    #else
                        ## We've got search results to display
                        #set($pager = $model.getWeblogEntriesPager())

                        <h2>Search results</h2>
                        <div class="next-previous">
                            #showWeblogSearchAgainForm($model.weblog)
                            #showNextPrevSearchControl($pager)
                        </div>
                        <br />
                        <br />

                        #set($map = $pager.getEntries())
                        #foreach($day in $map.keySet())
                            #set($entries = $map.get($day))  
                            #foreach($entry in $entries)
                                #includeTemplate($model.weblog "_entry")
                            #end
                        #end

                    #end

                </div>
            </div>
                                   
            <br />
            <a href='$url.feed.entries.rss' title='Combined RSS feed for 
site.'>
            <img src='$url.absoluteSite/images/rssbadge.gif' border="0" 
alt='Combined RSS feed for site.' />
            </a>
            Right-click, copy link and paste into your newsfeed reader

        </div>
    </div>

    <div id="rightcontent_wrap">
        <div id="rightcontent">

           <div class="searchSidebarHead">
               <div class="menu-tr">
                   <div class="menu-tl">
                      <h3>&nbsp;</h3>
                   </div>

               </div>
           </div>

           <div class="searchSidebarBody">
                <h3>Search for blogs</h3>
                #showWeblogSearchForm($model.weblog false)
            </div>

            <br />
            <div class="sidebarBodyHead">
                <div class="menu-tr">
                    <div class="menu-tl">
                       <h3>Hot blogs (today's hits)</h3>               
                    </div>
                </div>
            </div>     

            <div class="sidebarBody"> 
                #set($hotblogs = $site.getHotWeblogs($since, $maxResults))
                <ul>
                   #foreach($blog in $hotblogs)
                   <li><a 
href="$url.site/$blog.subjectNameShort">$blog.subjectNameShort</a> | 
$blog.count</li>
                   #end
                </ul>  
                <br />         
            </div>
           
            <br />
            <div class="sidebarBodyHead">
                <div class="menu-tr">
                    <div class="menu-tl">
                       <h3>Hot Tags</h3>               
                    </div>
                </div>
            </div>     

            <div id="tagbin" class="sidebarBody"> 
                #set($sitetags = $site.getPopularTags(-1, 100))
                #foreach ($tag in $sitetags)
                    #if ($tag.count > 4)
                        <a class="tag s${tag.intensity}" 
href="$url.tag($tag.name)"
                            title="$tag.count">$tag.name</a>
                    #end
                #end
            </div>
           

        </div>
    </div>

</div> <!-- wrapper -->

#includeTemplate($model.weblog "_footer")


Dave wrote:
> On Jan 4, 2008 1:07 PM, Nate Keegan <nate.keegan@cityofprescott.net> wrote:
>   
>> At this point it looks like I am out of luck here.
>> I appreciate all of the help to this point.
>>     
>
> I'm not sure why you're having so much difficulty but I'd like to find
> out so others can avoid this predicament.
>
> Do you see any evidence in the logs that the RefreshRollerPlanetTask
> is running? There should be some indication at the start of the log
> that the task inited, then some indication every hour that it is
> running or attempting to run.
>
> Another thing to check is the Planet cache directory. Does it exist,
> is it writable, does it have data in it?
>
> - Dave
>   

Mime
View raw message