<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Socket permission issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692192#M530745</link>
    <description>Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;System HP IA 11.31&lt;BR /&gt;I am currently trying to run a process on a itanium box and get an error message as follow:&lt;BR /&gt;&lt;BR /&gt;connect to /tmp/SocketStream.23451 failed error=Connection refused&lt;BR /&gt;&lt;BR /&gt;The file is created under /tmp with a size of 0, as well permissions sounds ok (srwxsrwxsrwx) and owner is the user the process was run with.&lt;BR /&gt;&lt;BR /&gt;In the ipcs the process appears with a "no-entry" for the D-TIME field. &lt;BR /&gt;&lt;BR /&gt;Any help is welcome&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Jerome&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Sep 2010 08:32:21 GMT</pubDate>
    <dc:creator>Jerome C</dc:creator>
    <dc:date>2010-09-28T08:32:21Z</dc:date>
    <item>
      <title>Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692192#M530745</link>
      <description>Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;System HP IA 11.31&lt;BR /&gt;I am currently trying to run a process on a itanium box and get an error message as follow:&lt;BR /&gt;&lt;BR /&gt;connect to /tmp/SocketStream.23451 failed error=Connection refused&lt;BR /&gt;&lt;BR /&gt;The file is created under /tmp with a size of 0, as well permissions sounds ok (srwxsrwxsrwx) and owner is the user the process was run with.&lt;BR /&gt;&lt;BR /&gt;In the ipcs the process appears with a "no-entry" for the D-TIME field. &lt;BR /&gt;&lt;BR /&gt;Any help is welcome&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Jerome&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 08:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692192#M530745</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-28T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692193#M530746</link>
      <description>usually just means that server side socket is not listening.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 13:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692193#M530746</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-28T13:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692194#M530747</link>
      <description>Thanks Laurent,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Definitely, problem is that the command i run should open the socket. &lt;BR /&gt;&lt;BR /&gt;:(&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Jerome</description>
      <pubDate>Tue, 28 Sep 2010 14:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692194#M530747</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-28T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692195#M530748</link>
      <description>you need to find out server side socket owner process if you don't know it( with lsof for instance) - or may be it is process pid 23451&lt;BR /&gt;then tusc it to check it is well configured as a AF_UNIX/SOCK_STREAM and that bind() and listen() have been called on that socket.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692195#M530748</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-28T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692196#M530749</link>
      <description>you can also try a netstat -an |grep SocketStream.23451</description>
      <pubDate>Tue, 28 Sep 2010 14:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692196#M530749</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-28T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692197#M530750</link>
      <description>Thanks Laurent for precious informations.&lt;BR /&gt;&lt;BR /&gt;FYI, i restarted process and bind to 9008.&lt;BR /&gt;I have been issuing the command you sent and can see the socket as follow in the netstat -an output:&lt;BR /&gt;&lt;BR /&gt;e00000040f04e100 stream      0      0 e000000374c80380                0                0                0 /tmp/SocketStream.9008&lt;BR /&gt;e00000040f04e400 stream     90      0                0 e00000036ed09b80                0                0 /tmp/SocketStream.9008&lt;BR /&gt;&lt;BR /&gt;I am also able to connect using "telnet localhost 9008" also using IP adress of server.&lt;BR /&gt;&lt;BR /&gt;I have not access to tusc or lsof on this machine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Jerome&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 15:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692197#M530750</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-28T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692198#M530751</link>
      <description>telnet uses AF_INET socket and not AF_UNIX socket&lt;BR /&gt;so your telnet localhost 9008 connect to a socekt bound on AF_INET and not that /tmp/SockStream.9008&lt;BR /&gt;&lt;BR /&gt;without lsof or tusc you won't make much progress.</description>
      <pubDate>Tue, 28 Sep 2010 15:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692198#M530751</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-28T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692199#M530752</link>
      <description>Hi Laurent,&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;Last lines of lsof are giving the following, user1 is the user i spawn process with and Program1 is the name of the process ran:&lt;BR /&gt;Program1  4163 user1    4u   REG         64,0x30003    40960  65889 /oracle/product/11.1.0/db_1/rdbms/mesg/diaus.msb&lt;BR /&gt;Program1  4163 user1    5u   REG         64,0x30003    25600  65970 /oracle/product/11.1.0/db_1/rdbms/mesg/ocius.msb&lt;BR /&gt;Program1  4163 user1    6u  IPv6 0xe0000003763d2380      0t0    UDP [::1]:56386 (Idle)&lt;BR /&gt;Program1  4163 user1    7u  IPv4 0xe00000036cb19d00   0t6034    TCP Machine1:50538-&amp;gt;Machine1:1530 (ESTABLISHED)&lt;BR /&gt;Program1  4163 user1    8u  IPv4 0xe0000003aed35a00      0t0    TCP *:* (IDLE)&lt;BR /&gt;Program1  4163 user1    9u   REG         64,0x10001      608  90505 /usr/app/Program1/Program1ent.4163.10092916&lt;BR /&gt;Program1  4163 user1   10u  IPv4 0xe000000376386380      0t0    TCP *:9008 (LISTEN)&lt;BR /&gt;Program1  4163 user1   11u  unix             64,0x4      0t0    947 /tmp/SocketStream.9008 (0x6c85a980)&lt;BR /&gt;Program1  4163 user1   12u  unix         0x682c4380     0t90        -&amp;gt;0xeb92d400&lt;BR /&gt;&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;JÃ©rÃ´me&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2010 14:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692199#M530752</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-29T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692200#M530753</link>
      <description>Are you using RBAC/containment?&lt;BR /&gt;are you sure of your program which tries to connect using AF_UNIX sockets?-&lt;BR /&gt;if you have  tusc,&lt;BR /&gt;use "tusc -v -E" of your program to understand what can happen to your socket.&lt;BR /&gt;&lt;BR /&gt;If it is not an application you will probably need to contact HP support.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2010 15:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692200#M530753</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-29T15:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692201#M530754</link>
      <description>Hi Laurent,&lt;BR /&gt;&lt;BR /&gt;i ran tusc and get the following segment:&lt;BR /&gt;&lt;BR /&gt;                            st_dev: 64 0x000003&lt;BR /&gt;                            st_ino: 1872&lt;BR /&gt;                           st_mode: S_IFREG|0444&lt;BR /&gt;                          st_nlink: 1&lt;BR /&gt;                           st_rdev: 0 0x000000&lt;BR /&gt;                           st_size: 8&lt;BR /&gt;                        st_blksize: 8192&lt;BR /&gt;                         st_blocks: 8&lt;BR /&gt;                            st_uid: 2&lt;BR /&gt;                            st_gid: 2&lt;BR /&gt;                          st_atime: Thu Sep 30 09:31:04 2010&lt;BR /&gt;                          st_mtime: Mon Aug 23 13:53:40 2010&lt;BR /&gt;                          st_ctime: Mon Aug 23 13:53:40 2010&lt;BR /&gt;read(10, 0x6000000000192f50, 8) .................................................................. [entry]&lt;BR /&gt;read(10, "G M T 0 B S T \n", 8) .................................................................. = 8&lt;BR /&gt;close(10) ........................................................................................ [entry]&lt;BR /&gt;close(10) ........................................................................................ = 0&lt;BR /&gt;open(0x600000000002abe0, O_WRONLY|O_APPEND|O_CREAT, 0666) ........................................ [entry]&lt;BR /&gt;open("./DConfigAgent.29605.10093009", O_WRONLY|O_APPEND|O_CREAT|0x800, 0666) ..................... = 10&lt;BR /&gt;write(10, 0x600000000029e410, 143) ............................................................... [entry]&lt;BR /&gt;write(10, "| 2 0 1 0 - 0 9 - 3 0 T 0 9 : 3 ".., 143) ............................................. = 143&lt;BR /&gt;brk(0x60000000002c0000) .......................................................................... [entry]&lt;BR /&gt;brk(0x60000000002c0000) .......................................................................... = 0&lt;BR /&gt;utssys(0x9fffffffbf7df4f0, 49, 5) ................................................................ [entry]&lt;BR /&gt;utssys(0x9fffffffbf7df4f0, 49, 5) ................................................................ = 0&lt;BR /&gt;                               arg: "Machine1"&lt;BR /&gt;socket(AF_UNIX, SOCK_STREAM, 0) .................................................................. [entry]&lt;BR /&gt;socket(AF_UNIX, SOCK_STREAM, 0) .................................................................. = 11&lt;BR /&gt;connect(11, 0x9fffffffffffd400, 94) .............................................................. [entry]&lt;BR /&gt;                        sin_family: AF_UNIX&lt;BR /&gt;                          sun_path: /tmp/SocketStream.9008&lt;BR /&gt;connect(11, 0x9fffffffffffd400, 94) .............................................................. ERR#239 ECONNREFUSED&lt;BR /&gt;                        sin_family: AF_UNIX&lt;BR /&gt;                          sun_path: /tmp/SocketStream.9008&lt;BR /&gt;close(11) ........................................................................................ [entry]&lt;BR /&gt;close(11) ........................................................................................ = 0&lt;BR /&gt;gettimeofday(0x9fffffffffffd1b0, NULL) ........................................................... [entry]&lt;BR /&gt;gettimeofday(0x9fffffffffffd1b0, NULL) ........................................................... = 0&lt;BR /&gt;open(0xc00000000025b560, O_RDONLY, 045000) ....................................................... [entry]&lt;BR /&gt;open("/etc/default/tz", O_RDONLY|0x800, 045000) .................................................. = 11&lt;BR /&gt;fstat(11, 0x9fffffffffffce50) .................................................................... [entry]&lt;BR /&gt;fstat(11, 0x9fffffffffffce50) .................................................................... = 0&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Jerome&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692201#M530754</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-30T07:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692202#M530755</link>
      <description>your program looks ok, so things need to be look on server side,&lt;BR /&gt;- tusc from start is probably difficult&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also is it the first time you start your program that it fails or is it after some time?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You would probably gain some time contacting hp support. - some internal private tools can give informations about listening socket status.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2010 08:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692202#M530755</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-30T08:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692203#M530756</link>
      <description>in fact it can happen also if the listen queue of the server process is full,  or if the server called shutdown() over the listening socket.</description>
      <pubDate>Thu, 30 Sep 2010 09:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692203#M530756</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-30T09:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692204#M530757</link>
      <description>Thanks Laurent,&lt;BR /&gt;&lt;BR /&gt;there is a part of the tusc as follow, can the unlik be the cause?&lt;BR /&gt;&lt;BR /&gt;[12900] socket(AF_INET, SOCK_STREAM, 0) ............................................................................................................................................. = 11&lt;BR /&gt;&lt;BR /&gt;[12900] setsockopt(11, SOL_SOCKET, SO_REUSEADDR, 0x9fffffffffffe3b0, 4) ............................................................................................................. = 0&lt;BR /&gt;&lt;BR /&gt;                           *optval: 0x1&lt;BR /&gt;&lt;BR /&gt;[12900] sigvector(SIGPIPE, 0x9fffffffffffe390, 0x9fffffffffffe3a0) .................................................................................................................. = 0&lt;BR /&gt;&lt;BR /&gt;                    vec.sv_handler: SIG_IGN&lt;BR /&gt;&lt;BR /&gt;                       vec.sv_mask: EMPTY SET&lt;BR /&gt;&lt;BR /&gt;                      vec.sv_flags: SV_RESETHAND&lt;BR /&gt;&lt;BR /&gt;                   ovec.sv_handler: SIG_IGN&lt;BR /&gt;&lt;BR /&gt;                      ovec.sv_mask: SIGHUP|SIGINT|SIGQUIT|SIGTRAP|SIGEMT|SIGPIPE|SIGALRM|SIGTERM|SIGUSR1|SIGCLD|SIGPWR|SIGVTALRM|SIGPROF|SIGIO|SIGWINCH|SIGTSTP|SIGCONT|SIGTTIN|SIGTTOU|SIGURG|SIGLOST|_SIGDIL&lt;BR /&gt;&lt;BR /&gt;                     ovec.sv_flags: 0&lt;BR /&gt;&lt;BR /&gt;[12900] bind(11, 0x9fffffffffffe3d0, 16) ............................................................................................................................................ = 0&lt;BR /&gt;&lt;BR /&gt;                        sin_family: AF_INET&lt;BR /&gt;&lt;BR /&gt;                          sin_port: 9008&lt;BR /&gt;&lt;BR /&gt;                   sin_addr.s_addr: 0.0.0.0&lt;BR /&gt;&lt;BR /&gt;[12900] fcntl(11, F_GETFD, 0) ....................................................................................................................................................... = 0&lt;BR /&gt;&lt;BR /&gt;[12900] fcntl(11, F_SETFD, 1) ....................................................................................................................................................... = 0&lt;BR /&gt;&lt;BR /&gt;[12900] fcntl(11, F_GETFL, 0) ....................................................................................................................................................... = 2&lt;BR /&gt;&lt;BR /&gt;[12900] fcntl(11, F_SETFL, 65538) ................................................................................................................................................... = 0&lt;BR /&gt;&lt;BR /&gt;[12900] listen(11, 100) ............................................................................................................................................................. = 0&lt;BR /&gt;&lt;BR /&gt;[12900] socket(AF_UNIX, SOCK_STREAM, 0) ............................................................................................................................................. = 12&lt;BR /&gt;&lt;BR /&gt;[12900] setsockopt(12, SOL_SOCKET, SO_REUSEADDR, 0x9fffffffffffe374, 4) ............................................................................................................. = 0&lt;BR /&gt;&lt;BR /&gt;                           *optval: 0x1&lt;BR /&gt;&lt;BR /&gt;[12900] sigvector(SIGPIPE, 0x9fffffffffffe350, 0x9fffffffffffe360) .................................................................................................................. = 0&lt;BR /&gt;&lt;BR /&gt;                    vec.sv_handler: SIG_IGN&lt;BR /&gt;&lt;BR /&gt;                       vec.sv_mask: EMPTY SET&lt;BR /&gt;&lt;BR /&gt;                      vec.sv_flags: SV_RESETHAND&lt;BR /&gt;&lt;BR /&gt;                   ovec.sv_handler: SIG_IGN&lt;BR /&gt;&lt;BR /&gt;                      ovec.sv_mask: EMPTY SET&lt;BR /&gt;&lt;BR /&gt;                     ovec.sv_flags: SV_RESETHAND&lt;BR /&gt;&lt;BR /&gt;[12900] unlink("/tmp/SocketStream.9008") ............................................................................................................................................ = 0&lt;BR /&gt;&lt;BR /&gt;[12900] bind(12, 0x9fffffffffffe390, 94) ............................................................................................................................................ = 0&lt;BR /&gt;&lt;BR /&gt;                        sin_family: AF_UNIX&lt;BR /&gt;&lt;BR /&gt;                          sun_path: /tmp/SocketStream.9008&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;J.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2010 10:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692204#M530757</guid>
      <dc:creator>Jerome C</dc:creator>
      <dc:date>2010-09-30T10:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692205#M530758</link>
      <description>no the unlink() is there to remove any remaining socket fil before binding and recreate the socket file - else bind would fail&lt;BR /&gt;&lt;BR /&gt;in fact you need to look for syscalls call on fd=12&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2010 10:22:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692205#M530758</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-09-30T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Socket permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692206#M530759</link>
      <description>Finally how did it end up ? Did you find the solution?</description>
      <pubDate>Wed, 06 Oct 2010 04:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-permission-issue/m-p/4692206#M530759</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-10-06T04:27:47Z</dc:date>
    </item>
  </channel>
</rss>

