Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

ProGet: Chocolately unable to connect



  • I have a feed created and I can see the package if I browse to it via the browser just fine.
    However with chocolatey I'm unable to connect. I have no idea why and logs aren't really telling me anything but:

    2024-04-30 09:52:41,214 8256 [DEBUG] - Resolving resource PackageMetadataResource for source http://localhost:8624/nuget/approved-choco/
    2024-04-30 09:52:41,331 8256 [INFO ] - [NuGet]   CACHE http://localhost:8624/nuget/approved-choco/Packages(Id='git',Version='2.44.0')
    2024-04-30 09:52:41,341 8256 [WARN ] - Unable to connect to source 'http://localhost:8624/nuget/approved-choco/':
     Object reference not set to an instance of an object.
    2024-04-30 09:52:41,341 8256 [ERROR] - git not installed. The package was not found with the source(s) listed.
     Source(s): 'http://localhost:8624/nuget/approved-choco/'
     NOTE: When you specify explicit sources, it overrides default sources.
    If the package version is a prerelease and you didn't specify `--pre`,
     the package may not be found.
    Version was specified as '2.44.0'. It is possible that version
     does not exist for 'git' at the source specified.
    Please see https://docs.chocolatey.org/en-us/troubleshooting for more
     assistance.
    2024-04-30 09:52:41,356 8256 [WARN ] - 
    Chocolatey installed 0/1 packages. 1 packages failed.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    2024-04-30 09:52:41,362 8256 [INFO ] - 
    2024-04-30 09:52:41,362 8256 [ERROR] - Failures
    2024-04-30 09:52:41,362 8256 [ERROR] -  - git - git not installed. The package was not found with the source(s) listed.
     Source(s): 'http://localhost:8624/nuget/approved-choco/'
     NOTE: When you specify explicit sources, it overrides default sources.
    If the package version is a prerelease and you didn't specify `--pre`,
     the package may not be found.
    Version was specified as '2.44.0'. It is possible that version
     does not exist for 'git' at the source specified.
    Please see https://docs.chocolatey.org/en-us/troubleshooting for more
     assistance.
    

    As you can see it's localhost. Local firewall is disabled. I can connect to that port too:

    Test-NetConnection localhost -port 8624
    
    
    ComputerName     : localhost
    RemoteAddress    : 127.0.0.1
    RemotePort       : 8624
    InterfaceAlias   : Loopback Pseudo-Interface 1
    SourceAddress    : 127.0.0.1
    TcpTestSucceeded : True
    

    Does any one have any ideas on where I can look next?


  • inedo-engineer

    Hi @greg-swiderski_0221 ,

    It looks like there is an "Object reference not set to an instance of an object" error that's occurring while trying to connect:

    2024-04-30 09:52:41,341 8256 [WARN ] - Unable to connect to source 'http://localhost:8624/nuget/approved-choco/':
     Object reference not set to an instance of an object.
    

    That error is presumably occurring from the Chocolatey client (choco), and unfortunately there's no way to know what it means. Most likely, it's an "error reporting an error" message, but it's hard to say.

    You could use some HTTP monitoring software (Fiddler Classic, Wireshark), and see if ProGet is returning an error of some kind.... but even if so, choco should report that error.

    I would check with the chocolatey team on this one.

    Thanks,
    Steve


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation