Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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 maven connector zero byte files

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 6 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      grant.sparks_1282
      last edited by

      I've reproduced this error now in two separate installations of Proget. Both are running ProGet Version 5.3.36 (Build 4), one is in a docker container hosted on Centos linux, and the other was installed on a Windows server using Inedo Hub. We've configured multiple types of feeds (nuget, npm, maven) and only the maven feed is showing this problem.

      Here are the steps I took to reproduce the error in the second installation.

      1. Installed Proget on Windows using Inedo Hub
      2. Configured a maven feed, and added a single connector to https://repo1.maven.org/maven2
      3. Executed a maven build using the Proget feed for the repository
      4. For every artifact that Proget mirrors from the Maven repo, all of the POM files are zero bytes in length. All of the artifact metadata is correct (description, version numbers etc) however if you directly download the POM file from the feed, it is always zero bytes. e.g., http://localhost:8624/maven2/test-maven/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom

      I've done the following analysis.

      • The files on disk are zero bytes in size in Proget's package store at C:\ProgramData\ProGet\Packages.maven2
      • Using Fiddler as a proxy, I can see that ProGet is successfully connecting to the maven repo and downloading the files and that there is no connection problems and the entire contents of the files are being transferred.

      So the issue appears to be happening when saving the files into the ProgramData storage. Since I've reproduced this on two completely different installations that are even running on different networks, and since Fiddler shows me that the HTTP transfers are successful and contain valid data, the problem seems to be with ProGet.

      The only error messages I can see in the Diagnostic Center look to me as if they are side effects of ProGet trying to process package info from zero byte files so are not the cause of the problem.

      4ee242cc-44ce-4e2a-81fe-509f5b1624de-image.png

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hi @grant-sparks_1282,

        Thank you for the very detailed information in sharing the problem and reproduction instructions. Based on this, I'm convinced you've run into this issue: PG-2005 (POM files downloaded from Maven feeds may be saved with empty contents).

        ProGet 5.3.37 (which has that fix) is scheduled to be fixed on Friday, but we may release it sooner given the impact. It's holiday in US, otherwise we likely would have done it today already😅

        Anyways, you have two choices:

        1. [Recommended] Upgrade to ProGet 5.3.37-rc.2; for the Inedo Hub installation, you just need to switch to the Prerelease Feed

        2. Downgrade to ProGet 5.3.34

        The only difference between 5.3.36 and 5.3.37-rc.2 is that single issue (PG-2005).

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation