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!

    0 byte download when using pgutil assets/packages download in github workflow

    Scheduled Pinned Locked Moved Support
    4 Posts 4 Posters 27 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.
    • M Offline
      mmaharjan_0067
      last edited by

      I have a custom github action that runs the commands explicitly:

      pgutil sources add --name=Default --url=<myURL> --api-key=<myKey>
      pgutil packages list --feed=<myFeed>
      pgutil packages download --source=Default --feed=<myFeed> --package=7zip --version=latest
      

      which results in:

      Storing credentials. Note: Sensitive values are obfuscated but not securely encrypted.
      <long list of available packages appended by latest version>
      Downloading 7zip latest from <myFeed> feed...
        Saving package to 7zip.24.9.0.nupkg...
        Download complete (0 bytes)
      

      a simple list shows the file is actually 0 bytes.
      This happens for Mac/Windows/Linux github runners and self hosted runners.
      When I run the above on my PC in powershell it downloads fine with a non-zero file size.

      Is this to do with permissions, it's able to get the right version? Same thing happens with Assets.
      The Api key has download permissions to the feed.

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @mmaharjan_0067
        last edited by

        Hi @mmaharjan_0067 ,

        I'm afraid we're at a loss here; as you noticed, it works fine on the command line - but there's just something "off" about your runner.

        The only thing we can figure is some kind of network block or interference. We don't really have a way to test/debug this any further.

        Thanks,
        Steve

        1 Reply Last reply Reply Quote 0
        • L Offline
          layfield_8963
          last edited by

          Hi,

          Adding to this ticket rather than starting a new one.

          I'm finding that the pgutil assets download command doesn't work when run remotely via SSH. I'm trying to use it in an Ansible role, and it's giving me the same 0 bytes downloaded.

          It seems the command works fine if you SSH directly into the server and run it there. For example: ssh username@server-ip 'pgutil assets download --feed=feedname --path=path --output=output' will give you a zero-byte output when run remotely.

          For the moment I will switch to using curl for my download.

          Thanks

          1 Reply Last reply Reply Quote 0
          • gdivisG Offline
            gdivis inedo-engineer
            last edited by

            Hi @layfield_8963,

            Looks like this was just a simple bug preventing output from being written when stdout has been redirected. It's now fixed in pgutil 2.1.1.

            Thanks for the update!
            -Greg

            1 Reply Last reply Reply Quote 1

            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