11-07-2025 02:47 AM
Hello,
I have a working Alfresco installation on a Devuan server. This installation ran fine and for a few days, some documents can no longer be viewed.
In alfresco's log (with debug flag), I only obtain :
2025-11-07 08:37:57,727 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-5] Startup of 'Search' subsystem, ID: [Search, managed, solr6] complete
2025-11-07 08:38:26,007 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-nio-8080-exec-3] Local transforms (transformers: 47 transforms: 4136 t-engines: 1 files: 1) are enabled
2025-11-07 08:38:26,008 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-3] Starting 'Transformers' subsystem, ID: [Transformers, default]
2025-11-07 08:38:26,027 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [http-nio-8080-exec-3] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
2025-11-07 08:38:33,194 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 jpg jpg Schema_Jeu_danche.jpg 218.2 KB Local:imagemagick
2025-11-07 08:38:33,195 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 startPage="0"
2025-11-07 08:38:33,195 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 resizeWidth="960"
2025-11-07 08:38:33,195 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 alphaRemove="true"
2025-11-07 08:38:33,195 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 autoOrient="true"
2025-11-07 08:38:33,196 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 endPage="0"
2025-11-07 08:38:33,196 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 resizeHeight="960"
2025-11-07 08:38:33,196 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 allowEnlargement="false"
2025-11-07 08:38:33,196 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 maintainAspectRatio="true"
2025-11-07 08:38:33,196 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 workspace://SpacesStore/193704f3-a0d7-413d-b704-f3a0d7013d13
2025-11-07 08:38:33,437 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-7-thread-1] 1 Finished in 242 ms
2025-11-07 08:38:33,742 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-2] Exception from executeScript: 10070001 Wrapped Exception (with status template): 10070038 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10070037 10070036 A rendition of name: {http://www.alfresco.org/model/content/1.0}imgpreview should have been created for source node: workspace://SpacesStore/193704f3-a0d7-413d-b704-f3a0d7013d13
org.springframework.extensions.webscripts.WebScriptException: 10070001 Wrapped Exception (with status template): 10070038 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10070037 10070036 A rendition of name: {http://www.alfresco.org/model/content/1.0}imgpreview should have been created for source node: workspace://SpacesStore/193704f3-a0d7-413d-b704-f3a0d7013d13
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1139) ~[spring-webscripts-9.4.jar:9.4]
at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:202) ~[alfresco-remote-api-23.4.0.67.jar:23.4.0.67]
at org.alfresco.repo.web.scripts.RepositoryContainer.lambda$transactionedExecute$2(RepositoryContainer.java:553) ~[alfresco-remote-api-23.4.0.67.jar:23.4.0.67]
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452) ~[alfresco-repository-23.4.0.67.jar:23.4.0.67]
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:544) ~[alfresco-remote-api-23.4.0.67.jar:23.4.0.67]
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:685) ~[alfresco-remote-api-23.4.0.67.jar:23.4.0.67]
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:721) ~[alfresco-remote-api-23.4.0.67.jar:23.4.0.67]I have tried to add a new file and thumbnail and review are generated without error. I don't understand why some previews are not available (but thumbnails were created).
How can I solve this issue ?
Regards,
JKB
11-08-2025 11:21 AM
Before all, What Alfresco version are you using? And ATS versión (if you are using)?
Have you seen preview of these documents with errors anytime and now It doesn't work or you never saw it?
Preview and thumbnail are diferent renditions of a node. First one is a pdf representarion of the content and the other is an imagen representation.
Maybe you pdf conversion for this documents simply does not work.
Could you try to execute this script with the ID of a node in which you can not see the preview and try to reload it?
var doc = search.findNode('<nodoref>');
var assocname = 'pdf';
var node = doc.childAssocs['rn:rendition'].filter(function(assoc){
return assoc.name == assocname;
})[0];
if(node){
logger.log(node.remove());
}
Regards
Roberto Gámiz Sánchez
Alfresco Content Services Engineer
11-10-2025 12:12 PM
Hello,
My installation uses :
- Alfresco Content Services Community: 23.4.0
- Alfresco Repository: 23.4.0.67
- Alfresco Share: 23.4.0.46
Transform-core is running :
Root rayleigh:[/opt] > ps auwx | grep transform-core
root 4967 0.0 0.0 5668 2752 ? S nov.02 0:00 su - tomcat -c nohup /usr/lib/jvm/java-17-openjdk-amd64/bin/java -DLIBREOFFICE_HOME=/usr/lib/libreoffice -jar /opt/alfresco-transform-core-aio-5.1.6.jar
tomcat 4971 0.1 3.6 10049844 603316 ? Ssl nov.02 14:13 /usr/lib/jvm/java-17-openjdk-amd64/bin/java -DLIBREOFFICE_HOME=/usr/lib/libreoffice -jar /opt/alfresco-transform-core-aio-5.1.6.jar
PDF rendering seems to run as expected. Image rendering has worked in the past. I have tried to import new image without trouble, only a few thumbnails are not created.
I have seen your script, but I don't what I have to do...
Best regards,
JB
11-12-2025 06:01 AM
Hi,
I misunderstood your problem. I think you could see documents thumbnail but not previews on some documents.
Most times when have found a behavior like yours the problem was in the generation ans store of doclib rendition. ¿Is there any error mensagge in the transformation log?
The script I shared is going to let you delete a rendition associated to a document so you can regenerate it to test if is a generation probelm. In the case of thumbnail images you have to change the line var assocname = 'pdf'; to var assocname = 'doclib';
You have several methods to execute the script within the repository. You can install JavaScripConsole Addon. This addon is now included and manteined in OOTBee Support Tools. If you can not or want not deploy the add on you can upload a js file to Data Dictionary > Scripts and then execute it using a rule associated to an temporal folder.
Regards
Roberto Gámiz Sánchez
Alfresco Content Services Engineer
11-12-2025 01:03 PM
Yes. I see thumbnails but not previews.
For example :
Second image runs as expected and I can see preview.
In log, I have an error:
2025-11-12T18:55:23,222 [] ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-10] Exception from executeScript: 10120001 Wrapped Exception (with status template): 10120038 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10120037 10120036 A rendition of name: {http://www.alfresco.org/model/content/1.0}imgpreview should have been created for source node: workspace://SpacesStore/193704f3-a0d7-413d-b704-f3a0d7013d13
org.springframework.extensions.webscripts.WebScriptException: 10120001 Wrapped Exception (with status template): 10120038 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10120037 10120036 A rendition of name: {http://www.alfresco.org/model/content/1.0}imgpreview should have been created for source node: workspace://SpacesStore/193704f3-a0d7-413d-b704-f3a0d7013d13
Best regards,
JB
11-14-2025 05:55 AM - edited 11-14-2025 06:29 AM
Hello,
These errors comes from alfresco repository logs, isnt it? There is no error on the transformation log that you can see?
In case you want to use the script I send you to delete asociated rendition to the content you need to use "var assocname = 'imgpreview'" as you are previewing image files not documents.
Regards
REgards
Roberto Gámiz Sánchez
Alfresco Content Services Engineer
Explore our Alfresco products with the links below. Use labels to filter content by product module.