OpenOffice connection lost periodically
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2011 05:49 PM
Does anyone else find that periodically, the OpenOffice connection is lost?
16:39:00,009 ERROR [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection has been lost.
I have changed tomcat/shared/classes/alfresco-global.properties to include ooo.enabled=true, and the ooo.exe path there is correct, but still I find that randomly, OpenOffice will just stop running, and while Alfresco notices this, it doesn't do anything about it. And then everyone's document uploads fail to produce thumbnails.
As a kludgy fix, I'm using a once-every-five-minutes cron job (*/5 * * * * /path/to/cronjob), which I'll share below in case it's useful to anyone, but does anyone have a more elegant solution?
I'm running 3.4.d on CentOS 5.5, x64, with the bundled OpenOffice.
(Obviously, change /opt/alfresco-3.4.d to the correct path for your system. The [n] prevents the grep statement from matching itself. )
Thanks!
16:39:00,009 ERROR [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection has been lost.
I have changed tomcat/shared/classes/alfresco-global.properties to include ooo.enabled=true, and the ooo.exe path there is correct, but still I find that randomly, OpenOffice will just stop running, and while Alfresco notices this, it doesn't do anything about it. And then everyone's document uploads fail to produce thumbnails.
As a kludgy fix, I'm using a once-every-five-minutes cron job (*/5 * * * * /path/to/cronjob), which I'll share below in case it's useful to anyone, but does anyone have a more elegant solution?
I'm running 3.4.d on CentOS 5.5, x64, with the bundled OpenOffice.
#!/bin/shrunning=`ps aux | grep "/opt/alfresco-3.4.d/openoffice/program/soffice.bi[n]" | wc -l`if [ $running != 0 ];then/usr/bin/logger "OpenOffice running at $(date +'%F %H:%M')"else/usr/bin/logger "OpenOffice restarted at $(date +'%F %H:%M')"/opt/alfresco-3.4.d/openoffice/scripts/openoffice_ctl.shfi
(Obviously, change /opt/alfresco-3.4.d to the correct path for your system. The [n] prevents the grep statement from matching itself. )
Thanks!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 09:37 AM
I've just started seeing this too. I was planning to use your script as a work-around, but found that the "/opt/alfresco-3.4.d/openoffice/scripts/openoffice_ctl.sh" script will actually only start openoffice if an instance isn't running, so instead I'm going to run the following directly in cron:
/opt/alfresco-3.4.d/openoffice/scripts/openoffice_ctl.sh start