Apache OpenOffice (AOO) Bugzilla – Issue 93031
Setting UserInstallation prevents binding the socket
Last modified: 2014-02-11 14:17:39 UTC
I have started soffice with the following command-line: > soffice -headless -norestore "-accept=socket,host=0,port=22222;urp;" -env:UserInstallation=file:///tmp/tt /tmp/tt is an existing directory. The process starts and waits, but a client gets "Connection refused", which leads me to think the socket isn't bound in soffice. When I leave out the UserInstallation option the client can connect. With the UserInstallation directory set to /tmp/tt I see the "user" subdirectory is created with everything in it, but there is no ".lock" file, which would be the case with the default user directory. PS: I see no point in locking when soffice is in headless mode.
I have compared what is inside the generated "user" directory and a normal "user" directory. The difference that matters is the file "registry/data/org/openoffice/Setup.xcu". More specifically, when the field "FirstStartWizardCompleted" is absent or set to "false" and the "LicenseAcceptDate" absent it doesn't work and otherwise it does. I understand those fields are set when you first run soffice and that the headless mode is not able to pop up the required dialogs to do it.
Framework issue.
@ sg: can you please have a look?
We are trying to run multiple OO instances that bind to different ports . 'soffice' Command when run with -env:UserInstallation option throws "NoConnectException". However, without the above option, the 'soffice' process is launched successfully. Environment details: 1. Windows 2003 Server SP2 R2. 2. Open Office Version 3.2 3. Folder is not on Network Drive 4. Write Permissions are available 5. Port is free 6. Soffice Command used: C:\Program Files\OpenOffice.org 3\program\soffice.bin -headless -nocrashreport -norestore -nofirststartwizard -accept=socket,host=1xx.1xx.1xx.1xx,port=8118;urp; -env:UserInstallation=file:///c:/tmp/oo8118 Note: IP is given accurately but masked here.