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

Martin Pool <[email protected]> Tue, 7 Jul 2015 10:30:11 +1000
Newsgroups gmane.comp.compilers.distcc
Message-ID <CAA9uavCDb=CfLQym4uFELB3D7+EfW9q+TOJR+dcpE6NTCEGEWQ@mail.gmail.com>
--===============5357736861130124947==
Content-Type: multipart/alternative; boundary=047d7ba970d4c81543051a3e2140

--047d7ba970d4c81543051a3e2140
Content-Type: text/plain; charset=UTF-8

You probably have either a routing misconfiguration, or a firewall in the
middle.

On Tue, Jul 7, 2015 at 2:00 AM, chenyu <[email protected]> wrote:

> Hi,Martin,
> I can connect to itself localy(on 192.168.1.3,connect to 192.168.1.3)
> nc -v  192.168.1.3 3632
> Ncat: Version 6.45 ( http://nmap.org/ncat )
> Ncat: Connected to 192.168.1.3:3632.
>
> but can not get connected on 192.168.1.2, which complains of:
> nc -v  192.168.1.3 3632
> nc: connect to 192.168.1.3 port 3632 (tcp) failed: No route to host
>
>
> best regards,
> Yu
>
> 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
>



-- 
Martin

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

<div dir=3D"ltr">You probably have either a routing misconfiguration, or a =
firewall in the middle.</div><div class=3D"gmail_extra"><br><div class=3D"g=
mail_quote">On Tue, Jul 7, 2015 at 2:00 AM, chenyu <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">yu.chen.surf@gmai=
l.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,Martin,<br=
>
I can connect to itself localy(on 192.168.1.3,connect to 192.168.1.3)<br>
nc -v=C2=A0 192.168.1.3 3632<br>
Ncat: Version 6.45 ( <a href=3D"http://nmap.org/ncat" rel=3D"noreferrer" ta=
rget=3D"_blank">http://nmap.org/ncat</a> )<br>
Ncat: Connected to <a href=3D"http://192.168.1.3:3632" rel=3D"noreferrer" t=
arget=3D"_blank">192.168.1.3:3632</a>.<br>
<br>
but can not get connected on 192.168.1.2, which complains of:<br>
nc -v=C2=A0 192.168.1.3 3632<br>
nc: connect to 192.168.1.3 port 3632 (tcp) failed: No route to host<br>
<br>
<br>
best regards,<br>
Yu<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
Try to connect with<br>
<br>
=C2=A0 nc -v=C2=A0 192.168.1.3 3632<br>
<br>
On Sat, Jul 4, 2015 at 4:23 PM, chenyu &lt;<a href=3D"mailto:yu.chen.surf@g=
mail.com">[email protected]</a>&gt; wrote:<br>
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>
<br>
<br>
<br>
--<br>
Martin</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-=
- <br><div class=3D"gmail_signature">Martin<br></div>
</div>

--047d7ba970d4c81543051a3e2140--

--===============5357736861130124947==
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
--===============5357736861130124947==--