S3 Deployment hanging

S3 Deployment's Avatar

S3 Deployment

Sep 29, 2016 @ 04:12 PM

Hey. Super cool service I am very happy to be able to use for free. Thanks!

I'm trying to deploy my super simple .net core MVC6 app to a S3 bucket I made for the purpose, but no matter what I try, the Deployment just hangs forever and never finishes. The duration timer just keeps going up with no output at all.

I've tried all sorts of weird things including setting up special accounts, new buckets, different regions, opening all permissions, etc. The bucket always remains untouched and appveyor runs forever on deploying. Any ideas?

  1. 1 Posted by Ilya Finkelshte... on Sep 30, 2016 @ 12:00 AM

    Ilya Finkelshteyn's Avatar

    Hmm, just tried and it worked for me. Could you please share your appveyor.yml and (if possible) your app in public repo?

    Thank you,
    Ilya.

  2. 2 Posted by S3 Deployment on Sep 30, 2016 @ 12:05 PM

    S3 Deployment's Avatar

    I posted a reply but it doesn't seem like it showed up here, will do it again. Anyway, I finally got it to work by adding the "artifacts: " in the global scope of my yml. This should probably be fixed, because without it, the deploy phase just goes on forever never succeeding. I wrongly assumed the compiled code from the build, would be the uploaded/deployed project. But I had to manually specify it like here for it to work: https://github.com/amivit/Straight-Line/blob/master/appveyor.yml#L24-L25

    It's a bit confusing for me, because I don't know what the difference is between the global-scope "artifacts: " and the "artifact: " from within the "deploy: " section. Doesn't seem too well documented, I just assumed artifacts in general were optional extra things your project relies on.

  3. 3 Posted by Ilya Finkelshte... on Sep 30, 2016 @ 06:25 PM

    Ilya Finkelshteyn's Avatar

    Under artifacts in global scope you can specify number of them, then deploy each in different way. It is not always true that you deploy all artifacts you package.

    What about S3 deployment stuck forever issue – I cannot reproduce it… Can you please share .yml file for the moment of a repro and send a link to build job when S3 deployment stuck?

    Thank you,
    Ilya.

  4. 4 Posted by S3 Deployment on Sep 30, 2016 @ 09:32 PM

    S3 Deployment's Avatar

    I finally got everything working as I want but for the sake of appveyor I will show you now how I reproduce the bug. I remove artifacts: from my config and on the deploy phase we are stuck here forever. I realize it makes perfect sense since appveyor doesn't know WHAT to package, but it is still a bit confusing until you realize this and configure your artifacts: correctly.
    https://github.com/amivit/Straight-Line/commit/c0d527cef08f1202ec7a194effa962a4e2a8080a
    https://ci.appveyor.com/project/amivit/straight-line/build/1.0.52

  5. 5 Posted by Ilya Finkelshte... on Sep 30, 2016 @ 09:45 PM

    Ilya Finkelshteyn's Avatar

    Ah OK, by “stuck forever” you mean “do nothing”… My understanding of this term is that build does not finish, until timeout expires. As I understand you prefer deployment to fail when no artifacts found instead of silently do nothing. Yes, this makes sense.

  6. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:09 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac