Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choco list / search / info - Some packages can't be found #1004

Closed
majkinetor opened this issue Oct 7, 2016 · 20 comments
Closed

choco list / search / info - Some packages can't be found #1004

majkinetor opened this issue Oct 7, 2016 · 20 comments

Comments

@majkinetor
Copy link

PS C:\Users\majkinetor> choco info git
Chocolatey v0.10.2
0 packages found.
PS C:\Users\majkinetor> choco list -e git
Chocolatey v0.10.2
0 packages found.

PS C:\Users\majkinetor> choco list -e git.install
Chocolatey v0.10.2
git.install 2.10.1 [Approved]
1 packages found.
PS C:\Users\majkinetor>
@ferventcoder
Copy link
Member

This looks like a dual issue, possibly more of an issue with chocolatey.org than it is with the client.

@ferventcoder
Copy link
Member

choco search git -e -lo

@ferventcoder
Copy link
Member

choco search git.install -e -lo

@gep13
Copy link
Member

gep13 commented Oct 7, 2016

@ferventcoder yip, works for me locally, a package is returned for each command, but not when running against chocolatey.org.

@ferventcoder
Copy link
Member

That tells me it's probably more of an issue in something on the community repository.

@miau
Copy link

miau commented Mar 31, 2017

I had the same problem and looked into it.

choco search git calls the URLs below and the second URL contains the entry of git package.

https://chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&$skip=0&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false
https://chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&$skip=30&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false
https://chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&$skip=60&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false
:

choco info git calls the URL below and there is no result.

https://chocolatey.org/api/v2/Search()?$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion&$orderby=Id&$skip=0&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false

Meanwhile, choco info git.install calls the URL below and it contians the expected result.

https://chocolatey.org/api/v2/Search()?$filter=(tolower(Id)%20eq%20'git.install')%20and%20IsLatestVersion&$orderby=Id&$skip=0&$top=30&searchTerm='git.install'&targetFramework=''&includePrerelease=false

It seems that there is an issue on chocolatey.org, but I think it will be better that choco info git calls the URL below.

https://chocolatey.org/api/v2/FindPackagesById()?$filter=IsLatestVersion&id='git'

@ferventcoder
Copy link
Member

That actually helps determine what the issue may be. I wonder why it doesn't attempt to collect the rest of the results though.

@majkinetor majkinetor changed the title Git package can't be found with clist and choco info Some packages can't be found with clist and choco info Apr 15, 2017
@majkinetor
Copy link
Author

This is serious issue IMO and deserves more attention.

Even chocolatey itself can't be found:

PS> choco info chocolatey
Chocolatey v0.10.5
0 packages found.

@majkinetor
Copy link
Author

majkinetor commented Apr 15, 2017

In the meantime, here is the --trace for git. It does this call:

/api/v2/Search()?$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion&$orderby=Id&$skip=0&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false HTTP/1.1

Complete output:

Chocolatey v0.10.5
System.Net Error: 0 : [8616] Can't retrieve proxy settings for Uri 'https://chocolatey.org/api/v2/'. Error code: 12180.
System.Net Information: 0 : [8616] Associating HttpWebRequest#2013564 with ServicePoint#28880957
System.Net Information: 0 : [8616] Associating Connection#58602024 with HttpWebRequest#2013564
System.Net.Sockets Information: 0 : [8616] Socket#57656175 - Created connection from 192.168.0.16:54764 to 104.20.73.28:443.
System.Net Information: 0 : [8616] Connection#58602024 - Created connection from 192.168.0.16:54764 to 104.20.73.28:443.
System.Net Information: 0 : [8616] TlsStream#39638585::.ctor(host=chocolatey.org, #certs=0)
System.Net Information: 0 : [8616] Associating HttpWebRequest#2013564 with ConnectStream#21202951
System.Net Information: 0 : [8616] HttpWebRequest#2013564 - Request: GET /api/v2/ HTTP/1.0

