[opencms-dev] Static export problem when publishing individual files

Jonathan Woods jonathan.woods at scintillance.com
Wed Mar 1 07:37:32 CET 2006


Joe -

At a cursory glance, this sounds like reasonable behaviour.  When you touch
the resource, OpenCms knows that means the statically exported RFS version
is out of date - so it removes it.  This doesn't matter because it should be
replaced on demand next time it is requested: browser requests document;
OpenCms knows it's statically exported; OpenCms doesn't find it in the
appropriate (RFS) static export location; OpenCms passes control to
handle404 which creates the RFS copy from the new VFS version; and finally
it serves up the result to the browser.

So I suppose the question is: if you touch a PDF resource then re-publish
it, are you not then able to download it from a browser which is 'seeing'
the online project?

Jon

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Joe Desbonnet
Sent: 01 March 2006 02:24
To: The OpenCms mailing list
Subject: [opencms-dev] Static export problem when publishing individual
files

I've been having a static export problem since I started using OpenCms 6.0.x
and it's getting quite serious for me now. I was hoping an upgrade to
version 6.0.4 would solve the problem, but it does not. If you don't have an
answer, some debugging tips would be appreciated.

Here is the problem:

I'm using  CmsOnDemandStaticExportHandler. Some items (eg PDFs) just will
not get exported to the static export directory when published individually.
Worse -- if they are already there it just deletes the old version and
replaces it with nothing. No errors are reported to the user, and no errors
are seen in the log file.

The only way reliably publish is to do a full static export from the admin
console.

Here is the log output of what happens when I try to publish an individual
PDF in this directory. Before starting I do a full static export from admin
console. I start with 4 PDFs in the static export directory which is
correct. I 'touch' one of the files in the OpenCms Explorer view and
republish it. It disappears from the static export directory and
consequently from the public web site.

Here is the log output (I increased logging for static exports). Note the
last item in the log ... it's deleting the file ...  and then..
nothing.

(start of log output)
01 Mar 2006 01:53:39,121  INFO [rg.opencms.jsp.CmsJspLoginBean: 213]
Successful login of user "Admin": Request from IP 193.120.102.16 using uri
"/system/login/index.html".
01 Mar 2006 01:54:39,591 DEBUG [cexport.CmsStaticExportManager: 355] Static
export manager catched event EVENT_PUBLISH_PROJECT for project ID
565c47fe-a8c6-11da-875b-00112fcc7bb5
01 Mar 2006 01:54:39,596 DEBUG [cexport.CmsStaticExportManager:2171]
Static export manager starting update of list of resources with "exportname"
property
01 Mar 2006 01:54:39,604 DEBUG [xport.A_CmsStaticExportHandler: 101] Static
export manager scrubbing export folders for project ID
565c47fe-a8c6-11da-875b-00112fcc7bb5
01 Mar 2006 01:54:39,660 DEBUG [cexport.CmsStaticExportManager:2204]
Static export manager finished update of list of resources with "exportname"
property
01 Mar 2006 01:54:39,661 DEBUG [cexport.CmsStaticExportManager:1876]
Static export manager flushed caches after recieving event
EVENT_PUBLISH_PROJECT
01 Mar 2006 01:54:39,661 DEBUG [cexport.CmsStaticExportManager: 363] Static
export manager finished publish event for project ID
565c47fe-a8c6-11da-875b-00112fcc7bb5
01 Mar 2006 01:54:39,679 DEBUG [xport.A_CmsStaticExportHandler: 145] Static
export checking for deletion
vfsName="/sites/WVVMC/news/2005/W.V.V.M.C._Newsletter_DEC._2005.pdf"
rfsName="/export/sites/WVVMC/news/2005/W.V.V.M.C._Newsletter_DEC._2005.pdf"
01 Mar 2006 01:54:39,680  INFO [xport.A_CmsStaticExportHandler: 278] Static
export deleted exported rfs file
"/export/sites/WVVMC/news/2005/W.V.V.M.C._Newsletter_DEC._2005.pdf"
(end of log output)


Here is another PDF file in the same directory, looks a little different
(not sure why).

01 Mar 2006 02:07:44,291 DEBUG [cexport.CmsStaticExportManager: 355] Static
export manager catched event EVENT_PUBLISH_PROJECT for project ID
29dc4df3-a8c8-11da-875b-00112fcc7bb5
01 Mar 2006 02:07:44,336 DEBUG [cexport.CmsStaticExportManager:2171]
Static export manager starting update of list of resources with "exportname"
property
01 Mar 2006 02:07:44,339 DEBUG [xport.A_CmsStaticExportHandler: 101] Static
export manager scrubbing export folders for project ID
29dc4df3-a8c8-11da-875b-00112fcc7bb5
01 Mar 2006 02:07:44,479 DEBUG [xport.A_CmsStaticExportHandler: 145] Static
export checking for deletion
vfsName="/sites/WVVMC/news/2005/W.V.V.M.C._Newsletterx_JUNE._2005.pdf"
rfsName="/export/sites/WVVMC/news/2005/W.V.V.M.C._Newsletterx_JUNE._2005.pdf
"
01 Mar 2006 02:07:44,711  INFO [xport.A_CmsStaticExportHandler: 278] Static
export deleted exported rfs file
"/export/sites/WVVMC/news/2005/W.V.V.M.C._Newsletterx_JUNE._2005.pdf"
01 Mar 2006 02:07:44,776 DEBUG [cexport.CmsStaticExportManager:2204]
Static export manager finished update of list of resources with "exportname"
property
01 Mar 2006 02:07:44,776 DEBUG [cexport.CmsStaticExportManager:1876]
Static export manager flushed caches after recieving event
EVENT_PUBLISH_PROJECT
01 Mar 2006 02:07:44,776 DEBUG [cexport.CmsStaticExportManager: 363] Static
export manager finished publish event for project ID
29dc4df3-a8c8-11da-875b-00112fcc7bb5

Any help would be greatly appreciated.

Joe.

_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list