Thanks, Simon. I will try this.
Harry On Nov 12, 2013, at 12:05 PM, Simon Gaeremynck <gaeremyn...@gmail.com> wrote: > Hi Harry, > > You can trigger a full re-index by doing an HTTP POST to the > http://global_admin_server/api/content/reprocessPreviews with a set of > filters. > > Unfortunately, there is no UI for this feature yet, so you’ll have to do it > manually. > > You can do this by logging in as the administrator on the global admin, > open up your javascript console and enter the following: > > $.ajax({'type': 'POST', 'url': '/api/content/reprocessPreviews', 'data': > {'revision_previewsStatus': ['ignored', 'error']}}); > > That will reprocess all the revisions whose preview status has been set to > `ignored` or `error`. > You can specify the following filters: > content_createdBy: [ userid, userid, .. ] > content_resourceSubType: [ ‘file’, ‘link’, ‘collabdoc’ ] > content_previewsStatus: [‘ignored’, ‘error’, ‘done’ ] > revision_mime: [‘text/plain’, ‘text/html’, … ] > revision_createdAfter: 1384275677043 > revision_createdBefore: 1384275677043 > revision_previewsStatus: [‘ignored’, ‘error’, ‘done’ ] > > Let us know if that didn’t work out. > > Simon > > > On 6 Nov 2013, at 16:56, Harry Wang <harryjw...@gmail.com> wrote: > >> Hi Branden, >> >> It seems that the preview processor only works on the newly uploaded files >> after changing the password. The previous uploaded files are not been >> reprocessed - is there a way to make the preview processor to reprocess all >> existing contents? >> >> Thanks, >> >> Harry >> On Nov 6, 2013, at 11:15 AM, Harry Wang <harryjw...@gmail.com> wrote: >> >>> Thanks, Branden. >>> >>> After changing the config.js file, the preview processor is back to work >>> now :). >>> >>> Harry >>> On Nov 6, 2013, at 10:24 AM, Branden Visser <mrvis...@gmail.com> wrote: >>> >>>> Hi Harry, the config point located here >>>> https://github.com/oaeproject/Hilary/blob/master/config.js#L263 should >>>> be changed to reflect the admin password. >>>> >>>> This is something we've agreed to change in a later version by making >>>> the preview processor not work through the web endpoints. >>>> >>>> Thanks, >>>> Branden >>>> >>>> On Wed, Nov 6, 2013 at 10:16 AM, Harry Wang <harryjw...@gmail.com> wrote: >>>>> Hi all, >>>>> >>>>> On a local demo server, the file preview stopped working (showing >>>>> "Processing this file. Grab some tea and sit back.") after I changed the >>>>> Admin UI default password (or may be caused by other configuration >>>>> changes). >>>>> >>>>> The server.log shows the following errors: >>>>> >>>>> {"name":"oae-authentication","hostname":"ip","pid":7480,"level":30,"msg":"Invalid >>>>> password check for user >>>>> administrator","time":"2013-11-06T15:11:44.954Z","v":0} >>>>> {"name":"oae-preview-processor","hostname":"ip","pid":7480,"level":50,"err":{"code":401,"msg":"Unauthorized"},"msg":"Got >>>>> an unexpected error from the REST >>>>> api.","time":"2013-11-06T15:11:44.956Z","v":0} >>>>> {"name":"oae-preview-processor","hostname":"ip","pid":7480,"level":50,"err":{"code":401,"msg":"Unauthorized"},"contentId":"c:demo:xJ0L_vFuV","msg":"We >>>>> could not get a signed token for the tenant. The status of the content >>>>> item >>>>> will not be set.","time":"2013-11-06T15:11:44.956Z","v":0} >>>>> >>>>> Does anyone know how to solve this? >>>>> >>>>> Thanks, >>>>> >>>>> Harry >>>>> >>>>> _______________________________________________ >>>>> oae-dev mailing list >>>>> oae-dev@collab.sakaiproject.org >>>>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >>>>> >>> >> >> _______________________________________________ >> oae-dev mailing list >> oae-dev@collab.sakaiproject.org >> http://collab.sakaiproject.org/mailman/listinfo/oae-dev > _______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev