server blocked when using distcc

View: New views
7 Messages — Rating Filter:   Alert me  

server blocked when using distcc

by JCX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I compile code using distcc in two eight core machines. In the server
machine, i use the command "distccd --daemon --allow 10.1.4.0/22" and
see the distccd process when i use "ps -ax | grep distccd". In the
host machine, i set the environment variable DISTCC_HOSTS="localhost/8
pek-office/8". However, when i use the "distccmon-text 2" to see the
compile process, i got the result:

 22723  Connect     pngpread.c                     pek-office[0]
 22747  Connect     pngrio.c                         pek-office[1]
 22763  Connect     pngrutil.c                        pek-office[2]
  4304  Compile     RenderTableSection.cpp   localhost[0]
 27914  Compile     pvmf_protocol_engine_common.cp                localhost[1]
  4291  Compile     RenderTableRow.cpp        localhost[2]

 22723  Blocked     pngpread.c                     pek-office[0]
 22763  Blocked     pngrutil.c                        pek-office[2]

It seems all the files are compiled on localhost. pek-office server is
in either "connect" or "blocked" status.

So, can someone explain what could be happening here? What can i do to
sort this problem out?

Thanks for your help.
Caixia
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by mbp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/8/20 JCX <jcx721@...>:

> Hi all,
>
> I compile code using distcc in two eight core machines. In the server
> machine, i use the command "distccd --daemon --allow 10.1.4.0/22" and
> see the distccd process when i use "ps -ax | grep distccd". In the
> host machine, i set the environment variable DISTCC_HOSTS="localhost/8
> pek-office/8". However, when i use the "distccmon-text 2" to see the
> compile process, i got the result:
>
>  22723  Connect     pngpread.c                     pek-office[0]
>  22747  Connect     pngrio.c                         pek-office[1]
>  22763  Connect     pngrutil.c                        pek-office[2]
>  4304  Compile     RenderTableSection.cpp   localhost[0]
>  27914  Compile     pvmf_protocol_engine_common.cp                localhost[1]
>  4291  Compile     RenderTableRow.cpp        localhost[2]
>
>  22723  Blocked     pngpread.c                     pek-office[0]
>  22763  Blocked     pngrutil.c                        pek-office[2]
>
> It seems all the files are compiled on localhost. pek-office server is
> in either "connect" or "blocked" status.
>
> So, can someone explain what could be happening here? What can i do to
> sort this problem out?

Have a look in the server's log file.
--
Martin <http://launchpad.net/~mbp/>
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by JCX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I use the command "distccd --log-file /tmp/distccd.log --daemon
--allow 10.1.4.0/22". And the distccd.log is:

distccd[26703] (dcc_setup_daemon_path) daemon's PATH is
/opt/trango/gnu-gcc_4.1.1_codesourcery-arm-2006q3-linux/bin:/build/toolchain/lin32/perforce-r09.1/:/build/trees/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
distccd[26703] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
Address already in use
distccd[26703] (dcc_exit) exit: code 102; self: 0.000000 user 0.000000
sys; children: 0.000000 user 0.000000 sys
distccd[26706] (dcc_setup_daemon_path) daemon's PATH is
/opt/trango/gnu-gcc_4.1.1_codesourcery-arm-2006q3-linux/bin:/build/toolchain/lin32/perforce-r09.1/:/build/trees/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
distccd[26706] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
Address already in use
distccd[26706] (dcc_exit) exit: code 102; self: 0.000000 user 0.000000
sys; children: 0.000000 user 0.000000 sys
distccd[26707] (dcc_setup_daemon_path) daemon's PATH is
/opt/trango/gnu-gcc_4.1.1_codesourcery-arm-2006q3-linux/bin:/build/toolchain/lin32/perforce-r09.1/:/build/trees/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
distccd[26707] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
Address already in use
distccd[26707] (dcc_exit) exit: code 102; self: 0.000000 user 0.000000
sys; children: 0.000000 user 0.000000 sys

I don't know why this error happens. Can you give me some suggestions?

Thanks,
Caixia


2009/8/20 Martin Pool <mbp@...>:

> 2009/8/20 JCX <jcx721@...>:
>> Hi all,
>>
>> I compile code using distcc in two eight core machines. In the server
>> machine, i use the command "distccd --daemon --allow 10.1.4.0/22" and
>> see the distccd process when i use "ps -ax | grep distccd". In the
>> host machine, i set the environment variable DISTCC_HOSTS="localhost/8
>> pek-office/8". However, when i use the "distccmon-text 2" to see the
>> compile process, i got the result:
>>
>>  22723  Connect     pngpread.c                     pek-office[0]
>>  22747  Connect     pngrio.c                         pek-office[1]
>>  22763  Connect     pngrutil.c                        pek-office[2]
>>  4304  Compile     RenderTableSection.cpp   localhost[0]
>>  27914  Compile     pvmf_protocol_engine_common.cp                localhost[1]
>>  4291  Compile     RenderTableRow.cpp        localhost[2]
>>
>>  22723  Blocked     pngpread.c                     pek-office[0]
>>  22763  Blocked     pngrutil.c                        pek-office[2]
>>
>> It seems all the files are compiled on localhost. pek-office server is
>> in either "connect" or "blocked" status.
>>
>> So, can someone explain what could be happening here? What can i do to
>> sort this problem out?
>
> Have a look in the server's log file.
> --
> Martin <http://launchpad.net/~mbp/>
>
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by Martin Pool-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/8/20 JCX <jcx721@...>:
> distccd[26706] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
> Address already in use
>
> I don't know why this error happens. Can you give me some suggestions?

Because the address is already in use. :-)

Use 'netstat -tlp' to see what process is listening on that port.
Maybe inetd is also trying to serve distcc?

--
Martin <http://launchpad.net/~mbp/>
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by Fergus Henderson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 20, 2009 at 1:30 AM, Martin Pool <mbp@...> wrote:
2009/8/20 JCX <jcx721@...>:
> distccd[26706] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
> Address already in use
>
> I don't know why this error happens. Can you give me some suggestions?

Because the address is already in use. :-)

Use 'netstat -tlp' to see what process is listening on that port.
Maybe inetd is also trying to serve distcc?

Or maybe you have another distccd server running (perhaps stopped).
Try "killall -9 distccd".
 
--
Fergus Henderson <fergus@...>

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by JCX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your help.

I use "netstat -tlp" command. The following is the result:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address      Foreign Address   State
PID/Program name
tcp        0      0           *:41990                 *:*
       LISTEN      -
tcp        0      0           *:sunrpc                *:*
       LISTEN      5569/portmap
tcp        0      0           localhost:ipp           *:*
      LISTEN      13521/cupsd
tcp        0      0           *:35323                 *:*
       LISTEN      5584/rpc.statd
tcp6       0      0          [::]:distcc               [::]:*
        LISTEN      7854/distccd
tcp6       0      0          [::]:ssh                  [::]:*
        LISTEN      6264/sshd


I don't know which process is listening to the same port. What's more,
I use "killall -9 distccd" and then "distccd --log-file
/tmp/distccd.log --daemon
--allow 10.1.4.0/22" command. However, the server is still blocked.

Do you have any suggestions?

Thanks very much,
Caixia

2009/8/20 Fergus Henderson <fergus@...>:

> On Thu, Aug 20, 2009 at 1:30 AM, Martin Pool <mbp@...> wrote:
>>
>> 2009/8/20 JCX <jcx721@...>:
>> > distccd[26706] (dcc_listen_by_addr) ERROR: bind of :::3632 failed:
>> > Address already in use
>> >
>> > I don't know why this error happens. Can you give me some suggestions?
>>
>> Because the address is already in use. :-)
>>
>> Use 'netstat -tlp' to see what process is listening on that port.
>> Maybe inetd is also trying to serve distcc?
>
> Or maybe you have another distccd server running (perhaps stopped).
> Try "killall -9 distccd".
>
> --
> Fergus Henderson <fergus@...>
>
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: server blocked when using distcc

by Fergus Henderson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Aug 20, 2009 at 2:13 AM, JCX <jcx721@...> wrote:
Thanks for your help.

I use "netstat -tlp" command. The following is the result:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address      Foreign Address   State
PID/Program name
tcp        0      0           *:41990                 *:*
      LISTEN      -
tcp        0      0           *:sunrpc                *:*
      LISTEN      5569/portmap
tcp        0      0           localhost:ipp           *:*
     LISTEN      13521/cupsd
tcp        0      0           *:35323                 *:*
      LISTEN      5584/rpc.statd
tcp6       0      0          [::]:distcc               [::]:*
       LISTEN      7854/distccd

I'm guessing that means that process number 7854 ("distccd") is the one using the "distcc" port (port 3623).

That process may be running as root, or as the "distcc" user, in which case you would need to use "sudo killall distccd" or "sudo kill 7854" to kill it.  (Try again with "-9" if that doesn't work.)
--
Fergus Henderson <fergus@...>

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc