Conversion Service FAQ
Conversion Service FAQ
The OpenOffice.org library function "OOoConverter::OOoConnect" returned an error (Conv_ESERVICEMANAGER)
Error Log shows:
Event Type: Error Event Source: Fabasoft Components Event Category: Application Event ID: 0 Date: 08.04.2009 Time: 10:31:35 User: N/A Computer: VMFOLIO2008 Description: The OpenOffice.org library function "OOoConverter::OOoConnect" returned an error (Conv_ESERVICEMANAGER). Object: COO.200.100.1.2106876 Action: FSCTLH@1.1001:ExecuteConversion Library: FSCTLH81 Function: FSCTLHExecuteConversion Source: Fabasoft Components FSCTLH@1.1001 User: FABASOFT\websvc Process: 4400 (0x00001130) [W3WP] Thread: 4068 (0x00000FE4) Version: 8.1.6.23 System: Win2k3 5.02 Build 3790 Service Pack 2.00 Memory: 1396320/2142252/1629020 Event Type: Error Event Source: Fabasoft Components Event Category: Application Event ID: 0 Date: 08.04.2009 Time: 10:31:35 User: N/A Computer: VMFOLIO2008 Description: HTTP status code: 500 Internal Server Error Error description: The OpenOffice.org library function "OOoConverter::OOoConnect" returned an error (Conv_ESERVICEMANAGER). HRESULT: 0x80040214 Method: GET URL: /fsc/fscdav/CALL?ACTION=COO.1.1001.1.87351&OBJ=COO.200.100.1.2106876&ARG=COO.200.100.1.2106876&ARG2=odt&RES=ARG3&ARG4=0&dx=COO.1.1001.1.116800&ax=COO.1.1001.1.91492&cx=Z1R1xS9wrFDWnDkV&lx=COO.1.1.1.10&tz=2d120&cs=COO.1.1001.1.91460&fx=0&hx=00-50-56-18-04-83&NAME=/test.pdf Object: COO.200.100.1.12 Action: FSCVAPP@1.1001:ProcessWebDAVRequest Library: FSCDAVEXT81 Function: FSCDAVProcessRequest Source: Fabasoft Components FSCVAPP@1.1001 User: FABASOFT\administrator Process: 4400 (0x00001130) [W3WP] Thread: 6584 (0x000019B8) Version: 8.1.6.23 System: Win2k3 5.02 Build 3790 Service Pack 2.00 Memory: 1395764/2141940/1629028
possible Reason 1
Command line parameter localhost has been replaced by the fully qualified hostname
soffice -headless -accept=socket,host=vmfolio2008,port=8100;urp
Solution
Replace fully qualified hostname by localhost as described in Whitepaper "Installation of Fabasoft Components Services on .pdf"
soffice -headless -accept=socket,host=localhost,port=8100;urp
possible Reason 2
Configuration object FSCTLH@1.1001:StdOleAutomationHost has more OpenOffice.org ports defined in property "OpenOffice.org Instance Configuration" than the conversion server offers.
e.g. 8100, 8101 and 8102 defined in FSCTLH@1.1001:StdOleAutomationHost
but /etc/fabasoft/watcher.conf shows :
OOINSTANCES=1
1 OpenOffice Instance would mean only port 8100 would be listened.
Solution
According to the example above you have to set it up to 3 OpenOffice Instances starting with port 8100:
OOINSTANCES=3
Could not connect to OpenOffice.org instance
Error log shows:
Apr7 04:02:34 logger[30387]: starting DISPLAY=:99 LD_LIBRARY_PATH=/opt/openoffice.org2.4/program /opt/openoffice.org2.4/program/soffice -headless -norestore -invisible '-accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;' >& /dev/null & Apr7 04:02:40 logger[30449]: Could not connect to OpenOffice.org instance
Reason
Welcome wizard of OpenOffice appeared each time the watcher daemon has been started, though the wizard has been completed as user convuser_N! Found out by starting soffice without parameters as user convuser_N after restarting the watcher daemon. It seems to be a OpenOffice bug. Removing the profile folder of OpenOffice did not solve the problem.
Workaround
Adding parameter –nofirststartwizard in /etc/fabasoft/watcher.conf and restarting watcher daemon by executing /etc/init.d/watcherd restart
# WARNING: only change this if you know what you are doing! OOSTARTUP_PARAMETERS="-headless -nofirststartwizard -norestore -invisible \"'-accept=socket,host=\$OOHOST,port=\$OOPORT,tcpNoDelay=1;urp;'\""
OpenOffice.org Libraryfunction "OOoConverter::OOoConnect" returned an error (Conv_EINVALID)
ReportEvent: HTTP status code: 500 Internal Server Error
possible Reason 1
OpenOffice path not addet to PATH Variable.
Resolution Windows
- Add OpenOffice directory to PATH Variable.
PATH=;C:\Program Files\OpenOffice.org \program
Resolution Linux
vi /var/opt/fabasoft/instances/WebService_/env/LD_LIBRARY_PATH
In the file add the following paths: /usr/lib /lib /opt/openoffice.org/program
Example:
/opt/fabasoft/share/web/WebService_100/asp/content/bin:/opt/fabasoft/share/web/WebService_100/asp/content/bin/INSTALLDIR/Domain_1_1: /opt/fabasoft/share/web/WebService_100/asp/content/bin/INSTALLDIR/Domain_1_1001: /usr/lib/java/jre/lib/i386:/usr/lib/java/jre/lib/i386/client:/usr/lib:/lib:/opt/openoffice.org2.3/program
- Restart WebService
possible Reason 2
Invalid library ooostubhost in folder /opt/fabasoft/share/eval
dmesg
would show
ooostubhost[9040] trap divide error rip:f7ef320b rsp:ffcfde30 error:0 ooostubhost[9084] trap divide error rip:f7f8220b rsp:ffc37d70 error:0
Resolution Linux
Copy ooostubhost from Install-Kit ./Setup/ComponentsBase/ to /opt/fabasoft/share/eval Look for further libraries using:
find /opt/fabasoft/share -name "ooostubhost"
and replace it accordingly.
Afterwards restart the Conversion-Webservice.
possible Reason 3
/opt/fabasoft/share/eval/libooostub.so not in executable format.
[root@~]# ldd /opt/fabasoft/share/eval/libooostub.so ldd: warning: you do not have execution permission for `/opt/fabasoft/share/eval/libooostub.so' not a dynamic executable
Resolution Linux
chmod +x /opt/fabasoft/share/eval/libooostub.so
OpenOffice Conversion: Connection timed out
The reason might be that OpenOffice starts very slowly due to a name lookup of its own hostname. That leads to Health check timeout and a continuous restart of the OpenOfffice instance.
Resolution Linux
Edit /etc/hosts and add an entry for localhost and for the IP address of the machine:
127.0.0.1 localhost.localdomain localhost myconvserver.support.fabasoft.local
I would like to activate/deactivate UpdateFields
Beginning with version Fabasoft Folio 2009 Fall Release (9.2.5) it is possible to activate or deactivate the behavior of the conversion server according to update the DocProperties before printing or not.
Resolution
Component FSCCONV must be at least from build nr. 9.2.5.99
activate (default value)
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Fabasoft\FSCCONV@1.1001] "UpdateFieldsAtPrint"=dword:00000001
deactivate
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Fabasoft\FSCCONV@1.1001] "UpdateFieldsAtPrint"=dword:00000000
FSCTLH92.FSCTLHExecuteConversion (Access is denied)
possible Resolution 1
1. Stop Webservices
iisreset /stop
2. Delete INSTALLDIR
Windows Server 2008: C:\ProgramData\Fabasoft\INSTALLDIR
3. Start Webservices
iisreset /start
possible Resolution 2
Conversion Server Eventlog might show:
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {000209FF-0000-0000-C000-000000000046} to the user SUPPORT\conv_egov925 SID (S-1-5-21-800838583-923196457-1120335376-1804) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool
Check DCOM Configuration Settings
Hint: CLSID {000209FF-0000-0000-C000-000000000046} stands for Microsoft Winword with CLSID {00020906-0000-0000-C000-000000000046}
- Start dcomcnfg.exe (Start menu -> Run)
- Component Services -> Computers -> My Computer -> DCOM Config -> {00020906-0000-0000-C000-000000000046}
- Activate Launch Permission for Conversion service user
- Restart Conversion Server
possible Resolution 3
Check file permission for Conversion service user:
- C:\ProgramData\Fabasoft
- C:\Program Files\Fabasoft\Components\Web\1_CONV
- iisreset
Hint: Process Monitor (procmon) is your friend http://technet.microsoft.com/de-de/sysinternals/bb896645
General error when calling "FSCCNV.FSCCONVConvertWinword"
Possible Resolution 1
Check if 32-Bit Office Version is installed on your conversionserver
Tips for debugging
- Stop watcher daemon:
/etc/init.d/watcherd stop
- Disable xhost access control as root:
xhost +
- Change to user convuser_1:
su - convuser_1
- start OpenOffice:
soffice
If OpenOffice starts within 5 seconds everything's should be OK!