<div dir="ltr"><div>Hi Xiaoguo,<br><br></div><div>I do believe that you have a good proxy. So just try to use your proxy when you reproduce the timeout issue again. So that we can know if Mainland China is the only affected area.<br><br><ul><li><span style="font-size:14.6667px;font-family:arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">sudo systemctl edit snapd; #adding following configure:<br></span></li></ul><div style="margin-left:80px">[Service]<br><span style="font-size:14.6667px;font-family:arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Environment=http_proxy=</span><a style="text-decoration:none"><span style="font-size:14.6667px;font-family:arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline">http://<wbr>host:port</span></a></div><ul><li>sudo systemctl restart snapd<br><span style="font-size:14.6667px;font-family:arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></li><li><span style="font-size:14.6667px;font-family:arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">If you do only have a socks proxy you can use polipoc as a bridge. Which will accept http input and redirect it to a socks interface.</span></li><li><span style="font-size:14.6667px;font-family:arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Put following configuration into /etc/polipo/config</span></li></ul><p style="margin-left:40px">`````</p><p style="margin-left:40px">logSyslog = true<br>logFile = /var/log/polipo/polipo.log<br>proxyAddress = "0.0.0.0"<br>proxyPort = 8118<br>socksParentProxy = "<a href="http://127.0.0.1:1080" target="_blank">127.0.0.1:1080</a>" # please modify this line as needed.<br>socksProxyType = socks5<br>```````<br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 9, 2016 at 7:46 PM, Shuduo Sang <span dir="ltr"><<a href="mailto:shuduo.sang@canonical.com" target="_blank">shuduo.sang@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure if there are CDN deployed in China to accelerate Ubuntu Core store. If there are, the issue need be resolved by CDN vendor. If there are not, please help to deploy some. Network issue really make Chinese developer and Ubuntu Core taster frustrated. </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 9, 2016 at 3:54 PM, XiaoGuo Liu <span dir="ltr"><<a href="mailto:xiaoguo.liu@canonical.com" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, at one time, it was consistent that it did not work at all no matter how many times I tried, and it was quite embarrassing during a training session. I thought it was network problem. After some time, it became OK.</div><div class="gmail_extra"><div><div class="m_7424844466883120455h5"><br><div class="gmail_quote">On Fri, Dec 9, 2016 at 3:46 PM, Manik Taneja <span dir="ltr"><<a href="mailto:manik.taneja@canonical.com" target="_blank">manik.taneja@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div></div><div><br></div><div><br>On Dec 8, 2016, at 11:13 PM, Michael Nelson <<a href="mailto:michael.nelson@canonical.com" target="_blank">michael.nelson@canonical.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Dec 9, 2016 at 5:39 PM Manik Taneja <<a href="mailto:manik.taneja@canonical.com" target="_blank">manik.taneja@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">On Dec 8, 2016, at 8:21 PM, Oliver Ries <<a href="mailto:oliver.ries@canonical.com" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">oliver.ries@canonical.com</a>> wrote:<br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><blockquote type="cite" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div dir="ltr" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Hi<div class="gmail_extra m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="gmail_quote m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">On Thu, Dec 8, 2016 at 6:31 PM, XiaoGuo Liu <span dir="ltr" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><<a href="mailto:xiaoguo.liu@canonical.com" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><blockquote class="gmail_quote m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Hi,<div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">I do not know how many of you have met the issue. When I try to install an app from the store, it comes me an error like:</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">liuxg@ubuntu:~$ sudo snap install tensorflow-demo --devmode --beta</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">error: cannot install "tensorflow-demo": Get <a href="https://search.apps.ubuntu.com/api/v1/snaps/details/tensorflow-demo?channel=beta" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">https://search.apps.ubuntu.com<wbr>/api/v1/snaps/details/tensorfl<wbr>ow-demo?channel=beta</a>: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">liuxg@ubuntu:~$ sudo snap install tensorflow-demo --devmode --beta</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">error: cannot install "tensorflow-demo": Get <a href="https://search.apps.ubuntu.com/api/v1/snaps/details/tensorflow-demo?channel=beta" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">https://search.apps.ubuntu.com<wbr>/api/v1/snaps/details/tensorfl<wbr>ow-demo?channel=beta</a>: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)</div></div></div></blockquote></div></div></div></div></blockquote></div><div dir="auto" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">This has been usually because of CDN issues afaik. The store team should able to confirm shortly.</div></blockquote><div><br></div><div>In this case, it's an issue just with the initial connection from the client to <a href="http://search.apps.ubuntu.com" target="_blank">search.apps.ubuntu.com</a>, before following any CDN url to download the snap. I also tried to reproduce around 40mins after XiaoGuo and couldn't.<br><br></div><div>After trying to reproduce, I checked the apache logs for <a href="http://search.apps.ubuntu.com" target="_blank">search.apps.ubuntu.com</a> and saw that during that time it only ever saw requests which resulted in 200 replies:<br><br><a href="http://paste.ubuntu.com/23602216/" target="_blank">http://paste.ubuntu.com/236022<wbr>16/</a><br><br>There were no relevant errors in the error log that I could see, nor does our monitoring show any high load at the time, so unless apache isn't logging timeouts, I suspect the requests weren't getting through to <a href="http://search.apps.ubuntu.com" target="_blank">search.apps.ubuntu.com</a> for some network-related reason, but I'm keen for someone else on the store team to check the networking and logs.<br><br></div><div>We have seen this before intermittently, so please if you see a client timeout as above, add your data to:<br><br><a href="https://bugs.launchpad.net/click-package-index/+bug/1639981" target="_blank">https://bugs.launchpad.net/cli<wbr>ck-package-index/+bug/1639981</a><br></div><div><br></div><div>and we'll keep digging.<br></div></div></div></div></blockquote></span>Just to add, I have seen this issue intermittently a few times before. Next time, I'll capture logs and add to the bug. Please list out all that you need captured..<span><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div><br></div><div>Thanks!<br></div><div>-Michael<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Can you check <a href="http://status.snapcraft.io" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">status.snapcraft.io</a> to see any outages around the date you experienced this?</div></div><div dir="auto" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><blockquote type="cite" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div dir="ltr" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="gmail_extra m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="gmail_quote m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">I just did a quick test on my classic Ubuntu (AMD64) and was able to download & install the snap just fine.</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"> </div><blockquote class="gmail_quote m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">In fact, I have met this this problem a number of times, and sometimes it works fine. Also, my colleague said to me that he gets the same issue sometimes. What is the root cause for this?</div></div></div></blockquote><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">it might be good to get this into a bug report with all relevant information (distribution, architecture, network setup (traceroute?) and a timestamp so server logs can be matched.</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">let us know the id and the team will be looking at that asap.</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">thx,</div><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Olli</div></div></div></div>
</div></blockquote><blockquote type="cite" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><div class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><span class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">-- </span><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><span class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Snapcraft mailing list</span><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><span class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><a href="mailto:Snapcraft@lists.snapcraft.io" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">Snapcraft@lists.snapcraft.io</a></span><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"><span class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a></span><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg"></div></blockquote></div></div>--<br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">
Snapcraft mailing list<br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">
<a href="mailto:Snapcraft@lists.snapcraft.io" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">Snapcraft@lists.snapcraft.io</a><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br class="m_7424844466883120455m_-7793749297005051936m_-7935162255982066388gmail_msg">
</blockquote></div></div>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>Snapcraft mailing list</span><br><span><a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a></span><br><span>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a></span><br></div></blockquote></span></div><br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><span class="m_7424844466883120455HOEnZb"><font color="#888888"><div class="m_7424844466883120455m_-7793749297005051936gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</font></span></div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div>
</div></div><br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div>