Apache OpenOffice (AOO) Bugzilla – Issue 126264
Remote socket port not open
Last modified: 2015-04-26 18:49:44 UTC
I created 2 VM with Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. On both VM I installed OpenOffice 4.1.1. For the error message "no suitable windowing system found, exiting." I installed libxt6 and libxrender1. I start office with: soffice --headless --accept=socket,host,0,port=9000;urp; The process list show me that office is running root@ubuntu2:/home/user# ps -A | grep office 4179 pts/0 00:00:00 soffice 4189 pts/0 00:00:00 soffice.bin BUT the listen port 9000 is not open root@ubuntu2:/home/user# netstat -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:ssh *:* LISTEN tcp 0 0 ubuntu2.loc:ssh 192.168.2.25:64288 ESTABLISHED tcp 0 0 ubuntu2.loc:ssh 192.168.2.25:64441 ESTABLISHED tcp 0 0 ubuntu2.loc:ssh 192.168.2.25:64372 ESTABLISHED tcp6 0 0 [::]:ssh [::]:* LISTEN udp 0 0 *:bootpc *:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 9 [ ] DGRAM 8217 /dev/log unix 2 [ ACC ] STREAM LISTENING 7033 @/com/ubuntu/upstart unix 2 [ ACC ] SEQPACKET LISTENING 7231 /run/udev/control unix 2 [ ACC ] STREAM LISTENING 8331 /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 13093 /tmp/OSL_PIPE_0_SingleOfficeIPC_e78437b1da6df9694a5449f4fba8d20 My Java server can't create a connection over port 9000. XComponentContext xCC = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(null); XUnoUrlResolver urlResolver = UnoUrlResolver.create(xCC); Object initialObject = urlResolver.resolve("uno:socket,host=" + hostName + ",port=9000;urp;StarOffice.ServiceManager");
> soffice --headless --accept=socket,host,0,port=9000;urp; host=some_host as per https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Starting_OpenOffice.org_in_Listening_Mode https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Importing_a_UNO_Object https://www.openoffice.org/udk/common/man/spec/uno-url.html
Sorry, there was a typo in what I sent you. I meant host equals zero, which is the correct parameter. I have tried: soffice --headless --accept=socket,host=0,port=9000;urp; or soffice --headless --accept=socket,host=localhost,port=9000;urp; or soffice --headless --accept=socket,host=192.168.2.209,port=9000;urp; soffice -headless -accept=socket,host=0,port=9000;urp; or soffice -headless -accept=socket,host=localhost,port=9000;urp; or soffice -headless -accept=socket,host=192.168.2.209,port=9000;urp; ... Which is exactly what the wiki said to do. The Open Office process is running but "netstat -a" tells me the listen port is not open. As a side note, when I use libreoffice with the same parameters, on the same VM, the listen port opens... which leads me to believe that there's a bug in Open Office.