[Haskell-cafe] Hackage package upload error: Invalid package

Kostiantyn Rybnikov k-bx at k-bx.com
Sun May 1 15:53:26 UTC 2016


Thank you for taking time to investigate. Indeed, just removing those
flags, uploading, and putting flags back helped for now.

Cheers.

On Sun, May 1, 2016 at 5:21 PM, Adam Bergmark <adam at bergmark.nl> wrote:

> https://github.com/haskell/hackage-server/issues/360#issuecomment-215801249
>
> On Sun, May 1, 2016 at 2:59 PM, Kostiantyn Rybnikov <k-bx at k-bx.com> wrote:
>
>> Both -Werror and -auto-all should be hidden behind a "-dev" flag, so the
>> warning is not really valid if I'm not mistaken. Plus, it had been there
>> for a while now and worked before.
>>
>> Update regarding a tls error: it seems it doesn't happen now, the log is
>> like this:
>>
>> ```
>> ➜  hedis git:(master) stack upload -v .
>> Version 1.0.4.3, Git revision db1afb275ebd64016e8ef0db122f0f03da9e5906
>> (3242 commits) x86_64
>> 2016-05-01 15:59:16.723295: [debug] Checking for project config at:
>> /home/kb/workspace/hedis/stack.yaml
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config src/Stack/Config.hs:761:9)
>> 2016-05-01 15:59:16.723597: [debug] Loading project config file
>> stack.yaml @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config
>> src/Stack/Config.hs:779:13)
>> 2016-05-01 15:59:16.761440: [debug] Checking for project config at:
>> /home/kb/workspace/hedis/stack.yaml
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config src/Stack/Config.hs:761:9)
>> 2016-05-01 15:59:16.761726: [debug] Loading project config file
>> stack.yaml @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config
>> src/Stack/Config.hs:779:13)
>> 2016-05-01 15:59:16.764059: [debug] Run process: ldd /usr/bin/stack
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:16.778551: [debug] Trying to decode
>> /home/kb/.stack/build-plan-cache/x86_64-linux/lts-5.3.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:59:16.800503: [debug] Success decoding
>> /home/kb/.stack/build-plan-cache/x86_64-linux/lts-5.3.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:59:16.800841: [debug] Trying to decode
>> /home/kb/.stack/indices/Hackage/00-index.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:59:17.180117: [debug] Success decoding
>> /home/kb/.stack/indices/Hackage/00-index.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:59:17.206082: [debug] Run process: ghc --info
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:17.274505: [debug] Run process: ghc --numeric-version
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:17.320953: [debug] Run process: ghc-pkg
>> --no-user-package-db field --simple-output Cabal version
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:17.349951: [debug] Run process: ghc-pkg
>> --no-user-package-db list --global
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:17.384645: [info] Getting file list for
>> /home/kb/workspace/hedis/ @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.SDist
>> src/Stack/SDist.hs:96:5)
>> 2016-05-01 15:59:17.388361: [debug] Checking resolver: lts-5.3
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Build.Source
>> src/Stack/Build/Source.hs:164:17)
>> 2016-05-01 15:59:17.388599: [debug] Trying to decode
>> /home/kb/.stack/build-plan-cache/x86_64-linux/lts-5.3.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:55:5)
>> 2016-05-01 15:59:17.407773: [debug] Success decoding
>> /home/kb/.stack/build-plan-cache/x86_64-linux/lts-5.3.cache
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:Data.Binary.VersionTagged
>> src/Data/Binary/VersionTagged.hs:64:13)
>> 2016-05-01 15:59:17.438372: [debug] Run process: ghc-pkg
>> --no-user-package-db list --global
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:269:3)
>> 2016-05-01 15:59:17.470217: [debug] Run process:
>> /home/kb/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
>> --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 sdist
>> --list-sources /tmp/stack-sdist11498/source-files-list
>> @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read
>> src/System/Process/Read.hs:287:3)
>> 2016-05-01 15:59:17.523577: [info] Building sdist tarball for
>> /home/kb/workspace/hedis/ @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.SDist
>> src/Stack/SDist.hs:98:5)
>> 2016-05-01 15:59:17.565851: [info] Checking package 'hedis' for common
>> mistakes @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.SDist
>> src/Stack/SDist.hs:274:5)
>> 2016-05-01 15:59:17.566205: [warn] Package check reported the following
>> warnings:
>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>> future GHC versions because new GHC versions often add new warnings. Use
>> just 'ghc-options: -Wall' instead.
>> 'ghc-prof-options: -auto-all' is fine during development, but not
>> recommended in a distributed package.
>>  @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.SDist src/Stack/SDist.hs:285:9)
>> Uploading hedis-0.8.1.tar.gz... unhandled status code: 400
>> Error: Invalid package
>>
>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>> future GHC versions because new GHC versions often add new warnings. Use
>> just 'ghc-options: -Wall' instead.
>> Upload failed on hedis-0.8.1.tar.gz
>> ```
>>
>> So, just status 400 somewhere.
>>
>> On Sun, May 1, 2016 at 3:50 PM, Michael Burge <michaelburge at pobox.com>
>> wrote:
>>
>>> For the TLS error, try generating the hackage-compatible file manually
>>> and uploading through their web interface. If that succeeds, then you can
>>> then ask where along the path from stack to hackage it differs from the
>>> manual upload. If that fails, then I would test for packet corruption on
>>> your end next.
>>>
>>> On Sun, May 1, 2016 at 5:37 AM, Michael Burge <michaelburge at pobox.com>
>>> wrote:
>>>
>>>> It gives you a warning at the end about the use of -Werror and
>>>> -auto-all. If you remove those options, does it go through?
>>>>
>>>> On Sun, May 1, 2016 at 5:31 AM, Kostiantyn Rybnikov <k-bx at k-bx.com>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> Wanted to upload the 0.8.1 version of hedis, did what I usually did,
>>>>> but getting an error. Running "stack -v upload ." seems to show some
>>>>> tls-related details.
>>>>>
>>>>> ```
>>>>> ➜  hedis git:(master) stack -v upload .
>>>>> Version 1.0.4.3 x86_64
>>>>> 2016-05-01 15:29:31.034044: [debug] Checking for project config at:
>>>>> /Users/kb/workspace/hedis/stack.yaml
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:761:9)
>>>>> 2016-05-01 15:29:31.037100: [debug] Loading project config file
>>>>> stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config
>>>>> src/Stack/Config.hs:779:13)
>>>>> 2016-05-01 15:29:31.110561: [debug] Checking for project config at:
>>>>> /Users/kb/workspace/hedis/stack.yaml
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:761:9)
>>>>> 2016-05-01 15:29:31.110690: [debug] Loading project config file
>>>>> stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config
>>>>> src/Stack/Config.hs:779:13)
>>>>> 2016-05-01 15:29:31.111459: [debug] Trying to decode
>>>>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:55:5)
>>>>> 2016-05-01 15:29:31.124939: [debug] Success decoding
>>>>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:64:13)
>>>>> 2016-05-01 15:29:31.132890: [debug] Trying to decode
>>>>> /Users/kb/.stack/indices/Hackage/00-index.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:55:5)
>>>>> 2016-05-01 15:29:31.421690: [debug] Success decoding
>>>>> /Users/kb/.stack/indices/Hackage/00-index.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:64:13)
>>>>> 2016-05-01 15:29:31.434522: [debug] Run process: ghc --info
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:269:3)
>>>>> 2016-05-01 15:29:31.498337: [debug] Run process: ghc --numeric-version
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:269:3)
>>>>> 2016-05-01 15:29:31.543696: [debug] Run process: ghc-pkg
>>>>> --no-user-package-db field --simple-output Cabal version
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:269:3)
>>>>> 2016-05-01 15:29:31.576011: [debug] Run process: ghc-pkg
>>>>> --no-user-package-db list --global
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:269:3)
>>>>> 2016-05-01 15:29:31.625682: [info] Getting file list for
>>>>> /Users/kb/workspace/hedis/ @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>>>>> src/Stack/SDist.hs:96:5)
>>>>> 2016-05-01 15:29:31.628599: [debug] Checking resolver: lts-5.3
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Build.Source
>>>>> src/Stack/Build/Source.hs:164:17)
>>>>> 2016-05-01 15:29:31.628777: [debug] Trying to decode
>>>>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:55:5)
>>>>> 2016-05-01 15:29:31.636259: [debug] Success decoding
>>>>> /Users/kb/.stack/build-plan-cache/x86_64-osx/lts-5.3.cache
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:Data.Binary.VersionTagged
>>>>> src/Data/Binary/VersionTagged.hs:64:13)
>>>>> 2016-05-01 15:29:31.650120: [debug] Run process: ghc-pkg
>>>>> --no-user-package-db list --global
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:269:3)
>>>>> 2016-05-01 15:29:31.679601: [debug] Run process:
>>>>> /Users/kb/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
>>>>> --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 sdist --list-sources
>>>>> /private/var/folders/7l/3ys9j0lx20j6z69lm6s_9r780000gn/T/stack-sdist56408/source-files-list
>>>>> @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read
>>>>> src/System/Process/Read.hs:287:3)
>>>>> 2016-05-01 15:29:31.728919: [info] Building sdist tarball for
>>>>> /Users/kb/workspace/hedis/ @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>>>>> src/Stack/SDist.hs:98:5)
>>>>> 2016-05-01 15:29:31.756558: [info] Checking package 'hedis' for common
>>>>> mistakes @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist
>>>>> src/Stack/SDist.hs:274:5)
>>>>> 2016-05-01 15:29:31.758110: [warn] Package check reported the
>>>>> following warnings:
>>>>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>>>>> future GHC versions because new GHC versions often add new warnings. Use
>>>>> just 'ghc-options: -Wall' instead.
>>>>> 'ghc-prof-options: -auto-all' is fine during development, but not
>>>>> recommended in a distributed package.
>>>>>  @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist src/Stack/SDist.hs:285:9)
>>>>> Uploading hedis-0.8.1.tar.gz... TlsExceptionHostPort (HandshakeFailed
>>>>> (Error_Packet_unexpected "Alert [(AlertLevel_Fatal,BadRecordMac)]" "
>>>>> expected: change cipher")) "hackage.haskell.org" 443
>>>>> ➜  hedis git:(master) stack upload .
>>>>> Getting file list for /Users/kb/workspace/hedis/
>>>>> Building sdist tarball for /Users/kb/workspace/hedis/
>>>>> Checking package 'hedis' for common mistakes
>>>>> Package check reported the following warnings:
>>>>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>>>>> future GHC versions because new GHC versions often add new warnings. Use
>>>>> just 'ghc-options: -Wall' instead.
>>>>> 'ghc-prof-options: -auto-all' is fine during development, but not
>>>>> recommended in a distributed package.
>>>>> Uploading hedis-0.8.1.tar.gz... unhandled status code: 400
>>>>> Error: Invalid package
>>>>>
>>>>> 'ghc-options: -Wall -Werror' makes the package very easy to break with
>>>>> future GHC versions because new GHC versions often add new warnings. Use
>>>>> just 'ghc-options: -Wall' instead.
>>>>> Upload failed on hedis-0.8.1.tar.gz
>>>>> ```
>>>>>
>>>>> Hope somebody can take a look.
>>>>> Thank you.
>>>>>
>>>>> _______________________________________________
>>>>> Haskell-Cafe mailing list
>>>>> Haskell-Cafe at haskell.org
>>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160501/ded838b8/attachment.html>


More information about the Haskell-Cafe mailing list