System.Net Information: 0 : [8616] ConnectStream#21202951 - Sending headers
{
User-Agent: NuGet/0.10.5.0 (Microsoft Windows NT 6.2.9200.0)
Host: chocolatey.org
}.
System.Net Information: 0 : [8616] SecureChannel#56608836::.ctor(hostname=chocolatey.org, #clientCertificates=0, encryptionPolicy=RequireEncryption)
System.Net Information: 0 : [8616] Enumerating security packages:
System.Net Information: 0 : [8616]     Negotiate
System.Net Information: 0 : [8616]     NegoExtender
System.Net Information: 0 : [8616]     Kerberos
System.Net Information: 0 : [8616]     NTLM
System.Net Information: 0 : [8616]     TSSSP
System.Net Information: 0 : [8616]     pku2u
System.Net Information: 0 : [8616]     CloudAP
System.Net Information: 0 : [8616]     WDigest
System.Net Information: 0 : [8616]     Schannel
System.Net Information: 0 : [8616]     Microsoft Unified Security Protocol Provider
System.Net Information: 0 : [8616]     Default TLS SSP
System.Net Information: 0 : [8616]     CREDSSP
System.Net Information: 0 : [8616] SecureChannel#56608836 - Left with 0 client certificates to choose from.
System.Net Information: 0 : [8616] AcquireCredentialsHandle(package = Microsoft Unified Security Protocol Provider, intent  = Outbound, scc     = System.Net.SecureCredential)
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = (null), targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffer length=0, Out-Buffer length=174, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=126, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bc00, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=OK).
System.Net Information: 0 : [8616] Remote certificate: [Version]
  V3

[Subject]
  CN=chocolatey.org, OU=Domain Control Validated
  Simple Name: chocolatey.org
  DNS Name: www.chocolatey.org

[Issuer]
  CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US
  Simple Name: Go Daddy Secure Certificate Authority - G2
  DNS Name: Go Daddy Secure Certificate Authority - G2

[Serial Number]
  4C72AD68B1FA4B25

[Not Before]
  23/04/2015 19:54:38

[Not After]
  25/04/2017 21:21:54

[Thumbprint]
  B28F3510AF96A9CB180B55F69B2B02AC16E1C140

[Signature Algorithm]
  sha256RSA(1.2.840.113549.1.1.11)

[Public Key]
  Algorithm: RSA
  Length: 2048
  Key Blob: 30 82 01 0a 02 82 01 01 00 b6 cb 87 fb 5a 66 db f1 1b eb bd 82 79 fd 18 5e d9 84 da 20 94 82 bb be 0b 1e ef 4f af 9f a4 c9 7d 9a d6 08 ac dd cc b7 b4 4f e0 98 40 af 0e 45 aa 07 f7 66 f6 90 64 8c 68 f8 3c 7a 0b 9c 42 50 94 71 38 a9 29 d4 c2 bf 2c 38 f0 5e 3b 2c ea 34 19 e5 b9 b6 a0 1e 97 a6 e4 4c 4c a0 ef 0f....
System.Net Information: 0 : [8616] SecureChannel#56608836 - Remote certificate was verified as valid by the user.
System.Net Information: 0 : [8616] ProcessAuthentication(Protocol=Tls12, Cipher=Aes128 128 bit strength, Hash=Sha256 0 bit strength, Key Exchange=44550 256 bit strength).
System.Net Information: 0 : [8616] Connection#58602024 - Received status line: Version=1.1, StatusCode=200, StatusDescription=OK.
System.Net Information: 0 : [8616] Connection#58602024 - Received headers
{
Connection: close
DataServiceVersion: 1.0;
CF-Cache-Status: HIT
CF-RAY: 34ff2fe53bfe7c8a-BEG
Content-Length: 397
Cache-Control: public, max-age=31536000
Content-Type: application/xml;charset=utf-8
Date: Sat, 15 Apr 2017 13:17:47 GMT
Expires: Sun, 15 Apr 2018 13:17:47 GMT
Set-Cookie: __cfduid=d2f4297d514897cdf0aee82e35dbe0f771492262267; expires=Sun, 15-Apr-18 13:17:47 GMT; path=/; domain=.chocolatey.org; HttpOnly
Server: cloudflare-nginx
}.
System.Net Information: 0 : [8616] ConnectStream#39717481::ConnectStream(Buffered 397 bytes.)
System.Net Information: 0 : [8616] Associating HttpWebRequest#2013564 with ConnectStream#39717481
System.Net Information: 0 : [8616] Associating HttpWebRequest#2013564 with HttpWebResponse#21913016
System.Net Information: 0 : [8616] Associating HttpWebRequest#62999416 with ServicePoint#28880957
System.Net Information: 0 : [8616] Associating Connection#30123835 with HttpWebRequest#62999416
System.Net.Sockets Information: 0 : [8616] Socket#2679067 - Created connection from 192.168.0.16:54765 to 104.20.73.28:443.
System.Net Information: 0 : [8616] Connection#30123835 - Created connection from 192.168.0.16:54765 to 104.20.73.28:443.
System.Net Information: 0 : [8616] TlsStream#15677883::.ctor(host=chocolatey.org, #certs=0)
System.Net Information: 0 : [8616] Associating HttpWebRequest#62999416 with ConnectStream#6883221
System.Net Information: 0 : [8616] HttpWebRequest#62999416 - Request: GET /api/v2/$metadata HTTP/1.0

