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!

  • [Question - ProGet] Are versions amount wrong ?

    4
    0 Votes
    4 Posts
    11 Views
    atrippA
    Another 5.3 screenshot! When you enable "strict" (SemVer2) versioning, you'll see how "virtual" get added -- they get automatically generated when you add/remove tags. The feed also restricts adding anything but semver2 tags. [image: 1585549164356-cc835818-45d1-4e17-8d6d-93f0c6c8faa6-image.png]
  • [BUG - ProGet] Not able to remove container description

    6
    0 Votes
    6 Posts
    9 Views
    atrippA
    I can confirm this works quite well in 5.3; we hope to have a pre-release this week :) Here's a sneak peak; [image: 1585548862114-2c1e5806-8028-44dd-9af4-4fe7f81cff8e-image.png]
  • Cannot pull from another repository

    4
    0 Votes
    4 Posts
    17 Views
    atrippA
    I would try a couple other things, to first eliminate the conditions. First, how about pulling from a specific connector? Navigate to the version of the package you want, like /feeds/feed-name/adobereader/2020.006.20042, and then click "Pull to ProGet". That way you'll get a specific connector and a specific version. If the individual packages work, but the "Add Package" route you took doesn't, then perhaps it's some sort of Mono-related bug. Those are hard to track down, and they come/go as the mono docker image is patched. We will eventually address this by moving to a more stable, .NET core version, once it's released by Microsoft. Try some other packages, to see if they also don't work. If some packages work, but others don't, it's probably related to your gateway/router blocking things that it sees as security risks. If that still doesn't work, then consider to attach ProGet to a Proxy server, like a Fiddler instance, by going to Admin > Proxy. You can then monitor the outbound traffic.
  • How to find out package disk space?

    7
    1 Votes
    7 Posts
    21 Views
    apxltdA
    Just a quick in-progress preview of what we've got coming; feedback welcome! [image: 1585492508427-2aefec08-0033-4d19-8dad-bb75849bbcce-image.png]
  • Duplicate commits result in overwriting the file

    5
    0 Votes
    5 Posts
    10 Views
    rhessingerR
    Hi @huomm23_2930 , I'm glad to hear that worked for you! Thanks for giving me an update. Thanks, Rich
  • RPM upload fails - 42P01: missing FROM-clause entry for table "rpv"

    4
    0 Votes
    4 Posts
    11 Views
    J
    Today, I have installed a clean version 5.2.27 (Build 6) and RPM is working now. I moved to the MS SQL from PostgreSQL. Using: version: '3.7' services: proget: image: inedo/proget container_name: proget environment: - PROGET_DB_TYPE=SqlServer - PROGET_DATABASE=Data Source=proget-sql; Initial Catalog=ProGet; User ID=sa; Password=XXX volumes: - packages:/var/proget/packages - extensions:/var/proget/extensions links: - proget-sql restart: always networks: - webproxy - proget proget-sql: image: mcr.microsoft.com/mssql/server:2017-latest hostname: proget-sql container_name: proget-sql environment: - ACCEPT_EULA=Y - MSSQL_SA_PASSWORD=XXX - MSSQL_PID=Express volumes: - db_data:/var/opt/mssql/data:rw - db_log:/var/opt/mssql/log:rw - db_secrets:/var/opt/mssql/secrets:rw restart: always networks: - proget volumes: packages: extensions: db_data: db_log: db_secrets: networks: webproxy: external: name: webproxy proget: driver: bridge and create manually DB according to the Linux install guide.
  • Credentials_CreateOrUpdateCredential

    2
    0 Votes
    2 Posts
    8 Views
    atrippA
    Unfortunately we don't yet have an API for the credentials, but it's something we'd like to make. In the mean time, the Native API will work. If you look in the database, you'll be able to see how credentials are structured, and how things like Password are stored. The secret fields are encrypted using DPAPI, with the Encryption key stored in the configuration file. Here's the specific code we use to encrypt/decrypt. Please share what you come up with, would definitely help out in the mean time :) private static byte[] Decrypt(byte[] data) { if (protectedAesKey == null || protectedAesKey.Length == 0) throw new InvalidOperationException("Cannot decrypt persistent property; decryption key not configured."); byte[] key; try { key = ProtectedData.Unprotect(protectedAesKey, null, DataProtectionScope.LocalMachine); } catch (CryptographicException ex) { throw new InvalidOperationException( $"An error occurred during decryption (\"{ex.Message}\"). This usually means that the encryption key has changed between" + " encrypting and decrypting the data, which might happen if you accidentally overwrite a configuration setting, perhaps during an upgrade or reinstall." + " Check your configured encryption key, and restart the service and web application(s) as needed."); } try { var nonce = new byte[16]; Array.Copy(data, 0, nonce, 0, 8); Array.Copy(data, data.Length - 8, nonce, 8, 8); using (var buffer = new MemoryStream(data.Length - 16)) { buffer.Write(data, 8, data.Length - 16); buffer.Position = 0; using (var aes = new AesManaged { Key = key, IV = nonce, Padding = PaddingMode.PKCS7 }) using (var cryptoStream = new CryptoStream(buffer, aes.CreateDecryptor(), CryptoStreamMode.Read)) { var output = new byte[SlimBinaryFormatter.ReadLength(cryptoStream)]; cryptoStream.Read(output, 0, output.Length); return output; } } } finally { if (key != null) Array.Clear(key, 0, key.Length); } } private static byte[] Encrypt(byte[] data) { if (protectedAesKey == null || protectedAesKey.Length == 0) return null; var key = ProtectedData.Unprotect(protectedAesKey, null, DataProtectionScope.LocalMachine); try { using (var aes = new AesManaged { Key = key, Padding = PaddingMode.PKCS7 }) { aes.GenerateIV(); using (var outputBuffer = new MemoryStream()) { outputBuffer.Write(aes.IV, 0, 8); using (var cryptoStream = new CryptoStream(new UncloseableStream(outputBuffer), aes.CreateEncryptor(), CryptoStreamMode.Write)) { SlimBinaryFormatter.WriteLength(cryptoStream, data.Length); cryptoStream.Write(data, 0, data.Length); } outputBuffer.Write(aes.IV, 8, 8); return outputBuffer.ToArray(); } } } finally { if (key != null) Array.Clear(key, 0, key.Length); } }
  • BuildMaster Extension updates and Windows Agents

    2
    0 Votes
    2 Posts
    15 Views
    atrippA
    Hello; this is unusual. But in this case, restarting the service should have also resolved the error. That will trigger the Agent Update Checker, which does restart the agents. Most likely, a sort of load error happened on the agent; hard to say what without looking at logs. It's almost always an anti-virus or some sort of program locking files at the wrong time. If it keeps happening, it might be worth investigating further.
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    5 Views
  • Maps in vector and PowerShell

    4
    0 Votes
    4 Posts
    20 Views
    rhessingerR
    Hi @Adam, I have pushed an updated extension that includes this fix. The fix is included in the Windows extension 1.0.18+ and 1.7.1+. You should see an update when you check in Administration > Extensions. Please let me know if you have nay issues! Thanks, Rich
  • Proget docker registry - multiple connectors?

    2
    0 Votes
    2 Posts
    18 Views
    rhessingerR
    Hi @aclauss, If you go to the feeds page in ProGet, in the upper left corner you should see a toggle button that has two options: Feeds and Connectors. Please click the Connectors button and you should see a list of your connectors. From there you can click Create Connector to create a new connector. [image: 1584961139969-cfde39c9-4c9d-4212-be2f-bfc6e64776be-image.png] Once you create the connector, you can tie it to your feed by going back to the manage feed page, click connectors, and now that connector dropdown you see before should contain the connector you recently created. Hope that helps! Thanks, Rich
  • SECURITY VULNERABILITY: nuget cli requires anonymous access to feed

    7
    0 Votes
    7 Posts
    8 Views
    atrippA
    I'm sorry that my suggestion offended you. ProGet doesn't "prefer" anything. It's a standard, authenticated feed. If it works in your browser (i.e. the feed endpoint URL), then it should work in NuGet. if it doesn't work in NuGet, then NuGet isn't being configured correctly. "Behind the scenes", NuGet uses "basic authentication" to transmit those credentials to ProGet. It's the same mechanism your browser uses when you navigate to the feed API (i.e. a pop-up). Credentials are stored in the nuget.config; the link I provided shows you how to edit that configuration file. You can either edit it yourself or use the sources command-line argument. https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentials You can attach a tool like Fiddler to NuGet.exe, and see what it's sending in different cases. It might be a NuGet bug.
  • docker pull from proget not working

    13
    0 Votes
    13 Posts
    63 Views
    A
    @atripp 5.2.27 has fixed the issue. Thank you so much!
  • Update failed to Proget 5.1.23

    2
    0 Votes
    2 Posts
    9 Views
    atrippA
    Hello; It's a problem with the database... there was probably some failed change script, a while ago. But beyond that diagnosing/troubleshooting isn't going to be trivial and not worth the time, especially since... Postgres has been deprecated in 5.2. It won't be available in 5.3. So, I would recommend to take the opportunity to first move to SQL Server (i.e. install a new instance w/ same version that uses SQL Server). You can use this guide to migrate feeds: https://inedo.com/support/kb/1168/proget-feed-migration Then, you can perform the upgrade to 5.2 on the new instance. You can migrate feed-by-feed.
  • $PSCredential- round two

    27
    0 Votes
    27 Posts
    54 Views
    rhessingerR
    Hi @Jonathan-Engstrom , Have you tried wrapping your PSEnsure inside of a with block to force everything to run as a specific Resource Credential? Example using a resource credential named AdAdminResourceCredentials: with credentials = AdAdminResourceCredentials { PSEnsure ( Key: RSHStuff, Value: True, Collect: >> $ErrorActionPreference = 'SilentlyContinue' $TargetOU = 'Users' $Value = (Get-ADComputer -Identity $env:COMPUTERNAME).DistinguishedName -match $TargetOU $CurrentValue = (Get-ADComputer -Identity $env:COMPUTERNAME).DistinguishedName ((($Value -eq $true) -and (($env:COMPUTERNAME) -match 'MyComputerName')) -or ($env:COMPUTERNAME -notmatch 'MyComputerName')) >>, Configure: >> $samAccountName = $ServerName $newOU = [adsi]"LDAP://$TargetOU" $comp= ([adsisearcher]"samaccountname=$($ServerName)$").FindOne() Write-Host $comp.GetDirectoryEntry() >>, Debug: true, Verbose: true ); } Please note that my PowerShell in collect and configure is not 1 to 1 with yours, I would replace my PowerShell script with yours in those two properties. I also was talking with one of the solutions architects on a similar Otter execution question. He suggested that sometimes it is easier to figure out PowerShell issues by running PSExec under the local system account and attempting to run your PowerShell commands that way. It will sometimes show you more detailed errors than Otter. I would try running PSExec -s powershell, which will open up a PowerShell console as the local system account, and then typing in the lines of PowerShell you have had trouble with. Thanks, Rich
  • Getting windows service status into variable

    4
    0 Votes
    4 Posts
    11 Views
    R
    Error was related to how we had base install Windows Management Framework/Powershell installed. Updating to WMF/Powershell 4 resolved this error. Working through some mistakes in the scripting, but if I can get through it all without any more questions, I'll mark this post as answered.
  • HOWTO Get the list of files in Artifact ?

    3
    0 Votes
    3 Posts
    14 Views
    P
    Hello Rich It is very kind. This was exactly what looking for. Thanks a lot
  • Nuget install prompting for credentials

    2
    0 Votes
    2 Posts
    10 Views
    atrippA
    The first thing that comes to mind is Integrated Windows Authentication; you often won't be able to authenticate unless your computer is on the domain. This is a limitatino/feature of Windows (i.e. it's by design to work this way). As a work-around, you can setup a second site that doesn't have IWS enabled, and point to the same folder on disk.
  • 0 Votes
    8 Posts
    4k Views
    atrippA
    Thanks for tracking those down, I updated owner on them :)
  • Simplify running script assets in Otter Configurations (PSEnsure)

    otter
    7
    0 Votes
    7 Posts
    29 Views
    Jonathan.EngstromJ
    Alright, fair enough. As I use Otter almost exclusively for checking for compliance, I will look forward to this. Nontrivial asks are always the best ones, right? :D
Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation