[opencms-dev] OpenCms 9.5.2: Not all files get statically exported with static export after publish

Jensen Asger asger.jensen at solteq.com
Mon Aug 12 18:34:49 CEST 2019


I actually observed something similar at one point, but that was due to an attachment (.doc) having been uploaded with .docx as extension without actually being a .docx.  (or was it the other way around?)

The indexer did not find that amusing, and stopped indexing at random places.




From: <opencms-dev-bounces at opencms.org> on behalf of Alexander Kandzior <alex at opencms.org>
Reply to: The OpenCms mailing list <opencms-dev at opencms.org>
Date: Monday, 12 August 2019 at 16.42
To: The OpenCms mailing list <opencms-dev at opencms.org>
Subject: Re: [opencms-dev] OpenCms 9.5.2: Not all files get statically exported with static export after publish

Kai,

Regarding your static export issue:

There is a scheduled task in OpenCms which does a „full static render“ every evening. This worked perfectly for years. Customer said, that there where no changes on the system OpenCms is running on.

I would bet there have been changes in the system environment configured with OpenCms, regardless of what the customer says.
Static export after publish will request all the URLs of the published pages quickly, so there may be some new firewall settings that „prevent“ a DoS Attack.

Kind regards,
Alex.

-------------------
Alexander Kandzior

Alkacon Software - The OpenCms Experts
http://www.alkacon.com<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.alkacon.com&data=02%7C01%7C%7Cf03713dbd5a24759f45b08d71f333fd3%7C9e4eb25883584a33b3e9b734c884fc4b%7C0%7C0%7C637012177291274510&sdata=ogbT3eS68r3%2FZgGyPkSVEdqxYEzejeHQdOcDVrJlOY0%3D&reserved=0> - http://www.opencms.org<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opencms.org&data=02%7C01%7C%7Cf03713dbd5a24759f45b08d71f333fd3%7C9e4eb25883584a33b3e9b734c884fc4b%7C0%7C0%7C637012177291284504&sdata=4eWnQggnbgwtAR0ch7qjk41pSLGmgwuoz5Yicc1bGu4%3D&reserved=0>



Am 12.08.2019 um 15:39 schrieb Schliemann, Kai <K.Schliemann at comundus.com<mailto:K.Schliemann at comundus.com>>:

Hi list,

we have a very strange problem in one of our customers installations with the full static export.
This is our setup:

Configuration in opencms-importexport.xml:

…
     <staticexport enabled="true">
     <staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler>
     <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler>
          <exportpath>export</exportpath>
          <exportworkpath>temp</exportworkpath>
          <exportbackups>2</exportbackups>
          <defaultpropertyvalue>false</defaultpropertyvalue>
          <defaultsuffixes>
                …
          </defaultsuffixes>
          <rendersettings>
                <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
                <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
                <userelativelinks>true</userelativelinks>
               <exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl><http://127.0.0.1:8080$%7bcontext_name%7d/handle404%3c/exporturl%3e>
                <plainoptimization>true</plainoptimization>
                <testresource uri="/system/shared/page.dtd" />
                <resourcestorender>
                     <regex>/sites/aaa/.*</regex>
                     <regex>/system/galleries/.*/aaa/.*</regex>
                     <regex>/system/galleries/.*/bbb/.*</regex>
                     <regex>/system/modules/de.mymodule.extranet/resources/.*</regex>
                </resourcestorender>
          </rendersettings>
     </staticexport>
…
In OpenCms several folders have set the export property to true and the exportname property to the name of the folder (there are no duplicates).

There is a scheduled task in OpenCms which does a „full static render“ every evening. This worked perfectly for years. Customer said, that there where no changes on the system OpenCms is running on.

The problem:
From one day to the other not all contents are statically exported.  We watched some folders. Some folders are complete, some only contain two files of lets say about 45 files in the VFS. After every export there are two other files in the folder. They seem to be randomly created.
The log throws a 404 for all not exported files.
We checked all configuration files and property settings in the VFS of the folder but could not find any hint on the problem.
The weird thing is, when I request a file in the online project from my browser (a file which had a 404 error after the full static export) it is correctly rendered and written to the export folder. So „on demand static export“ is working correctly.

Last thing to say is, that we have a kind of mirrored system, which has the same settings. Everything works perfect here.
The only difference:
The contents of that system are not the same. As the working system is an integration environment, the contents are older.
So we assume, that the problem must be in the content. As we have thousands of files, finding the one which is the problem seems to be impossible.

So any hint is highly appreciated.

Thanks a lot in advance.

Best regards
Kai

_______________________________________________
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/cgi-bin/mailman/listinfo/opencms-dev<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opencms.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopencms-dev&data=02%7C01%7C%7Cf03713dbd5a24759f45b08d71f333fd3%7C9e4eb25883584a33b3e9b734c884fc4b%7C0%7C0%7C637012177291284504&sdata=Or8jyIBkfj2YiqsKadk8gjxpSJD57MyKUewa88B0%2Bew%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20190812/75bd3cdb/attachment.htm>


More information about the opencms-dev mailing list