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!

    Cannot upload deb file to feed

    Scheduled Pinned Locked Moved Support
    6 Posts 3 Posters 22 Views 1 Watching
    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.
    • S Offline
      smccormack
      last edited by

      I am trying to upload the current check_mk agent deb file (check-mk-agent_2.0.0p3-1_all.deb) to the feed I created using the webinterface. This produces the following error:

      f970a0d8-a39f-426a-aeae-431894a792f9-grafik.png

      this is the full text of the error message:

      System.IO.InvalidDataException: archive is corrupt or not a debian package
         at Inedo.ProGet.Feeds.Debian.ArReader.ReadAsync(Stream stream) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\ArReader.cs:line 38
         at Inedo.ProGet.Feeds.Debian.DebianPackage.FromStreamAsync(String component, Stream packageStream) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\DebianPackage.cs:line 41
         at Inedo.ProGet.Feeds.Debian.DebianFeed.InstallPackageInternalAsync(String component, Stream packageStream, InstallPackageOptions options, Boolean promoted) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\DebianFeed.cs:line 300
         at Inedo.ProGet.WebApplication.Pages.Debian.Packages.UploadDebianPackagePage.<>c__DisplayClass7_0.<<CreateChildControls>b__0>d.MoveNext() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGet.WebApplication\Pages\Debian\Packages\UploadDebianPackagePage.cs:line 66
      

      I can install this deb file without any problems using apt install /tmp/check-mk-agent_2.0.0p3-1_all.deb Uploading other deb files works

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

        Hello; can you share this file to us?

        Feel free to email it to support at inedo dot com, but please add [QA-586] to the subject, so we can track this internally.

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

          Hello just confirming we received it! We can now begin the investigation of the problem from here.

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

            Hi,

            It looks like that file isn't a valid debian package file. According to the .deb file specifications, a file named debian-binary should be the first item, but instead, there's one named debian-binary/. You can see this by opening the file with a text editor: invalidpackage.PNG

            Do you know what was used to generate the package?

            1 Reply Last reply Reply Quote 0
            • S Offline
              smccormack
              last edited by

              Hi,

              thanks for the information. I do not know how it was created as it comes as part of the opensource monitoring project checkmk. With your information I was able to repack it using the following commands

              fakeroot sh -c '
              mkdir tmp
              dpkg-deb -R file.deb tmp
              dpkg-deb -b tmp file-new.deb
              '
              

              Afterwards I was able to upload it.

              Nevertheless you might want to consider allowing trailing slashes in a future release as the link you provided states they are allowed:

              ...Only the common ar archive format is supported, with no long file name extensions, but with file names containing an optional trailing slash, which limits their length to 15 characters (from the 16 allowed)....

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

                Looks like that was our mistake, and we missed that line in the spec. This has now been logged as PG-1964, and it will be fixed in ProGet 5.3.30, scheduled for release on May 28.

                Thanks for pointing it out, and sorry for the inconvenience!

                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