network unreachable for ppa.launchpad.net

Asked by milos

Hello,
I'm one of the developers on the Bitbucket pipelines where we provide CICD in the cloud for our customers. Recently we started seeing reports that connections to ubuntu.com and ppa.launchpad.net fail with 'network unreachable'. It's been on and off for a few days now. it appears to work sometimes and then it breaks again. There is no mention of incident on your side AFAIK. Is there specificly something you are doing to block our traffic?
example public IP address of our kubernetes is:curl ifconfig.co - > 52.202.195.162
example error:
Err:15 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-dev amd64 7.4.22-1+ubuntu20.04.1+deb.sury.org+1
  Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.85), connection timed out [IP: 91.189.95.85 80]
Err:16 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-curl amd64 7.4.22-1+ubuntu20.04.1+deb.sury.org+1
example traceroute
+ traceroute ppa.launchpad.net
traceroute to ppa.launchpad.net (91.189.95.85), 30 hops max, 60 byte packets
 1 ip-10-203-198-141.ec2.internal (10.203.198.141) 0.159 ms 0.120 ms 0.092 ms
 2 ip-10-203-141-118.ec2.internal (10.203.141.118) 0.257 ms 0.269 ms 0.197 ms
 3 216.182.230.247 (216.182.230.247) 2.804 ms 216.182.226.162 (216.182.226.162) 9.377 ms 216.182.239.129 (216.182.239.129) 1.578 ms
 4 100.65.65.224 (100.65.65.224) 4.880 ms 100.65.56.240 (100.65.56.240) 7.470 ms *
 5 100.66.10.22 (100.66.10.22) 5.564 ms 100.66.14.194 (100.66.14.194) 18.036 ms 100.66.24.200 (100.66.24.200) 5.123 ms
 6 100.66.6.123 (100.66.6.123) 15.119 ms 100.66.7.245 (100.66.7.245) 5.440 ms 100.66.27.154 (100.66.27.154) 3.033 ms
 7 * 100.66.7.117 (100.66.7.117) 20.278 ms 100.66.5.53 (100.66.5.53) 18.122 ms
 8 100.66.5.163 (100.66.5.163) 5.871 ms 100.65.13.81 (100.65.13.81) 1.126 ms 100.66.5.119 (100.66.5.119) 22.425 ms
 9 52.93.29.47 (52.93.2

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1939927.

Revision history for this message
Tom Reynolds (tomreyn) said :
#1

Launchpad maintainers have asked those reporting similar issues on IRC to re-report them to https://answers.launchpad.net/launchpad/+addquestion (which they monitor). I am converting this bug report (which is clearly not a software bug but a network issue affecting the Launchpad.net instance of the Launchpad software) into such a question - so you can just continue reporting here.

Revision history for this message
Tom Reynolds (tomreyn) said :
#2

Hi Milos,

I won't be able to handle this issue for you, but I'm loosely following discussions on IRC (libera.chat's #launchpad primarily) where others are reporting network connectivity issues/outages while accessing ppa.launchpad.net from Amazon AWS's us-east-1 region (which also seems to host some Bitbucket CI systems).

Those reporting similar issues have been asked to post the output of

  mtr --report -T -P 80 ppa.launchpad.net

running on an affected system. While you already provided a (normal) traceroute, the "mtr" output would provide some additional information which could support them in diagnosing this issue - if it is still ongoing.

Thanks!

Tom

Revision history for this message
milos (kleint) said :
#3

+ mtr --report -T -P 80 ppa.launchpad.net
Start: 2021-08-16T02:35:57+0000
HOST: 26001bd5-4d62-4dd6-a4f5-cdd Loss% Snt Last Avg Best Wrst StDev
  1.|-- ip-10-203-199-145.ec2.int 0.0% 10 0.3 0.3 0.3 0.5 0.1
  2.|-- ip-10-203-141-118.ec2.int 0.0% 10 0.5 0.5 0.3 0.7 0.1
  3.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  4.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  5.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  6.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  7.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  8.|-- 100.65.14.81 40.0% 10 1.2 1.6 1.1 3.7 1.0
  9.|-- 52.93.29.59 10.0% 10 12.7 3.1 1.3 12.7 3.6
 10.|-- 52.93.29.39 10.0% 10 1.4 3.5 1.4 17.2 5.1
 11.|-- ix-ae-14-0.tcore3.aeq-ash 50.0% 10 1.8 2.4 1.5 5.0 1.4
 12.|-- ix-ae-14-0.tcore3.aeq-ash 60.0% 10 2.1 2.1 1.7 2.5 0.3
 13.|-- if-be-55-2.ecore1.aeq-ash 10.0% 10 2.0 2.7 2.0 4.9 0.9
 14.|-- ae-1-3110.edge3.London1.L 0.0% 10 2.6 39.4 1.6 77.4 39.1
 15.|-- brd1-level3.ifl2.lateroom 0.0% 10 2.3 53.3 1.6 76.3 35.4
 16.|-- brd1-level3.ifl2.lateroom 0.0% 10 3110. 479.2 73.7 3110. 977.5
 17.|-- ganondorf.canonical.com 10.0% 10 3105. 403.1 2.0 3105. 1013.6

Revision history for this message
milos (kleint) said :
#4

commented on the irc channel too.

Revision history for this message
milos (kleint) said :
#5

+ mtr --report -T -P 80 ppa.launchpad.net
Start: 2021-08-17T01:45:24+0000
HOST: 19e936e1-5184-4250-bc82-3cc Loss% Snt Last Avg Best Wrst StDev
  1.|-- ip-10-203-203-46.ec2.inte 0.0% 10 0.3 0.4 0.3 0.4 0.1
  2.|-- ip-10-203-142-66.ec2.inte 0.0% 10 0.4 0.7 0.4 1.7 0.4
  3.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  4.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  5.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
  6.|-- 240.0.60.59 40.0% 10 1.4 1.5 1.4 1.9 0.2
  7.|-- 240.0.28.30 40.0% 10 1.5 1.5 1.4 1.7 0.1
  8.|-- 240.0.28.21 20.0% 10 1.4 2.4 1.4 7.8 2.2
  9.|-- 52.93.28.241 10.0% 10 1.7 2.4 1.5 6.4 1.6
 10.|-- 100.100.36.50 30.0% 10 1.8 2.7 1.6 7.7 2.2
 11.|-- ix-ae-14-0.tcore3.aeq-ash 40.0% 10 2.0 1.9 1.6 2.2 0.3
 12.|-- 241.0.4.128 0.0% 10 1.6 1.9 1.3 3.9 0.8
 13.|-- 63.243.136.13 0.0% 10 1.6 2.8 1.5 7.4 1.7
 14.|-- 242.0.146.33 0.0% 10 2.9 20.6 1.7 76.5 30.4
 15.|-- 52.93.28.203 0.0% 10 2.1 16.8 1.4 78.7 31.8
 16.|-- bond0.erlking.canonical.c 0.0% 10 1.6 66.9 1.6 75.2 22.9
 17.|-- ganondorf.canonical.com 0.0% 10 75.7 67.6 1.8 75.9 23.1

Revision history for this message
milos (kleint) said :
#6

I've not really got any word back on the IRC channel. Is there some other communication channel? or a list of questions/issues from other users?

Revision history for this message
TJ (tj) said :
#7

milos, have you tried lowering the Maximum Transmission Unit (MTU)? It could be a path MTU issue. If the originating interface XXXX currently has an MTU of 1500

# ip link show dev XXXX

To change it

# ip link set mtu 1420 dev XXXX

1420 is chosen as the 'best' compromise in the face of certain types of tunnel and potentially carrying IPv6 traffic. You can of course adjust that as you think fit. The idea is to ensure the packets aren't being dropped by a router on the link because they either:

1) Are too big for the next hop, are IPv4 and have the Do Not Fragment (DF) bit set

2) Are too big for the next hop, are IPv6 (which doesn't support fragmentation)

If this proves to be the case you can apply a netfilter/iptables rule on the egress interface of your network gateway (not necessarily the same host as the origin of the packets) to clamp the TCP Maximum Segment Size (MSS) to the path MTU for all packets and all routes.

On an egress host (gateway) that is not the origin of the packets (or is the origin and is routing (maybe for VMs or containers)) . Use the CMD 'iptables" for IPv4 and "ip6tables" for IPv6:

for CMD in iptables ip6tables; do

  $CMD -t mangle --insert FORWARD -i XXXX -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "reduce MTU automatically" -j TCPMSS --clamp-mss-to-pmtu
  $CMD -t mangle --insert FORWARD -o XXXX -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "reduce MTU automatically" -j TCPMSS --clamp-mss-to-pmtu

done

On an origin host that is also the egress and packets originate locally:

for CMD in iptables ip6tables; do

  $CMD -t mangle --insert INPUT -i XXXX -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "reduce MTU automatically" -j TCPMSS --clamp-mss-to-pmtu
$CMD -t mangle --insert OUTPUT -o XXXX -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "reduce MTU automatically" -j TCPMSS --clamp-mss-to-pmtu

done

Revision history for this message
Romain Couturat (romaincout) said :
#8

Hi, we are investigating what seems to be the same issue ( 216.182.230.247 is in aws us-east-1)

in https://rt.ubuntu.com/Ticket/Display.html?id=36786

Can you help with this problem?

Provide an answer of your own, or ask milos for more information if necessary.

To post a message you must log in.