System.Net Information: 0 : [8616] ConnectStream#6883221 - Sending headers
{
User-Agent: NuGet/0.10.5.0 (Microsoft Windows NT 6.2.9200.0)
Host: chocolatey.org
}.
System.Net Information: 0 : [8616] SecureChannel#61948991::.ctor(hostname=chocolatey.org, #clientCertificates=0, encryptionPolicy=RequireEncryption)
System.Net Information: 0 : [8616] SecureChannel#61948991 - Left with 0 client certificates to choose from.
System.Net Information: 0 : [8616] Using the cached credential handle.
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = (null), targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffer length=0, Out-Buffer length=174, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=126, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [8616] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05bae0, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [8616] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=OK).
System.Net Information: 0 : [8616] Remote certificate: [Version]
  V3

[Subject]
  CN=chocolatey.org, OU=Domain Control Validated
  Simple Name: chocolatey.org
  DNS Name: www.chocolatey.org

[Issuer]
  CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US
  Simple Name: Go Daddy Secure Certificate Authority - G2
  DNS Name: Go Daddy Secure Certificate Authority - G2

[Serial Number]
  4C72AD68B1FA4B25

[Not Before]
  23/04/2015 19:54:38

[Not After]
  25/04/2017 21:21:54

[Thumbprint]
  B28F3510AF96A9CB180B55F69B2B02AC16E1C140

[Signature Algorithm]
  sha256RSA(1.2.840.113549.1.1.11)

[Public Key]
  Algorithm: RSA
  Length: 2048
  Key Blob: 30 82 01 0a 02 82 01 01 00 b6 cb 87 fb 5a 66 db f1 1b eb bd 82 79 fd 18 5e d9 84 da 20 94 82 bb be 0b 1e ef 4f af 9f a4 c9 7d 9a d6 08 ac dd cc b7 b4 4f e0 98 40 af 0e 45 aa 07 f7 66 f6 90 64 8c 68 f8 3c 7a 0b 9c 42 50 94 71 38 a9 29 d4 c2 bf 2c 38 f0 5e 3b 2c ea 34 19 e5 b9 b6 a0 1e 97 a6 e4 4c 4c a0 ef 0f....
System.Net Information: 0 : [8616] SecureChannel#61948991 - Remote certificate was verified as valid by the user.
System.Net Information: 0 : [8616] ProcessAuthentication(Protocol=Tls12, Cipher=Aes128 128 bit strength, Hash=Sha256 0 bit strength, Key Exchange=44550 256 bit strength).
System.Net Information: 0 : [8616] Connection#30123835 - Received status line: Version=1.1, StatusCode=200, StatusDescription=OK.
System.Net Information: 0 : [8616] Connection#30123835 - Received headers
{
Connection: close
Vary: Accept-Encoding
DataServiceVersion: 2.0;
CF-Cache-Status: HIT
CF-RAY: 34ff2fe5e89e7c42-BEG
Cache-Control: public, max-age=86400
Content-Type: application/xml;charset=utf-8
Date: Sat, 15 Apr 2017 13:17:47 GMT
Expires: Sun, 16 Apr 2017 13:17:47 GMT
Set-Cookie: __cfduid=dfffbaf2784534f4169caf9bfa4d5b3571492262267; expires=Sun, 15-Apr-18 13:17:47 GMT; path=/; domain=.chocolatey.org; HttpOnly
Server: cloudflare-nginx
}.
System.Net Information: 0 : [8616] ConnectStream#20670010::ConnectStream(Buffered -1 bytes.)
System.Net Information: 0 : [8616] Associating HttpWebRequest#62999416 with ConnectStream#20670010
System.Net Information: 0 : [8616] Associating HttpWebRequest#62999416 with HttpWebResponse#51812368
System.Net Information: 0 : [8616] ContentLength=-1
System.Net Information: 0 : [9456] Associating HttpWebRequest#38468318 with ServicePoint#28880957
System.Net Information: 0 : [9456] Associating Connection#22183856 with HttpWebRequest#38468318
System.Net.Sockets Information: 0 : [9456] Socket#17725497 - Created connection from 192.168.0.16:54766 to 104.20.73.28:443.
System.Net Information: 0 : [9456] Connection#22183856 - Created connection from 192.168.0.16:54766 to 104.20.73.28:443.
System.Net Information: 0 : [9456] TlsStream#5473065::.ctor(host=chocolatey.org, #certs=0)
System.Net Information: 0 : [9456] Associating HttpWebRequest#38468318 with ConnectStream#2608907
System.Net Information: 0 : [9456] HttpWebRequest#38468318 - Request: GET /api/v2/Search()?$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion&$orderby=Id&$skip=0&$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false HTTP/1.1

System.Net Information: 0 : [9456] ConnectStream#2608907 - Sending headers
{
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 2.0;NetFx
User-Agent: Chocolatey Core
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8
Host: chocolatey.org
Accept-Encoding: gzip, deflate
}.
System.Net Information: 0 : [9456] SecureChannel#65222679::.ctor(hostname=chocolatey.org, #clientCertificates=0, encryptionPolicy=RequireEncryption)
System.Net Information: 0 : [9456] SecureChannel#65222679 - Left with 0 client certificates to choose from.
System.Net Information: 0 : [9456] Using the cached credential handle.
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = (null), targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffer length=0, Out-Buffer length=174, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=126, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=ContinueNeeded).
System.Net Information: 0 : [9456] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 1bd55ac0:1afec05b750, targetName = chocolatey.org, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [9456] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=OK).
System.Net Information: 0 : [9456] Remote certificate: [Version]
  V3

[Subject]
  CN=chocolatey.org, OU=Domain Control Validated
  Simple Name: chocolatey.org
  DNS Name: www.chocolatey.org

[Issuer]
  CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US
  Simple Name: Go Daddy Secure Certificate Authority - G2
  DNS Name: Go Daddy Secure Certificate Authority - G2

[Serial Number]
  4C72AD68B1FA4B25

[Not Before]
  23/04/2015 19:54:38

[Not After]
  25/04/2017 21:21:54

[Thumbprint]
  B28F3510AF96A9CB180B55F69B2B02AC16E1C140

[Signature Algorithm]
  sha256RSA(1.2.840.113549.1.1.11)

[Public Key]
  Algorithm: RSA
  Length: 2048
  Key Blob: 30 82 01 0a 02 82 01 01 00 b6 cb 87 fb 5a 66 db f1 1b eb bd 82 79 fd 18 5e d9 84 da 20 94 82 bb be 0b 1e ef 4f af 9f a4 c9 7d 9a d6 08 ac dd cc b7 b4 4f e0 98 40 af 0e 45 aa 07 f7 66 f6 90 64 8c 68 f8 3c 7a 0b 9c 42 50 94 71 38 a9 29 d4 c2 bf 2c 38 f0 5e 3b 2c ea 34 19 e5 b9 b6 a0 1e 97 a6 e4 4c 4c a0 ef 0f....
System.Net Information: 0 : [9456] SecureChannel#65222679 - Remote certificate was verified as valid by the user.
System.Net Information: 0 : [9456] ProcessAuthentication(Protocol=Tls12, Cipher=Aes128 128 bit strength, Hash=Sha256 0 bit strength, Key Exchange=44550 256 bit strength).
System.Net Information: 0 : [9456] Connection#22183856 - Received status line: Version=1.1, StatusCode=200, StatusDescription=OK.
System.Net Information: 0 : [9456] Connection#22183856 - Received headers
{
Connection: keep-alive
DataServiceVersion: 2.0;
CF-Cache-Status: HIT
Vary: Accept-Encoding
CF-RAY: 34ff2fe78e4b7c96-BEG
Content-Length: 505
Cache-Control: public, max-age=14400
Content-Type: application/atom+xml;charset=utf-8
Date: Sat, 15 Apr 2017 13:17:48 GMT
Expires: Sat, 15 Apr 2017 17:17:48 GMT
Set-Cookie: __cfduid=d8ad93e779f7bf57c67b44f5ba00f5ec51492262268; expires=Sun, 15-Apr-18 13:17:48 GMT; path=/; domain=.chocolatey.org; HttpOnly
Server: cloudflare-nginx
}.
System.Net Information: 0 : [9456] ConnectStream#19954246::ConnectStream(Buffered 505 bytes.)
System.Net Information: 0 : [9456] Associating HttpWebRequest#38468318 with ConnectStream#19954246
System.Net Information: 0 : [9456] Associating HttpWebRequest#38468318 with HttpWebResponse#29094122
System.Net Information: 0 : [9456] ContentLength=505
0 packages found.

@majkinetor
Copy link
Author

majkinetor commented Apr 15, 2017

Invoking it via irm returns nothing:

irm "https://chocolatey.org/api/v2/Search()?`$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion&`$orderby=Id&`$skip=0&`$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false" -Verbose
VERBOSE: GET http://chocolatey.org/api/v2/Search()?$filter=(tolower(Id) eq 'git') and IsLatestVersion&$orderby=Id&searchTerm='git'&targetFramework=''&includePrerelease=false with 0-byte
payload
VERBOSE: received 505-byte response of content type application/atom+xml;charset=utf-8

However, when I remove orderBy=Id parameter:

PS> irm "https://chocolatey.org/api/v2/Search()?`$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion&`$skip=0&`$top=30&searchTerm='git'&targetFramework=''&includePrerelease=false"


id         : http://chocolatey.org/api/v2/Packages(Id='git',Version='2.12.2.2')
title      : title
summary    : summary
updated    : 2017-04-14T15:04:38Z
author     : author
link       : {link, link}
category   : category
content    : content
properties : properties

Works with chocolatey package too:


PS C:\Work\windows-setup> irm "https://chocolatey.org/api/v2/Search()?`$filter=(tolower(Id)%20eq%20'chocolatey')%20and%20IsLatestVersion&`$skip=0&`$top=30&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false"


id         : http://chocolatey.org/api/v2/Packages(Id='chocolatey',Version='0.10.5')
title      : title
summary    : summary
updated    : 2017-04-14T15:04:38Z
author     : author
link       : {link, link}
category   : category
content    : content
properties : properties

@majkinetor
Copy link
Author

majkinetor commented Apr 15, 2017

It looks like this issue is also behind the problem that I faced constantly that choco install wont find an existing package unless --version is specified (#846)

This works for both git and chocolatey packages.

choco info chocolatey --version 0.10.5
Chocolatey v0.10.5
chocolatey 0.10.5 [Approved]
 Title: Chocolatey | Published: 30/03/2017
 Package approved as a trusted package on Mar 30 2017 22:59:16.
 Package testing status: Passing on Mar 30 2017 22:52:06.
 Number of Downloads: 56463219 | Downloads for this version: 3655117
 Package url
 Chocolatey Package Source: n/a
 Package Checksum: 'CSorhguI+zNKC5kZfdOQ3efCIGA3ctpDMCSSF8g2I4fr3u+EJJYvO5jKn6eHI+6GowDoxcbkxEvlO9+88cgAQQ==' (SHA512)
 Tags: nuget apt-get machine repository chocolatey
 Software Site: https://github.com/chocolatey/choco
 Software License: https://raw.githubusercontent.com/chocolatey/choco/master/LICENSE
 Description: Chocolatey is a package manager for Windows (like apt-

@ferventcoder
Copy link
Member

The order by id is definitely something we should look to remove from the call.

@ferventcoder ferventcoder added this to the 0.10.6 milestone Apr 18, 2017
@ferventcoder ferventcoder self-assigned this Apr 27, 2017
ferventcoder added a commit that referenced this issue May 1, 2017
Use FindPackagesById to return results for info and exact id searches.
ferventcoder added a commit that referenced this issue May 1, 2017
* stable: (35 commits)
  (GH-1238) Save extra info about installed packages
  (maint) allow overrides
  (GH-1253)(GH-1263) List/Search returns Summary and Release Notes
  (GH-1101) Search results by relevance by default
  (GH-1004) Ensure choco info returns results
  (maint) Note on install if auto-uninstall possible
  (maint) look for licensed assembly based build-type
  (GH-615) capture more user information
  (GH-1145) show inner exception message
  (GH-1267) API - get configuration
  (maint) Resources proj does not produce pdb file
  (doc) update nuspec authors
  (doc) update licensed release notes
  (build) ILMerge pdb files
  (GH-1247) ensure xml documentation
  (maint) note force install is for same version
  (GH-1243) Update Chocolatey shims
  (GH-1243)(shimgen) upgrade to 0.8.x
  (maint) fix copyright double period
  (log) show exit code when running -v
  ...
@ferventcoder ferventcoder changed the title Some packages can't be found with clist and choco info choco list / search / info - Some packages can't be found May 24, 2017
ferventcoder added a commit that referenced this issue Jun 8, 2017
Due to some changes in the way that 0.10.6 worked to allow for GH-1004
to always return results with info and exact searches, page size and
page was being ignored. Fortunately limiting results is supported - even
though it does need to call completely through and then filter locally.
@majkinetor
Copy link
Author

This happens again.

Without version

2017-10-13T08:29:04  choco.exe install --yes conemu 
Chocolatey v0.10.8
Installing the following packages:
conemu
By installing you accept licenses for the packages.
[NuGet] Exception has been thrown by the target of an invocation.
conemu not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - conemu - conemu not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

With version

2017-10-13T08:38:05  choco.exe install --yes conemu --version 17.9.10.0 
Chocolatey v0.10.8
Installing the following packages:
conemu
By installing you accept licenses for the packages.

Progress: Downloading ConEmu 17.9.10.0... 9%
Progress: Downloading ConEmu 17.9.10.0... 26%
Progress: Downloading ConEmu 17.9.10.0... 42%

@David263
Copy link

choco info git
Chocolatey v0.10.11
git 2.20.1 [Approved]
. . .
choco info
Chocolatey v0.10.11
0 packages found.

@majkinetor
Copy link
Author

This should be reopened

@screig
Copy link

screig commented Sep 4, 2019

Can we reopen this, still broken

@alberto-chiesa
Copy link

alberto-chiesa commented Nov 27, 2019

Got this error this morning for the first time, for packages git, git.install, and others, both when installing on a new PC and when trying to upgrade them on mine. Got difficulties even with gitextensions. The site was struggling with the search: from one PC on our network it was finding the package git extensions, from my PC it was finding it only when specifying "git extensions" with quotes.

Anyone knows how to track this problem? I don't know if it's a load-related problem, a networking issue, or what.

@alberto-chiesa
Copy link

alberto-chiesa commented Nov 27, 2019

And now some of the same commands seem to work... probably it's just an issue related to load on the servers. If it can help someone to pinpoint the root cause, we had issues this morning, around 9.30 CET (8.30 UTC).

@penguinairlines
Copy link

penguinairlines commented Apr 10, 2020

Please reopen. Found this issue after discovering this bug for multiple of my computers on different networks, even had a friend try a few tests.
choco list audacity results in 0 packages found. but...
choco list audacit results in the expected packages.

What can I do to help?

edit> I should also mention that the same thing happens on https://chocolatey.org/packages

I notice others using the "exact" switch. This also works for my query, but I don't know a way to test that on the site. Does that indicate that this is a globbing/matching issue?

@bnm22
Copy link

bnm22 commented May 1, 2020

Still broken, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants