Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. MaxCascone
    3. Posts

    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!

    MaxCasconeM Offline
    • Profile
    • Following 1
    • Followers 1
    • Topics 31
    • Posts 105
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: chocolatey connector healthy but shows no packages

      We continue to have this issue - the chocolatey connector is still broken, and I was trying to activate container scanning today, and our install can't reach the extension gallery. TLS error.
      The Inedo Hub also doesn't work completely.

      We have Inedo.com whitelisted, and I know I've updated the cert in the Windows host VM that ProGet is running on. That should take care of it, but it doesn't seem to be the complete answer. What/where else do i need to look? Is there another runtime that ProGet is using somewhere with its own cert chain? I don't think you're using a jvm/jre anywhere?

      I'd really like to get this resolved so we can use all of the great features available, especially in our paid version.
      thanks
      max

      posted in Support
      MaxCasconeM
      MaxCascone
    • buildmaster linux docker install: sa login failures

      I'm following the instructions to install BuildMaster on a CentOS VM: https://docs.inedo.com/docs/installation-linux-docker-guide

      I've got the two containers going, but the BuildMaster container keeps failing at around 20 seconds up. docker logs buildmaster shows a login error for the SA:

       $> d logs buildmaster
      Attempting to use shared configuration for BuildMaster.
      Shared configuration file not found at /etc/inedo/BuildMaster.config.
      No encryption key is configured. Credentials will be stored in plain text.
      BuildMaster version is 7.0.14.5.
      Current DB schema version is unknown.
      Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot open database "BuildMaster" requested by the login. The login failed.
      Login failed for user 'sa'.
      

      The docker commands I'm running are verbatim from the docs except the password:

      docker run --name inedo-sql \
        -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=redacted' \
        -e 'MSSQL_PID=Express' --net=inedo --restart=unless-stopped \
        -d mcr.microsoft.com/mssql/server:2019-latest
      
      docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd \
        -S localhost -U SA -P 'redacted' \
        -Q 'CREATE DATABASE [ProGet] COLLATE SQL_Latin1_General_CP1_CI_AS'
      
      docker run -d --name=buildmaster --restart=unless-stopped \
        -v buildmaster-artifacts:/var/buildmaster/artifacts \
        -p 80:80 --net=inedo \
        -e BUILDMASTER_SQL_CONNECTION_STRING='Data Source=inedo-sql; Initial Catalog=BuildMaster; User ID=sa; Password=redacted' \
        proget.inedo.com/productimages/inedo/buildmaster:latest
      

      Any help is appreciated! Thanks!

      UPDATE after all this staring at it, I noticed an issue right after posting this: The database created is [ProGet], i'm assuming it should be [BuildMaster]. Will follow up after trying.

      UPDATE 2: Yep, that's it. It's up and running now after changing the second command to be

      docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd \
        -S localhost -U SA -P 'redacted' \
        -Q 'CREATE DATABASE [BuildMaster] COLLATE SQL_Latin1_General_CP1_CI_AS'
      
      posted in Support docker linux buildmaster centos
      MaxCasconeM
      MaxCascone
    • RE: Proget: some metadata sent with Jenkins uploadProgetPackage plugin not applied

      We're still on Version 5.3.17 (Build 19).

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: some metadata sent with Jenkins uploadProgetPackage plugin not applied

      ah yes, i thought of that but didn't get around to checking... they are there:

      {
      "group": "myGroup",
      "name": "PipelineTest",
      "version": "4.3.1-PLATDEV-11339-promotion-flow-test-7",
      "title": "i am the title",
      "description": "i am the description",
      "key1": "value1"
      }
      
      posted in Support
      MaxCasconeM
      MaxCascone
    • Proget: some metadata sent with Jenkins uploadProgetPackage plugin not applied

      Hi!

      I'm using the Jenkins uploadProgetPackage plugin, and it looks like it's recently been updated to allow pushing some new fields: metadata, description, and title. (or I never noticed it before)

      I've tried adding them to my pipeline step, and I am only seeing the description field populated with what I've sent.

      I only see the title data in the "old" UI, I can't find it in the new UI.

      I don't see any metadata that I've sent up.

      the code:

      uploadProgetPackage artifacts: map.artifact,
            excludes:    map.exclude,
            feedName:    map.feedName,
            groupName:   map.groupName,
            packageName: newPackageName,
            version:     map.version,
            description: 'some text',
            title: 'a title',
            metadata: 'key1=value1'
      

      thanks for any help!

      posted in Support package jenkins metadata proget upload
      MaxCasconeM
      MaxCascone
    • RE: chocolatey connector healthy but shows no packages

      I think that's right, that we use a self-signed internal cert that the ZScaler replaces, and it mucks things up a lot. I thought infosec had pushed a thing to update all VMs, but they might have missed this one. I'll look into it, thanks!

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Migrate ProGet Packages to network share

      Hi, This is an old thread but i have the same question. We're on 5.3.17 and have used up all of the space on C:\. We have 1TB on D:\, so I just want to move the PackagesRootPath to there. Does the above pattern still apply?

      thanks
      max

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: chocolatey connector healthy but shows no packages

      what do i need to do here?

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: chocolatey connector healthy but shows no packages

      yep, there it is. as expected, it's a cert/firewall error.

      Connector error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

      We get this a lot with our zscaler and cert setups.

      Request URL: https://chocolatey.org/api/v2/Search()?searchTerm=%27%27&targetFramework=%27%27&includePrerelease=true&semVerLevel=2.0.0
      
      System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
      at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
      at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
      
      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: chocolatey connector healthy but shows no packages

      I'm still on Version 5.3.17 (Build 19).

      Feed type is

      Name	choco-proxy	
      Description	
      Proget feed that proxies requests to chocolatey.org, and caches requested packages.
      
      Type	 Chocolatey (free/open source packages)
      
      posted in Support
      MaxCasconeM
      MaxCascone
    • chocolatey connector healthy but shows no packages

      I'm trying to create a connector to chocolatey.org to create one or more chocolatey feeds on my internally hosted proget.
      I've created a connector to point at https://chocolatey.org/api/v2/, called it choco-connector, and a chocolatey feed to consume it, called choco-proxy.

      In the Manage Feed view for choco-proxy, the connector shows "healthy" and "unfiltered."

      However, no packages are listed, and an message shows:

      There are no local Packages in this feed and the connectors did not list any remote packages. This may happen if there was an error connecting to the remote feed or the connector is configured to filter packages.

      Am i doing something wrong, or maybe there's a firewall issue?

      thanks

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: ProGet as ClickOnce publish target?

      We had a fantastic support call with Alex and Rich, and they pointed us at this: https://docs.microsoft.com/en-us/visualstudio/deployment/server-and-client-configuration-issues-in-clickonce-deployments?view=vs-2019#use-third-party-web-servers

      we haven't tried anything yet, but if anyone else comes along here, maybe it'll help.

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: new docs: good! broken links: bad!

      found another:

      https://docs.inedo.com/docs/proget--docs-various-universal-packages-universal-feed-api

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: deployment usage api not failing but no usage logged

      That makes sense, i must have just read too much into the feature. It's still useful! And I include a link back to the Jenkins run that did the deploy, so it actually feels very cohesive.
      Is there any way to pull that information via the api? I don't exactly know what I'd use it for, but we are also about to start pushing all of our ci/cd activity into our ELK logging stack, so we'd at least be able to make some pretty pictures out of it eventually.

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: deployment usage api not failing but no usage logged

      Thanks @stevedennis, that's helpful, and frankly more clear than the documentation on either feature.

      This might not be the right place for it, but I'd like to enter a feature request to get the Deploy History displayed similarly to the Usage History.

      I would love to see a 'pretty' chart like the usage chart:, as a top-tier piece of data about a package, without having to dig into a tab to find it. live_package_usage.png

      For what it's worth, since I'm using the Jenkins ProGet plugin, I don't think I have the ability to add the deployment info to a package at download time. So I'm using the Package Deployment API to send the data at deployment time.

      Is there a way to add the deployment info using the ProGet download Jenkins plugin?

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: deployment usage api not failing but no usage logged

      @Dan_Woolf hmm, I was starting to get that impression from my testing, but the docs are a little misleading, or maybe I was just seeing what I wanted to see.

      I’m using universal packages for most of our internal artifacts. Only a handful of apps are set up to be true nugets.

      In my opinion, it’s a little unfortunate that the deploy statistics are kind of hidden, fairly unimpressively displayed, and not top-tier like the usage display. Is there an alternative?

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: deployment usage api not failing but no usage logged

      Update! I looked in the history tab of the package i'm testing this with, and the deploy records are there.

      4aba27b5-7660-4601-8942-54e63abe17f5-image.png

      So how/when do they show up in the Usage tab?
      7572fb2e-1d65-49e9-aa12-3d00b2f7ffdd-image.png

      Am I misunderstanding something here?

      posted in Support
      MaxCasconeM
      MaxCascone
    • Proget: deployment usage api not failing but no usage logged

      I don't see any package deployment info when POSTing it using the package deployment api. The API doesn't return an error, in fact it logs a 200 in the local log, but it doesn't do anything, either.

      I have seen this similar question but i seem to be doing all the same things, and not seeing the expected results.

      I'm using the same powershell format as used in the docs.

      I also tried the Jenkins httpRequest function, with the same results.
      I tried with and without an API token. The token has all privileges.
      I tried with JSON and forms formats.

      Where else should i be looking for an error?

      thanks!

      # powershell
      $data = @{
        FeedName='myFeed'
        Application='Jenkins'
        Description='Deployed by Jenkins'
        Target='DEV'
        PackageName='myPackage'
        GroupName='myGroup'
        Version='1.0.8-0004'
      }
      
      $headers = @{
        # 'content-type' = 'application/json'
        'content-type' = 'application/x-www-form-urlencoded'
      }
      
      # Invoke-RestMethod -Method Post -Uri 'https://proget.myCompany.com/api/package-deployment/' -Body ($data | ConvertTo-JSON) -Headers $headers
      
      Invoke-RestMethod -Method Post -Uri 'https://proget.myCompany.com/api/package-deployment/' -Body $data -Headers $headers
      
      // Jenkins
      response = httpRequest consoleLogResponseBody: true, 
        contentType: 'APPLICATION_FORM', 
        customHeaders: [[maskValue: true, name: 'X-ApiKey', value: 'redacted-key']], 
        httpMode: 'POST', ignoreSslErrors: true, 
        requestBody: 'FeedName=myFeed&Application=Jenkins&Description=Deployed-by-Jenkins&Target=DEV&PackageName=myPackage&GroupName=myGroup&Version=4.2.1-c8adb60', 
        url: 'https://proget.myCompany.com/api/package-deployment/', 
        validResponseCodes: '', wrapAsMultipart: true            }
      
      // result:
      HttpMethod: POST
      URL: https://proget.myCompany.com/api/package-deployment/
      Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1
      X-ApiKey: *****
      Sending request to url: https://proget.myCompany.com/api/package-deployment/
      Response Code: HTTP/1.1 200 OK
      Response: 
      
      Success: Status code 200 is in the accepted range: 
      [Pipeline] }
      [Pipeline] // script
      [Pipeline] echo
      Status: 200
      
      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: Proget: delete all versions of a package via API

      You could be able to add a second rule, but it operates independently. More like an "OR" than an "UNLESS" I guess.

      So could you say, each rule is an AND of its own settings, and then all rules are OR'd together. If ANY of them resolve, the package is deleted.

      yesno?

      posted in Support
      MaxCasconeM
      MaxCascone
    • RE: How to delete packages with the ProGet REST API?

      Dropping late here, but I've just asked a similar question in this thread, it may be of use to anyone who stumbles in here: https://forums.inedo.com/topic/3318/proget-delete-all-versions-of-a-package-via-api

      posted in Support
      MaxCasconeM
      MaxCascone
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 4 / 6