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

Joe Desbonnet jdesbonnet at gmail.com
Wed Mar 1 03:23:34 CET 2006


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.



More information about the opencms-dev mailing list