Cannot install snap apps from store

Madper Xie madper.xie at canonical.com
Fri Dec 9 12:33:39 UTC 2016


Hi Xiaoguo,

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.


   - sudo systemctl edit snapd; #adding following configure:

[Service]
Environment=http_proxy=http://host:port

   - sudo systemctl restart snapd
   - 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.
   - Put following configuration into /etc/polipo/config

`````

logSyslog = true
logFile = /var/log/polipo/polipo.log
proxyAddress = "0.0.0.0"
proxyPort = 8118
socksParentProxy = "127.0.0.1:1080"     # please modify this line as needed.
socksProxyType = socks5
```````

On Fri, Dec 9, 2016 at 7:46 PM, Shuduo Sang <shuduo.sang at canonical.com>
wrote:

> 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.
>
> On Fri, Dec 9, 2016 at 3:54 PM, XiaoGuo Liu <xiaoguo.liu at canonical.com>
> wrote:
>
>> 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.
>>
>> On Fri, Dec 9, 2016 at 3:46 PM, Manik Taneja <manik.taneja at canonical.com>
>> wrote:
>>
>>>
>>>
>>> On Dec 8, 2016, at 11:13 PM, Michael Nelson <
>>> michael.nelson at canonical.com> wrote:
>>>
>>> On Fri, Dec 9, 2016 at 5:39 PM Manik Taneja <manik.taneja at canonical.com>
>>> wrote:
>>>
>>>> On Dec 8, 2016, at 8:21 PM, Oliver Ries <oliver.ries at canonical.com>
>>>> wrote:
>>>>
>>>> Hi
>>>>
>>>> On Thu, Dec 8, 2016 at 6:31 PM, XiaoGuo Liu <xiaoguo.liu at canonical.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> 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:
>>>>
>>>> liuxg at ubuntu:~$ sudo snap install tensorflow-demo --devmode --beta
>>>> error: cannot install "tensorflow-demo": Get
>>>> https://search.apps.ubuntu.com/api/v1/snaps/details/tensorfl
>>>> ow-demo?channel=beta: net/http: request canceled while waiting for
>>>> connection (Client.Timeout exceeded while awaiting headers)
>>>> liuxg at ubuntu:~$ sudo snap install tensorflow-demo --devmode --beta
>>>> error: cannot install "tensorflow-demo": Get
>>>> https://search.apps.ubuntu.com/api/v1/snaps/details/tensorfl
>>>> ow-demo?channel=beta: net/http: request canceled while waiting for
>>>> connection (Client.Timeout exceeded while awaiting headers)
>>>>
>>>> This has been usually because of CDN issues afaik. The store team
>>>> should able to confirm shortly.
>>>>
>>>
>>> In this case, it's an issue just with the initial connection from the
>>> client to search.apps.ubuntu.com, before following any CDN url to
>>> download the snap. I also tried to reproduce around 40mins after XiaoGuo
>>> and couldn't.
>>>
>>> After trying to reproduce, I checked the apache logs for
>>> search.apps.ubuntu.com and saw that during that time it only ever saw
>>> requests which resulted in 200 replies:
>>>
>>> http://paste.ubuntu.com/23602216/
>>>
>>> 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
>>> search.apps.ubuntu.com for some network-related reason, but I'm keen
>>> for someone else on the store team to check the networking and logs.
>>>
>>> We have seen this before intermittently, so please if you see a client
>>> timeout as above, add your data to:
>>>
>>> https://bugs.launchpad.net/click-package-index/+bug/1639981
>>>
>>> and we'll keep digging.
>>>
>>> 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..
>>>
>>>
>>> Thanks!
>>> -Michael
>>>
>>>
>>>> Can you check status.snapcraft.io to see any outages around the date
>>>> you experienced this?
>>>>
>>>>
>>>> I just did a quick test on my classic Ubuntu (AMD64) and was able to
>>>> download & install the snap just fine.
>>>>
>>>>
>>>> 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?
>>>>
>>>>
>>>> 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.
>>>>
>>>> let us know the id and the team will be looking at that asap.
>>>>
>>>> thx,
>>>> Olli
>>>>
>>>> --
>>>> Snapcraft mailing list
>>>> Snapcraft at lists.snapcraft.io
>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>>> an/listinfo/snapcraft
>>>>
>>>> --
>>>> Snapcraft mailing list
>>>> Snapcraft at lists.snapcraft.io
>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>>> an/listinfo/snapcraft
>>>>
>>> --
>>> Snapcraft mailing list
>>> Snapcraft at lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/snapcraft
>>>
>>>
>>> --
>>> Snapcraft mailing list
>>> Snapcraft at lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/snapcraft
>>>
>>>
>>
>>
>> --
>> XiaoGuo, Liu
>>
>> --
>> Snapcraft mailing list
>> Snapcraft at lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161209/e24fb3ee/attachment.html>


More information about the Snapcraft mailing list