"unable to read .tar archive" error

168 views
Skip to first unread message

pkr...@krux.com

unread,
Nov 25, 2015, 7:23:08 PM11/25/15
to aptly-discuss
Hi, somehow I have managed to get a corrupt file in to my aptly repo, the data.tar.gz payload is the wrong length.

Now when I try to publish, I get:

panic: unable to read .tar archive from /data/c_aptly/aptly/pool/53/5e/some-package_1.0.0_amd64.deb: unexpected EOF

[ I opened a pull request with the file path included in the error output. ]

I've removed the package from the snapshot I am trying to publish. I also tried moving.removing the file from that filesystem location, but when I publish I get an error that the file is not there. e.g.:

ERROR: unable to publish: unable to process packages: open /data/c_aptly/aptly/pool/53/5e/some-package_1.0.0_amd64.deb: no such file or directory

I don't really need the package in question, is has since been overshadowed by a package from Ubuntu.

Thanks,

Paul

Andrey Smirnov

unread,
Dec 3, 2015, 5:00:33 AM12/3/15
to pkr...@krux.com, aptly-discuss
Hi Paul!

First of all you can try skipping contents generation with -skip-contents flag to publish command.

If you remove any file from aptly/pool directory, you would break aptly. Removing package from snapshot should be enough to fix that problem.

Anyway, I see many problems with contents generation, thinking if those errors could be reported but not fatal for publishing process.

--
You received this message because you are subscribed to the Google Groups "aptly-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages