TIL that PowerShell can use internal CLR generic reference type names like that! But really, please don't do that...
[System.Nullable``1[[System.Int32]]]
[Nullable[int]]
... much easier to read
TIL that PowerShell can use internal CLR generic reference type names like that! But really, please don't do that...
[System.Nullable``1[[System.Int32]]]
[Nullable[int]]
... much easier to read
You can ignore this error; for whatever reason, the NuGet client unexpectedly terminated the connection, and the result was that ProGEt stopped writing bytes. Not really anything to worry about.
The diagnostic center isn't for proactive-monitoring, more for diagnostic purposes. So ulnless users are reporting a problem, you don't need to check it.
Hi @jimbobmcgee ,
Thanks for all the details; we plan to review/investigate this via OT-518 in an upcoming maintenance release, likely in the next few two-week cycles.
-- Dean
Hi @andreas-unverdorben_1551 ,
npmjs.org primarily serves static content and runs on massive server farms running in Microsoft's datacenters.
Your ProGet server is much less powerful and does not serve static content. Not only is every request is dynamic (authentication, authorization, vulnerability checking, license checking, etc), but most requests (such as "what is the latest version of package X") need to be forwarded to npmjs.org and aggregated with local data.
So, a much less powerful server doing a lot more processing is going to be a little slower ;)
Running ProGet in a server cluster will certainly help.
Cheers,
Dean
Hi @kichikawa_2913,
We see multiple connectors pretty often, and it rarely presents a problem.
The main downside comes in the overhead of aggregation; for some queries like "list all package versions", each connector will need to be queried and have the results aggregated. So it could cause performance issues for for very high-traffic feeds - at least that's what we see on the support side of things.
However, if you plan on using a package-approval workflow, then it won't be a problem, as your approved-npm
feed wouldn't have any connectors.
Hope that gives some insight,
Dean
@joel-shuman_8427 thanks for the heads up!
I just updated it
https://github.com/Inedo/inedo-docs/blob/master/CONTRIBUTING.md
Hi @uwer_4638 ,
The underlying issue is that you're making a "NuGet v2 API" request to your ProGet feed, which ProGet is then forwarding to connectors, and DevExpress does not support NuGet API V2.
So, you'll need to track down whatever is making that request (perhaps you're using an old endpoint URL), or simply just disable the V2 API on your feed. This will cause an error on the client, and should show you pretty quickly what's making that outdated call.
-- Dean
@layfield_8963 great news, that was a really strange error. The UI upload uses some kind of chunking and file appending, so it sounds like that was it.
Hi @scusson_9923,
In this case, you'll likely want to select 5
as the type.
For reference, here are the valid types:
//
// Summary:
// Specifies the type of a raft item.
//
// Remarks:
// All types except BinaryFile and TextFile are "regulated" and only allow well-known
// files; for example,
public enum RaftItemType
{
//
// Summary:
// A role configuration plan.
RoleConfigurationScript = 1,
//
// Summary:
// [Uninclused] A Script with .otter syntax is prefered
OrchestrationPlan = 2,
//
// Summary:
// [Uninclused] A Script with .otter syntax is prefered
Module = 3,
//
// Summary:
// A script.
Script = 4,
//
// Summary:
// An unclassified binary file.
//
// Remarks:
// BinaryFiles cannot be edited in a text editor, compared, etc; they are always
// treated as raw content
BinaryFile = 5,
//
// Summary:
// A deployment plan.
DeploymentScript = 6,
//
// Summary:
// An unclassified text file.
//
// Remarks:
// TextFiles can be edited in UI , may have lines replaced on deploy, and can be
// used as templates
TextFile = 7,
//
// Summary:
// A pipeline.
Pipeline = 8,
//
// Summary:
// [Uninclused] Feature is deprecated
ReleaseTemplate = 9,
//
// Summary:
// A job template.
JobTemplate = 10,
//
// Summary:
// Files used with build tools like Dockerfile.
BuildFile = 11
}
I'm not sure if TextFile (7) will work; in Otter it was intended to be used as a text template, which means lines in it are replacement. You may need to play around and see what works.
-- Dean
Hi @scusson_9923 ,
What is the file you are uploading? What happens when you upload through the UI?
Can you share the PowerShell snippet you're using?
What are you specifying for RaftItemType_Code
?
-- Dean
@kc_2466 the "invalid feed type" will come up if you have a connector or feed that was created in a newer version of ProGet that wasn't available in an older version of ProGet... and you downgraded to the older version.
It looks like it's a connector, based on the URL. Easiest way to fix is to just upgrade, delete, downgrade
@kc_2466 thanks for the heads up, we'll target reviewing/fixing this for the following maintenance release (i.e. 2024.27 / Feb 21) via PG-2893
Hi @jimbobmcgee ,
Thanks for all the details; we plan to review/investigate this via OT-518 in an upcoming maintenance release, likely in the next few two-week cycles.
-- Dean
Hi @caterina ,
Looking over the code, I can see that; we will also fix that in the next maintenance release. The notifier should not be dispatched when there are 0 issues.
-- Dean
@cooperje_6513 that error means that the Windows service account user does not have access to the SQL Server database; you'll want to grant NT AUTHORITY\NETWORK SERVICE
access
You can do this with SQL Server Management Studio, or a scritp like this should work:
CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS WITH DEFAULT_DATABASE=[ProGet]
CREATE USER [NT AUTHORITY\NETWORK SERVICE] FOR LOGIN [NT AUTHORITY\NETWORK SERVICE]
ALTER USER [NT AUTHORITY\NETWORK SERVICE] WITH DEFAULT_SCHEMA=[dbo]
ALTER ROLE [ProGetUser_Role] ADD MEMBER [NT AUTHORITY\NETWORK SERVICE]
Hi @caterina ,
I was able to find the issues; the correct value should be this:
$ToJson(%(
issues: @BuildIssues,
buildNumber: $BuildNumber,
releaseNumber: $BuildReleaseNumber,
projectName: $BuildProjectName
))
I've updated the documentation and also ProGet (via PG-2890), which will be in teh next maintenance release. But if you use the above template it should work.
-- Dean