Archivos mensuales: agosto 2016

Watching your Libreoffice process for Alfresco transformations

A usual question of final users is that their Office files are not being previsualized in Alfresco. This may be for some reasons like:
 1. The office file is corrupted
 2. The office mimetype is not set correctly
 3. The office file is too big
 4. The Libreoffice process is not responding
In the last case, you will see that new MS-Office and Office documents are not being previsualized (any of them). In that cases, the first thing you should do is to check the Libreoffice process, by default in 8100 port:
  ps aux | grep soffice
If this process does not exist, or it seems to have problems, the manual solution is to restart Libreoffice just with a simply:
  $ALF_HOME/ start libreoffice
Sometimes it is necessary to kill the pid of the Libreoffice process, previously.
But there are better alternatives for the Alfresco admin. The first one is based on a nice plugin and a quartz job:
where you can define the corresponding cronjob in
contentreich.officeWatchDog.cronExpression=0 */10 * * * ?
Another simple solution is script in the crontab:
#! /bin/bash
# m h  dom mon dow   command
#0,15,30,45 * * * * /opt/alfresco/bin/
if [[ -z `/bin/pidof ".soffice.bin"` ]]
  $ALF_EXE start libreoffice
  echo "$ALF_DATE" >> $ALF_LOG
The log will help you to track if you have many problems with Alfresco transformations and OODirect subsystem. If this happens, consider to have memory enough for the soffice process.
You can also use the next script for reference for starting Libreoffice:
And finally, in Enterprise Edition (although in this case, it is tracked via Jodconverter subsystem) you can also restart the Libreoffice subsystem via JMX, or to set multiple instances to jodconverter via Admin Console.
NOTE: In Alfresco 5.1.e you need to change to the correct location of libreoffice script (assuming an installation with the linux installer and including libreoffice). Anyway you can always run:
zylk@alf5:/opt/alfresco51e/libreoffice/scripts$ sh start : libreoffice started at port 8100
In change:
Also the script needs to remove the slashes. Check this:
NOTE II: In Ubuntu you may also need:
sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2 libxinerama1 libglu1-mesa
Entrada publicada en Sin categoría | Comentarios cerrados

My top Alfresco Addons

Recently we upgraded to Alfresco 201602GA (5.1.e CE) with all their new capabilities such as smart folders, new admin console or model manager. But once you installed Alfresco CE (or EE), you always need some extra Community power. This is a selection of our favourites for our Alfresco installations.
1. Javascript Console: Simply fantastic, essential plugin for administrators and developers in Alfresco installations. 
Also execute script addon in Share extras is quite useful in 5.x version , but it needs some changes for make it work in recent versions
2. Alfresco Site Creators: I do not remember a recent Alfresco Installation without this customization. Must have!
3. Alfresco Site Space Templates: The missing templates for Alfresco Sites.
4. Libreoffice Edit Online: No applet based, simple as webdav based edition hyperlink for protocol registering.
5. Uploader Plus: How many times does a client ask you for filling metadata before uploading the document ? 
6. Alfresco List Manager: Dynamic Lists administration for your Alfresco Share forms and content models. A simple way for avoiding redeploying constraint lists in content models continuously. It is very useful, when these data is not completely static, for example a list of clients.
7. Alfresco Bulk Import v.2.0: Enhanced Bulk Import Tool for (not inplace?) content migrations.
8. Trashcan Cleaner: Do no forget to take out the thrash.
9. PDF Toolkit: Useful PDF actions for content rules split, merge and many more.  
10. Alfresco Audit Analysis and Reporting: The BI reference project for Alfresco Suite.
For Alfresco 4.x users Audit Share is a very very nice addon -->
11. Alfresco Groovy Runner: Nice console for accesing Alfresco Java API. Well documented, with many examples.
12. Alfresco version by name: Very nice customization for the default behaviour when uploading documents in Share. 
Other admin basics for EE users are:
1. Support Tools for Enterprise Edition: A "must" have for every Alfresco Enterprise installation.
A JMX console like JMX term is quite useful -->
2. Alfresco Nagios Plugin: A very useful check_jmx plugin for Alfresco (more adequate for Enterprise Editions) although basic ports monitoring and checks are also valid for Community Edition. 
More links:
Entrada publicada en Sin categoría | Comentarios cerrados