<div dir="ltr">Thank you for taking time to investigate. Indeed, just removing those flags, uploading, and putting flags back helped for now.<div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 5:21 PM, Adam Bergmark <span dir="ltr"><<a href="mailto:adam@bergmark.nl" target="_blank">adam@bergmark.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><a href="https://github.com/haskell/hackage-server/issues/360#issuecomment-215801249" target="_blank">https://github.com/haskell/hackage-server/issues/360#issuecomment-215801249</a><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 2:59 PM, Kostiantyn Rybnikov <span dir="ltr"><<a href="mailto:k-bx@k-bx.com" target="_blank">k-bx@k-bx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>Update regarding a tls error: it seems it doesn't happen now, the log is like this:</div><div><br></div><div>```</div><div><div>➜  hedis git:(master) stack upload -v .</div><div>Version 1.0.4.3, Git revision db1afb275ebd64016e8ef0db122f0f03da9e5906 (3242 commits) x86_64</div><div>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)</div><div>2016-05-01 15:59:16.723597: [debug] Loading project config file stack.yaml @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config src/Stack/Config.hs:779:13)</div><div>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)</div><div>2016-05-01 15:59:16.761726: [debug] Loading project config file stack.yaml @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.Config src/Stack/Config.hs:779:13)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>2016-05-01 15:59:17.206082: [debug] Run process: ghc --info @(stack_JlzIf2rBNeuFEjNaHJwIZR:System.Process.Read src/System/Process/Read.hs:269:3)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>2016-05-01 15:59:17.565851: [info] Checking package 'hedis' for common mistakes @(stack_JlzIf2rBNeuFEjNaHJwIZR:Stack.SDist src/Stack/SDist.hs:274:5)</div><div>2016-05-01 15:59:17.566205: [warn] Package check reported the following warnings:</div><span><div>'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.</div></span><div>'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)</div><span><div>Uploading hedis-0.8.1.tar.gz... unhandled status code: 400</div><div>Error: Invalid package</div><div><br></div><div>'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.</div><div>Upload failed on hedis-0.8.1.tar.gz</div></span></div><div>```</div><div><br></div><div>So, just status 400 somewhere.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 3:50 PM, Michael Burge <span dir="ltr"><<a href="mailto:michaelburge@pobox.com" target="_blank">michaelburge@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 1, 2016 at 5:37 AM, Michael Burge <span dir="ltr"><<a href="mailto:michaelburge@pobox.com" target="_blank">michaelburge@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sun, May 1, 2016 at 5:31 AM, Kostiantyn Rybnikov <span dir="ltr"><<a href="mailto:k-bx@k-bx.com" target="_blank">k-bx@k-bx.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi!<div><br></div><div>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.</div><div><br></div><div>```</div><div><div>➜  hedis git:(master) stack -v upload .</div><div>Version 1.0.4.3 x86_64</div><div>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)</div><div>2016-05-01 15:29:31.037100: [debug] Loading project config file stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:779:13)</div><div>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)</div><div>2016-05-01 15:29:31.110690: [debug] Loading project config file stack.yaml @(stack_2rXRdr1j02iFXWAif5re4K:Stack.Config src/Stack/Config.hs:779:13)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>2016-05-01 15:29:31.434522: [debug] Run process: ghc --info @(stack_2rXRdr1j02iFXWAif5re4K:System.Process.Read src/System/Process/Read.hs:269:3)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>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)</div><div>2016-05-01 15:29:31.756558: [info] Checking package 'hedis' for common mistakes @(stack_2rXRdr1j02iFXWAif5re4K:Stack.SDist src/Stack/SDist.hs:274:5)</div><div>2016-05-01 15:29:31.758110: [warn] Package check reported the following warnings:</div><div>'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.</div><div>'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)</div><div>Uploading hedis-0.8.1.tar.gz... TlsExceptionHostPort (HandshakeFailed (Error_Packet_unexpected "Alert [(AlertLevel_Fatal,BadRecordMac)]" " expected: change cipher")) "<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>" 443</div><div>➜  hedis git:(master) stack upload .</div><div>Getting file list for /Users/kb/workspace/hedis/</div><div>Building sdist tarball for /Users/kb/workspace/hedis/</div><div>Checking package 'hedis' for common mistakes</div><div>Package check reported the following warnings:</div><div>'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.</div><div>'ghc-prof-options: -auto-all' is fine during development, but not recommended in a distributed package.</div><div>Uploading hedis-0.8.1.tar.gz... unhandled status code: 400</div><div>Error: Invalid package</div><div><br></div><div>'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.</div><div>Upload failed on hedis-0.8.1.tar.gz</div></div><div>```</div><div><br></div><div>Hope somebody can take a look.</div><div>Thank you.</div></div>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>