Issue 126264 - Remote socket port not open
Summary: Remote socket port not open
Status: UNCONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 4.1.1
Hardware: PC Linux, all
: P5 (lowest) Major
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-23 10:49 UTC by schorschlan
Modified: 2015-04-26 18:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description schorschlan 2015-04-23 10:49:34 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");
Comment 2 schorschlan 2015-04-26 18:49:44 UTC
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.