Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find data.tar.* #451

Closed
avongluck-r1soft opened this issue Oct 24, 2016 · 1 comment
Closed

Unable to find data.tar.* #451

avongluck-r1soft opened this issue Oct 24, 2016 · 1 comment
Labels

Comments

@avongluck-r1soft
Copy link

Invalid deb package got into the repo. (Likely a bad upload) Aptly panics whenever it encounters it.

Oct 14 14:31:57 APTLY aptly[656]: 2016/10/14 14:31:57 PANIC: unable to find data.tar.* part in /repo/.aptly/pool/9f/e6/mypackage_2.1.0-45_amd64.deb
Oct 14 14:31:57 APTLY aptly[656]: /usr/local/Cellar/go/1.5.3/libexec/src/runtime/panic.go:423 (0x4296b9)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/package.go:427 (0x53aa94)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/package_collection.go:183 (0x53f76b)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/package.go:410 (0x53a8a5)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/contents.go:26 (0x51f03a)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/publish.go:568 (0x56b915)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/list.go:169 (0x52e79d)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/deb/publish.go:593 (0x549ff5)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/api/publish.go:307 (0x4c72bc)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/context.go:114 (0x67a07f)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/api/router.go:43 (0x4d1034)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/context.go:114 (0x67a07f)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/logger.go:30 (0x68257c)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/context.go:114 (0x67a07f)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/logger.go:49 (0x6826c5)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/context.go:114 (0x67a07f)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/recovery.go:96 (0x6831a8)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/context.go:114 (0x67a07f)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/routergroup.go:57 (0x683280)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/julienschmidt/httprouter/router.go:276 (0x7c23fd)
Oct 14 14:31:57 APTLY aptly[656]: /Users/smira/Documents/go/src/github.com/smira/aptly/_vendor/src/github.com/gin-gonic/gin/gin.go:126 (0x67de53)
Oct 14 14:31:57 APTLY aptly[656]: /usr/local/Cellar/go/1.5.3/libexec/src/net/http/server.go:1862 (0x4f682e)
Oct 14 14:31:57 APTLY aptly[656]: /usr/local/Cellar/go/1.5.3/libexec/src/net/http/server.go:1361 (0x4f3ede)
Oct 14 14:31:57 APTLY aptly[656]: /usr/local/Cellar/go/1.5.3/libexec/src/runtime/asm_amd64.s:1721 (0x45c181)

Desired behavior: Aptly detects the bad upload via the API and lets the user know. The deb doesn't get injected into the repos. The deb in this example was 0-bytes.

@smira smira added the bug label Feb 15, 2017
@smira smira added the 1.1.0 label Mar 30, 2017
@smira
Copy link
Contributor

smira commented Mar 30, 2017

Should be fixed in #534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants