Posts made by rhessinger
-
RE: BuildMaster and Otter SQL connection issue (Docker/ Linux)
The error is definitely that the BuildMaster and Otter containers cannot find a server with the name of
mssql
. I'm surprised that ProGet works, but Docker can be confusing. This seems to be a pretty common docker issue. How I have solved this in the past is to add an alias to the network section on your SQL Server container. For example:networks: databases: name: mssql
Because you are using the
databases
network on ProGet, BuildMaster, and Otter containers also, that will add a hostname ofmssql
to the docker network and make it accessible by name. I would also suggest adding an alias to your ProGet, BuildMaster, and Otter container configurations to prevent issues with these servers being able to communicate with each other as well.For more information, see our Docker-Compose installation guide.
Thanks,
Rich -
RE: Error when adding server via WMI
Hi @jwest_6990 ,
So I'm struggling to reproduce this error. For me, it just seems to work. I'm wondering if maybe a DLL got removed (possibly an antivirus false-positive) or conflict with something else installed on the host. Are you able to see a full stack trace? Do you have anything else installed on your Otter server?
Thanks,
Rich -
RE: Assets do not return Last-Modified header (anymore?)
Hi @pfeigl,
Thanks for letting us know. It looks like this is related to how HEAD requests were handled. I went and added that header to head requests also. This will be tracked in PG-2300 and will be released in ProGet 2022.25.
Thanks,
Rich -
RE: Error when adding server via WMI
Hi @jwest_6990,
I'm sorry, somehow I missed that in your previous response. I'm going to attempt to recreate this in our test lab and see if I can get the same error. I'll let you know what I find.
Thanks,
Rich -
RE: InedoAgent Silent Install
Hi @OtterFanboy,
Good catch. I'll get the documentation updated shortly to reflect this. The older version of the Inedo Agent was only a 32-bit requirement, but we changed it to a 64-bit requirement in the newer agents. Unfortunately, I don't remember which version it changed in though.
Thanks,
Rich -
RE: Implementing custom user directory
It looks like there was a hiccup in the release of the updated InedoCore extension. You should now see the ability to upgrade to the InedoCore v2.2.1 version. That includes AD v4. Sorry about the confusion there.
Thanks,
Rich -
RE: Proget PGScan - How does this work with Dotnet SPA and NPM?
Hi @arozanski_1087,
I just wanted to let you know that we just released a new version of pgscan, 1.4.2. Going forward it will automatically scan npm packages anytime it is scanning for NuGet packages using a .NET solution or project, there will not be any new parameter needed to enable the search.
We are still working on adding yarn support, but that one will take us a bit of time to add. We will update you when that one is ready to be used.
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
It looks like there was a regression applied to that fix. We have fixed it as part of PG-2288, due in a couple of weeks in ProGet v2022.22. If you would like, I can set up a CI release for you that you can install now using Inedo Hub.
Thanks,
Rich -
RE: Assets do not return Last-Modified header (anymore?)
Hi @pfeigl,
Always happy to help! The new release is scheduled to be available on Friday. After upgrading to it, please inform us if the issue you were experiencing has been resolved or not.
Thanks,
Rich -
RE: Assets do not return Last-Modified header (anymore?)
Hi @pfeigl,
I did some investigation and it does look to be related to our platform upgrade. We will have a fix ready to be released in ProGet v2022.20.
Thanks,
Rich -
RE: Powershell "Find-Package" has problems with v3-Feed on ProGet
I was able to reproduce the issue. Please give me a bit of time to dig into this further to determine what is causing it.
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Thank you very much for the steps to recreate this issue. I was finally able to recreate it and it looks to be easier to recreate on Linux than on Windows. We have created a ticket, PG-2274, to track the fix. We should be able to get this into today's release!
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I'm sorry, but I'm really struggling to recreate this.
The test I setup was:
- Docker run ProGet 2022.18
- I also tested on ProGet 2022.15, but this one was on Windows. Functionally they do not differ in upack feed code.
- Create a new upack feed
- No connectors or other packages
- upack push database-schema-7.60.0.upack to the new feed
- upack push database-schema-7.61.0.upack to the new feed
That all worked. I then proceeded to do different combinations like push 7.61, then 7.60. The only time I was able to get the "Feeds_OverwritePackage" error was when the package already existed in the feed and I tried to push it again (which works as designed).
Do you have anything sitting in front of your Docker image (like a reverse proxy or HTTP request forwarder) that may attempt to resend a request if it takes too long? The only thing that makes sense to me would be the push request is being duplicated and the first succeeds and the second errors because the package already exists.
Thanks,
Rich - Docker run ProGet 2022.18
-
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Hi @nselezneva_7646,
Am I correct that you had that exact issue with the example packages you sent over to us? Would you be able to send me just the upack,json files from the packages you are testing with?
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I took a look at your example and I was able to push the packages to my feed without issue. If I tried to push the package a second time, I then I would get that Feeds_OverwritePackage" error, but that is expected.
Are you getting this error when you try to push it initially? Are there other packages in the feed? If there are other packages in the feed, are there any with the same name but a different group name?
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
I can confirm that we have received your email. Please give us a bit of time to review it and we will get back to you soon!
Thanks,
Rich -
RE: Deploy artifact without touching a certain subfolder?
Hi @Justinvolved,
That message that says "currently contains 0 items" is just telling you that the folder that the artifact is deploying to contains 0 files. After that, it will deploy the artifact files. If you enable verbose logging (setting
Verbose: true
), you will see all the files transferred from the artifact to the working directory.Thanks,
Rich -
RE: Discrepency in Stage name pipeline vs Configuration Files
Hi @Justinvolved,
We can definitely improve the error message when trying to deploy a config file when an instance is not found. Would you be able to share your OtterScript with us for how you are deploying the config files? Also, how do you have your deployment target configured (single server, group, environment, etc...) on your stage?
Thanks,
Rich -
RE: npm install
Hi @justin_2990,
We are actually in the process of developing dedicated npm operations, but we do have anything ready as of yet. The easiest way to call npm commands is to use the
Exec
operation in OtterScript. Due to how the npm CLI writes it's output, you need to addErrorOutputLogLevel: Warning
to theExec
operation. Here is an example of the npm install and npm publish commands:set $NpmPath = C:\Program Files\nodejs\npm.cmd; set $NodePath = C:\Program Files\nodejs\node.exe; # Install Dependencies Exec ( FileName: $NpmPath, Arguments: install, WorkingDirectory: ~\Source, ErrorOutputLogLevel: Warning ); # Publish Package Exec ( FileName: $NpmPath, Arguments: publish Source, WorkingDirectory: ~\, ErrorOutputLogLevel: Warning );
When it comes to ProGet::Scan, it should work with all npm packages. It just reads the package-lock.json and records the dependencies in ProGet. You can see our implementation on the pgscan GitHub repository. If that doesn't work, you can always use a tool like CycloneDX to generate an SBOM and upload it to ProGet via the SCA API which has an endpoint for importing an SBOM file directly.
One last thing, you mentioned that you are using ProGet. You can create an OtterScript module to register ProGet as your package source for npm. I do this with the following:
ConfigureNpmRegistry OtterScript Module
##AH:UseTextMode module ConfigureNpmRegistry<$NpmPath, $ResourceName, $CredentialName> { set $ProGetNpmRegistry = $SecureResourceProperty($ResourceName, ServerUrl); Exec ( FileName: $NpmPath, Arguments: config set registry $ProGetNpmRegistry, WorkingDirectory: ~\, ErrorOutputLogLevel: Warning ); set $AuthToken = $SecureCredentialProperty($CredentialName, Token); PSCall Base64Encode ( Text: api:$AuthToken, EncodedText => $AuthKey ); Exec ( FileName: $NpmPath, Arguments: config set always-auth true, WorkingDirectory: ~\, ErrorOutputLogLevel: Warning ); Exec ( FileName: $NpmPath, Arguments: config set _auth $AuthKey, WorkingDirectory: ~\, ErrorOutputLogLevel: Warning, LogArguments: false ); Exec ( FileName: $NpmPath, Arguments: config set email support@inedo.com, WorkingDirectory: ~\, ErrorOutputLogLevel: Warning ); }
I also had to add a PowerShell script to handle the base64 encoding of the credentials:
<# .SYNOPSIS Base64 Encodes a string .PARAMETER Text Text to be encoded .PARAMETER EncodedText Encoded text string #> param( [Parameter(Mandatory=$true)] [string]$Text, [ref]$EncodedText ) $Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) $EncodedText =[Convert]::ToBase64String($Bytes)
I then call this using:
# Setup registry call ConfigureNpmRegistry ( NpmPath: $NpmPath, ResourceName: global::ProGetNpmRepo, CredentialName: global::ProGetNpmCredentials );
These are all operations we plan to build into the npm extension, but these are currently the workaround until we get that extension up and running. I hope this helps! Please let me know if you have any questions.
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Can you please try upgrading your upack CLI to the latest version and see if that resolves the problem for you?
Thanks,
Rich -
RE: upack push return (403) Forbidden without Feeds_OverwritePackage permission
Can you please tell me what version of the upack CLI you are using? You can find that by running the command
upack version
.I tested by creating a new Universal Packages feed with a feed usage type of PrivateOnly and the upack CLI 3.0.1.3 and I was able to push without issue. Can you also please answer a couple of other things for me?
- What is the upack CLI command you are running to push your package?
- Are you using an API key? If so, what permissions do you have configured on the API key?
Thanks,
Rich -
RE: mgoulis@inedo.com not valid email?
Hi @jimthomas1_7698,
Thanks for bringing this to our attention, we will get that updated!
Thanks,
Rich -
RE: Error when uploading packages to debian Ubuntu 22.04 LTS repository "Jammy Jellyfish"
Hi @22marat22_9029,
So turns out that we had a compatible library from our Conda implementation that I was able to use for zstd compression with Debian. I have created a ticket, PG-2242, to track the fix and it will be released in the next release of ProGet, 2022.14.
Thanks,
Rich -
RE: Error when uploading packages to debian Ubuntu 22.04 LTS repository "Jammy Jellyfish"
Hi @22marat22_9029,
Currently, we do not support the compression format of zstd (
tar.zst
) for the control or the data file. We only support.tar
,.tar.gz
, and.tar.xz
fir the data and control files with the additiontar.bz2
andtar.lzma
for the data file . This is currently a limitation of the third-party package we use to read tar files. Hopefully, this is something we can add support for in the future.Thanks,
Rich -
RE: Bad request when pushing python package to Proget
We have created a ticket, PG-2233, to fix this issue in ProGet. We are not exactly sure what is causing the issue as of yet, but we are able to recreate the issue and working on a fix. We are currently targeting Nov 18th for a release date on the fix.
Thanks,
Rich -
RE: NPM OData API Query equivalent of Nuget
I think you are looking for the npm search API. You would make a call to your npm feed using
http://{proget-server}/npm/{feedName}/-/v1/search?text={Package}
. It also looks likehttp://{proget-server}/npm/{feedName}/-/all
will show you all local packages (it does not include remote packages from connectors) stored in ProGet. Please also note that the search API returns results in a paged fashion, you will need to use thefrom
query string parameter to offset the results to get the following pages.I hope this helps! Please let us know if you have any other questions.
Thanks,
Rich -
RE: [SOLVED] Unhandled exception: Assembly Kubernetes was not found
Thanks for giving us an update and letting us know that fixed your issue.
Thanks,
Rich -
RE: How to set up connector to npm repo with access token
Hi @torgabor_4445 and @sdohle_3924,
I dug deeper into GitLab connectors and it looks like there are two ProGet issues here and a configuration issue.
- PG-2210: GitLab does not return the "time" property when it returns package metadata. This causes ProGet to fail to return any packages.
- PG-2211: There is a display issue when entering only a password with bearer authentication. The UI will show anonymous, even though it will use the token.
- Configuration Issue: here is what you will need to configure a GitLab connector.
- Connector URL: https://gitlab.com/api/v4/projects/12345/packages/npm/
- User Name: leave blank
- Password: Generate a personal access token with API access and set that value there.
- Authentication: Bearer
- Advanced Options: Check exact package match only. GitLab does not support partial searching and/or listing
I have added fixes for PG-2210 and PG-2211 and they will release tomorrow in ProGet 2022.9. Once you upgrade to 2022.9 and make the configuration updates, you should be able to pull GitLab packages via a connector.
Thanks,
Rich -
RE: How to set up connector to npm repo with access token
Hi @torgabor_4445,
Can you please try something for me?
- Leave the username blank
- Put your token in for the password
- Use Bearer authentication
- Change your URL to
https://gitlab.com/api/v4/projects/12345/packages/npm/:_authToken
If that does not fix it, I have another idea, but I will need to check a few more things offline.
Thanks,
Rich -
RE: Error whike trying to update extensions
What version of BuildMaster do you have installed? Also what extensions are you trying to update that are currently giving you that error?
Thanks,
Rich -
RE: HTTPS with self hosted ProGet and internal web server
Hi @tkolb_7784,
If you are hosting on a windows machine, the easiest solution right now is to migrate your server to use IIS and then add an SSL binding to your site. If you do not want to purchase a new certificate and the self-signed certificate is too much work, you can use Let's Encrypt and configure it via winacme.
If you do not want to use IIS, then you will need to use a reverse proxy to handle SSL connections. Any reverse proxy can be used and a pretty simple one to configure is stunnel. Most reverse proxies can also be used with Let's Encrypt.
If you are hosting via Linux (Docker), then you will need to use a reverse proxy to handle SSL connections. We have a documentation page for different Linux-based reverse proxies including an example for setting up NGINX. These reverse proxies also support Let's Encrypt also.
Please let me know if you have any questions.
Thanks,
Rich -
RE: System.OverflowException, Failed to retrieve metadata from source.
Hello,
This is related to a known issue that's been addressed in ProGet 6.0.19 and ProGet 2022.5. So, your best bet is to upgrade and the issue will become resolved :)
This is related to a few packages that have exceeded 2.2 billion downloads:
- Microsoft.NETCore.Platforms
- Microsoft.Extensions.Primitives
- Microsoft.Extensions.DependencyInjection.Abstractions
If the upgrade is impossible/difficult immediately, you can disable the connector as a workaround. Alternatively, you could block those packages with a connector filter and then upload them to your feed so that the counts won't come through the connector.
Thanks,
Rich -
RE: Otter in https instead of http
Hi @mike_2282,
Thank you for the feedback. I have made some changes to the documentation to address most of the issues you have brought up. Thanks again for the feedback!
Thanks,
Rich -
RE: Otter in https instead of http
Hi @mike_2282,
Thanks for alerting us to this. I'll get that added to our documentation. Please let us know the other issues you find and hopefully we can get those addressed in our documentation also.
Thanks,
Rich -
RE: Web folder missing after upgrading to ProGet 22.0.1
Hi @v-makkenze_6348,
Can you please try to install the .NET 6.0 Web Hosting Bundle and see if that resolves your issue? Inedo Hub typically handles installing this, but I'm guessing that it did not detect your site in IIS.
Thanks,
Rich -
RE: Can't pull docker image from remote connector
Hi @pariv_0352,
I was able to fix the issue, PG-2160, and it will be released next week on ProGet 2022.2. If you would like to use the fix earlier, you can install a pre-release version of PrGet by installing ProGet 2022.0.2-CI.7 or higher. We have a walk-through on how to install prerelease products in our documentation.
Please let me know if you have any questions.
Thanks,
Rich -
RE: Can't pull docker image from remote connector
Hi @pariv_0352,
Thanks for all the information. I have been able to recreate the issue and I'm currently looking into it. I'll have an update for you soon.
Thanks,
Rich -
RE: Git repo doesn't sync with Otter
I did some more research on this and I think I have been able to reproduce this issue. I have created a ticket, OT-477, to track the fix for this issue. I expect to have this fixed within the next couple of versions of Otter (2022.5 or 2022.6). It is possible that this is an issue with the git extension directly, but I will update you when I have a release date for the fix.
Thanks,
Rich -
RE: Git repo doesn't sync with Otter
Would you be able to share a screen shot of your Git repository so we can see how the files and folder structure? You can send them to support@inedo.com if you do not feel comfortable sharing on here. If you do email it to us, please include [QA-882] in the subject.
Thanks,
Rich -
RE: Git repo doesn't sync with Otter
There are a couple of things that can cause these to go out of sync. If you navigate to Administration -> Raft Repositorites and then click browse to the right of your Git raft. Do you see the scripts showing up in there? Also, which Git provider (GitHub, GitLab, etc...) are you using?
Thanks,
Rich -
RE: Proget The blob does not have a media type associated with it.
Hi @aries66_2180,
I just set up a clean ProGet 6.0.16 docker instance and tested this and it seems to be working for me. Can you send me an example image you are trying to push that fails? Also, would you be able to use a tool like WireShark or Fiddler to record your requests when trying to push an image and email it over to us at support@inedo.com with a subject of
[QA-878] Docker push error
?Thanks,
Rich -
RE: Proget The blob does not have a media type associated with it.
Hi @aries66_2180,
If this happens on a clean Docker feed that is not set up the use common blob storage, then this is likely an issue with the image itself. Do all images have this issue or just that specific image? Are you using the Docker CLI to create this image or a different third-party tool?
Thanks,
Rich -
RE: Proget The blob does not have a media type associated with it.
Hi @aries66_2180,
We typically have seen this when there is a corrupted or orphaned blob in the database. Could you create a new temporary Docker feed, disable common blob storage, and attempt to push the image to that feed?
Thanks,
Rich -
RE: Proget The blob does not have a media type associated with it.
Hi @aries66_2180,
Can you please try running the "DockerGarbageCollection" scheduled task. This will do the same thing as the feed cleanup task, but for the common blob storage blobs and then attempt the push again?
Thanks,
Rich -
RE: Proget The blob does not have a media type associated with it.
Hi @aries66_2180,
Can you please check if you have common blob storage enabled for your Docker feed? You can do this by navigating to your Docker Registry and click the "Manage Feed" button in the upper right and then select the "Storage & Retention" tab. On there, you should see a block indicating if it is enabled or not.
Thanks,
Rich -
RE: Unable to access admin page with admin user
Hi @chris-f_7319,
I'm sorry about that, I didn't realize the version of ProGet you are running was based on mono (we switched to .net 5 later in the lifecycle of ProGet 5.3). The command you will want to use is:
sudo docker exec -it proget mono /usr/local/proget/service/ProGet.Service.exe resetadminpassword
If mono doesn't work, try using
/usr/bin/mono
instead ofmono
.Thanks,
Rich -
RE: ProGet Support for Azure Managed Instances
Hi @phillip-t_2200,
Azure SQL Managed Instances should work fine. We don't have any direct test cases for this, but based on our SQL implementation, that should work just fine.
Thanks,
Rich -
RE: Unable to access admin page with admin user
Hi @chris-f_7319,
The command that you show is different than the command I sent. Can you confirm you tried:
docker exec -it proget exec /usr/local/proget/service/ProGet.Service resetadminpassword
It has a slightly different syntax than you provided. Also, what Docker host are you running?
Thanks,
Rich