Re: Latest distcc on github, can not connect to distccd

Martin Pool <[email protected]> Sun, 5 Jul 2015 15:01:20 +0930
Newsgroups gmane.comp.compilers.distcc
Message-ID <CAA9uavD24pbFL5-VD17U_AjiaYVHGzwuqhFE7NQzzBrvxGWSqA@mail.gmail.com>
--===============5184324819152687902==
Content-Type: multipart/alternative; boundary=001a11c30a8e18367a051a1a1b43

--001a11c30a8e18367a051a1a1b43
Content-Type: text/plain; charset=UTF-8

Try to connect with

  nc -v  192.168.1.3 3632

On Sat, Jul 4, 2015 at 4:23 PM, chenyu <[email protected]> wrote:

> Hi, all
> I've got two machine of linux,  A is fedora 21, B is ubuntu 14.04. After
> make install distcc on these two machines, I set both A and B as distccd
> server,
>
> A : ip=192.168.1.3
> distccd --daemon --user nobody --allow 192.168.0.0/16 --listen=192.168.1.3
> export DISTCC_POTENTIAL_HOSTS='192.168.1.3 192.168.1.2'
> export DISTCC_HOSTS='192.168.1.3 192.168.1.2'
>
> and  B:  ip=192.168.1.2
> distccd --daemon --user nobody --allow 192.168.0.0/16 --listen=192.168.1.2
> export DISTCC_POTENTIAL_HOSTS='192.168.1.2 192.168.1.3'
> export DISTCC_HOSTS='192.168.1.2 192.168.1.3'
>
>  it seems that, B can not connect to A,  here's the log on B with
> DISTCC_VERBOSE=1:
>
> distcc[29402] (dcc_note_state) note state 2, file "exec_domain.c", host
> "192.168.1.3"
> distcc[29402] (dcc_connect_by_addr) started connecting to 192.168.1.3:3632
> distcc[29402] (dcc_select_for_write) select for write on fd5
> distcc[29402] ERROR: nonblocking connect to 192.168.1.3:3632 failed: No
> route to host
> distcc[29402] (dcc_unlock) release lock fd4
> distcc[29402] (dcc_mark_timefile) mark
> /home/acpi/.distcc/lock/backoff_tcp_192.168.1.3_3632_0
> distcc[29402] (dcc_unlock) release lock fd3
> distcc[29402] Warning: failed to distribute kernel/exec_domain.c to
> 192.168.1.3, running locally instead
> distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_0 is
> busy
> distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_1 is
> busy
>
>
> and the port of distcc on A is opened:
> $ netstat -nlp | grep distcc
> tcp        0      0 192.168.1.3:3632        0.0.0.0:*
>  LISTEN      5099/distccd
>
> $ ping 192.168.1.3
> PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
> 64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.449 ms
> 64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.335 ms
> 64 bytes from 192.168.1.3: icmp_seq=3 ttl=64 time=0.390 ms
>
> $ route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     *               255.255.255.0   U     1      0        0
> eth2
>
> Can anyone please give me some advice on why this happened.
> Thanks
>
> Yu
> __
> distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/distcc
>



-- 
Martin

--001a11c30a8e18367a051a1a1b43
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Try to connect with=C2=A0<div><br></div><div>=C2=A0 nc -v=
=C2=A0<span style=3D"font-size:12.8000001907349px">=C2=A0</span><span style=
=3D"font-size:12.8000001907349px">192.168.1.3 3632</span></div></div><div c=
lass=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Jul 4, 2015 at =
4:23 PM, chenyu <span dir=3D"ltr">&lt;<a href=3D"mailto:yu.chen.surf@gmail.=
com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex">Hi, all<br>
I&#39;ve got two machine of linux,=C2=A0 A is fedora 21, B is ubuntu 14.04.=
 After<br>
make install distcc on these two machines, I set both A and B as distccd se=
rver,<br>
<br>
A : ip=3D192.168.1.3<br>
distccd --daemon --user nobody --allow <a href=3D"http://192.168.0.0/16" re=
l=3D"noreferrer" target=3D"_blank">192.168.0.0/16</a> --listen=3D192.168.1.=
3<br>
export DISTCC_POTENTIAL_HOSTS=3D&#39;192.168.1.3 192.168.1.2&#39;<br>
export DISTCC_HOSTS=3D&#39;192.168.1.3 192.168.1.2&#39;<br>
<br>
and=C2=A0 B:=C2=A0 ip=3D192.168.1.2<br>
distccd --daemon --user nobody --allow <a href=3D"http://192.168.0.0/16" re=
l=3D"noreferrer" target=3D"_blank">192.168.0.0/16</a> --listen=3D192.168.1.=
2<br>
export DISTCC_POTENTIAL_HOSTS=3D&#39;192.168.1.2 192.168.1.3&#39;<br>
export DISTCC_HOSTS=3D&#39;192.168.1.2 192.168.1.3&#39;<br>
<br>
=C2=A0it seems that, B can not connect to A,=C2=A0 here&#39;s the log on B =
with DISTCC_VERBOSE=3D1:<br>
<br>
distcc[29402] (dcc_note_state) note state 2, file &quot;exec_domain.c&quot;=
, host &quot;192.168.1.3&quot;<br>
distcc[29402] (dcc_connect_by_addr) started connecting to <a href=3D"http:/=
/192.168.1.3:3632" rel=3D"noreferrer" target=3D"_blank">192.168.1.3:3632</a=
><br>
distcc[29402] (dcc_select_for_write) select for write on fd5<br>
distcc[29402] ERROR: nonblocking connect to <a href=3D"http://192.168.1.3:3=
632" rel=3D"noreferrer" target=3D"_blank">192.168.1.3:3632</a> failed: No r=
oute to host<br>
distcc[29402] (dcc_unlock) release lock fd4<br>
distcc[29402] (dcc_mark_timefile) mark /home/acpi/.distcc/lock/backoff_tcp_=
192.168.1.3_3632_0<br>
distcc[29402] (dcc_unlock) release lock fd3<br>
distcc[29402] Warning: failed to distribute kernel/exec_domain.c to 192.168=
.1.3, running locally instead<br>
distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_0 is bu=
sy<br>
distcc[29402] (dcc_lock_host) /home/acpi/.distcc/lock/cpu_localhost_1 is bu=
sy<br>
<br>
<br>
and the port of distcc on A is opened:<br>
$ netstat -nlp | grep distcc<br>
tcp=C2=A0 =C2=A0 =C2=A0 =C2=A0 0=C2=A0 =C2=A0 =C2=A0 0 <a href=3D"http://19=
2.168.1.3:3632" rel=3D"noreferrer" target=3D"_blank">192.168.1.3:3632</a>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 0.0.0.0:*=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0LISTEN=C2=A0 =C2=A0 =C2=A0 5099/distccd<br>
<br>
$ ping 192.168.1.3<br>
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.<br>
64 bytes from <a href=3D"http://192.168.1.3" rel=3D"noreferrer" target=3D"_=
blank">192.168.1.3</a>: icmp_seq=3D1 ttl=3D64 time=3D0.449 ms<br>
64 bytes from <a href=3D"http://192.168.1.3" rel=3D"noreferrer" target=3D"_=
blank">192.168.1.3</a>: icmp_seq=3D2 ttl=3D64 time=3D0.335 ms<br>
64 bytes from <a href=3D"http://192.168.1.3" rel=3D"noreferrer" target=3D"_=
blank">192.168.1.3</a>: icmp_seq=3D3 ttl=3D64 time=3D0.390 ms<br>
<br>
$ route<br>
Kernel IP routing table<br>
Destination=C2=A0 =C2=A0 =C2=A0Gateway=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Gen=
mask=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Flags Metric Ref=C2=A0 =C2=A0 Use Ifa=
ce<br>
192.168.1.0=C2=A0 =C2=A0 =C2=A0*=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0255.255.255.0=C2=A0 =C2=A0U=C2=A0 =C2=A0 =C2=A01=C2=A0 =C2=A0 =
=C2=A0 0=C2=A0 =C2=A0 =C2=A0 =C2=A0 0 eth2<br>
<br>
Can anyone please give me some advice on why this happened.<br>
Thanks<br>
<br>
Yu<br>
__<br>
distcc mailing list=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"htt=
p://distcc.samba.org/" rel=3D"noreferrer" target=3D"_blank">http://distcc.s=
amba.org/</a><br>
To unsubscribe or change options:<br>
<a href=3D"https://lists.samba.org/mailman/listinfo/distcc" rel=3D"noreferr=
er" target=3D"_blank">https://lists.samba.org/mailman/listinfo/distcc</a><b=
r>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Martin<br></div>
</div>

--001a11c30a8e18367a051a1a1b43--

--===============5184324819152687902==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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