not able to install juju with snap install juju --classic command

Bug #1756895 reported by naveen kumar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Undecided
Unassigned
Snapcraft
Invalid
Undecided
Unassigned
snapd
Invalid
Undecided
Unassigned

Bug Description

not able to install juju with snap install juju --classic ommand.

getting error as :

root@juju:~# snap install juju --classic
error: cannot install "juju": cannot get nonce from store: Post
       https://api.snapcraft.io/api/v1/snaps/auth/nonces: net/http: request canceled while waiting
       for connection (Client.Timeout exceeded while awaiting headers)

and snap version:
root@juju:~# snap version
snap 2.29.4.2
snapd 2.29.4.2
series 16
ubuntu 16.04
kernel 4.13.0-37-generic
root@juju:~#

root@juju:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
root@juju:~#

root@juju:~# curl -v https://api.snapcraft.io/api/v1/snaps/auth/nonces: net/http:
* Trying 91.189.92.20...
* Connected to api.snapcraft.io (91.189.92.20) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 597 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: api.snapcraft.io (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: C=GB,ST=London,L=London,O=Canonical Group Ltd,OU=IS,CN=api.snapcraft.io
* start date: Thu, 08 Jun 2017 00:00:00 GMT
* expire date: Wed, 13 Jun 2018 12:00:00 GMT
* issuer: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
* compression: NULL
* ALPN, server did not agree to a protocol
> GET /api/v1/snaps/auth/nonces: HTTP/1.1
> Host: api.snapcraft.io
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 404 NOT FOUND
< Server: gunicorn/19.7.1
< Date: Mon, 19 Mar 2018 13:07:25 GMT
< Content-Type: text/html
< Content-Length: 233
< X-VCS-Revision: 64861f3
< X-Request-Id: 11eb8cbf-50b4-42e2-a965-4874cde7df8c
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
* Connection #0 to host api.snapcraft.io left intact
* Could not resolve host: net
* Closing connection 1
curl: (6) Could not resolve host: net

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1756895] [NEW] not able to install juju with snap install juju --classic command
Download full text (3.2 KiB)

that appears to be more a bug in 'snap' than specifically in juju. Can you
install anything else via snap? This looks like either a proxy/firewall
blocking snap craft or a temporary failure in the service.

On Mon, Mar 19, 2018 at 6:33 PM, naveen kumar <email address hidden>
wrote:

> Public bug reported:
>
> not able to install juju with snap install juju --classic ommand.
>
> getting error as :
>
> root@juju:~# snap install juju --classic
> error: cannot install "juju": cannot get nonce from store: Post
> https://api.snapcraft.io/api/v1/snaps/auth/nonces: net/http:
> request canceled while waiting
> for connection (Client.Timeout exceeded while awaiting headers)
>
> and snap version:
> root@juju:~# snap version
> snap 2.29.4.2
> snapd 2.29.4.2
> series 16
> ubuntu 16.04
> kernel 4.13.0-37-generic
> root@juju:~#
>
>
> root@juju:~# lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.4 LTS
> Release: 16.04
> Codename: xenial
> root@juju:~#
>
>
> root@juju:~# curl -v https://api.snapcraft.io/api/v1/snaps/auth/nonces:
> net/http:
> * Trying 91.189.92.20...
> * Connected to api.snapcraft.io (91.189.92.20) port 443 (#0)
> * found 148 certificates in /etc/ssl/certs/ca-certificates.crt
> * found 597 certificates in /etc/ssl/certs
> * ALPN, offering http/1.1
> * SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
> * server certificate verification OK
> * server certificate status verification SKIPPED
> * common name: api.snapcraft.io (matched)
> * server certificate expiration date OK
> * server certificate activation date OK
> * certificate public key: RSA
> * certificate version: #3
> * subject: C=GB,ST=London,L=London,O=Canonical Group Ltd,OU=IS,CN=
> api.snapcraft.io
> * start date: Thu, 08 Jun 2017 00:00:00 GMT
> * expire date: Wed, 13 Jun 2018 12:00:00 GMT
> * issuer: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
> * compression: NULL
> * ALPN, server did not agree to a protocol
> > GET /api/v1/snaps/auth/nonces: HTTP/1.1
> > Host: api.snapcraft.io
> > User-Agent: curl/7.47.0
> > Accept: */*
> >
> < HTTP/1.1 404 NOT FOUND
> < Server: gunicorn/19.7.1
> < Date: Mon, 19 Mar 2018 13:07:25 GMT
> < Content-Type: text/html
> < Content-Length: 233
> < X-VCS-Revision: 64861f3
> < X-Request-Id: 11eb8cbf-50b4-42e2-a965-4874cde7df8c
> <
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> <title>404 Not Found</title>
> <h1>Not Found</h1>
> <p>The requested URL was not found on the server. If you entered the URL
> manually please check your spelling and try again.</p>
> * Connection #0 to host api.snapcraft.io left intact
> * Could not resolve host: net
> * Closing connection 1
> curl: (6) Could not resolve host: net
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1756895
>
> Title:
> not able to install juju with snap install juju --classic command
>
> To manage notifications about th...

Read more...

Revision history for this message
naveen kumar (navn1209) wrote :

i was installed in ubuntu vm which is on ubuntu machine,its working fine.

but when i am trying to install on windows with ubuntu vm,i am not able to do.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1756895] Re: not able to install juju with snap install juju --classic command

there is no snap installer on windows, though there is a setup.exe style
installer.

Such as
https://launchpad.net/juju/2.3/2.3.4/+download/juju-setup-2.3.4-signed.exe

All downloads are available here:
https://launchpad.net/juju/+download

John
=:->

On Mar 19, 2018 22:11, "naveen kumar" <email address hidden> wrote:

> i was installed in ubuntu vm which is on ubuntu machine,its working
> fine.
>
> but when i am trying to install on windows with ubuntu vm,i am not able
> to do.
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1756895
>
> Title:
> not able to install juju with snap install juju --classic command
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1756895/+subscriptions
>

Revision history for this message
naveen kumar (navn1209) wrote :

it's not windows machine,on windows machine I was created Ubuntu vm.

Revision history for this message
naveen kumar (navn1209) wrote :

and I am also not able to install any package with snap....

Revision history for this message
John A Meinel (jameinel) wrote :

I don't think this is a bug in Juju as much as it is an issue with you being able to install from snaps. If you want, we also publish our stable releases in a ppa:
https://launchpad.net/~juju/+archive/ubuntu/stable

Changed in juju:
status: New → Incomplete
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This doesn't seem to be related to the snapcraft tool itself, but the runtime, snapd (if at all)

Changed in snapcraft:
status: New → Invalid
Revision history for this message
Paweł Stołowski (stolowski) wrote :

This looks like a temporary issue with the store, we have observed similiar error a couple of times in the past when the store had issues. No issue installing juju snap right now. Closing.

Changed in snapd:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.