Giter Site home page Giter Site logo

Comments (9)

bep avatar bep commented on May 25, 2024

I have pushed a fix that should fix the deadlock issue. Note that I suspect this situation only happens in error situations, so your problem is most likely not 100% fixed, but now it should be easier to debug.

from s3deploy.

bep avatar bep commented on May 25, 2024

And please let me know if this helped -- if you don't see any error in the console, I may have to dig some more.

from s3deploy.

01AutoMonkey avatar 01AutoMonkey commented on May 25, 2024

Using the latest version I get:

s3deploy 1.1.1, commit 06dd326d8838bbf4f62304af49f3a1803a99bed1, built at 2017-11-30T19:12:40Z
Deleted: 0 Uploaded: 0 Skipped: 0 (NaN% changed)

I just cd into my hugo site directory which contains a public/ and execute the command like so (excluding bucket name, key, and secret from example): s3deploy -v -source=public/ -region=eu-west-2 -bucket=<mybucketname> -key=<mykey> -secret=<mysecret>.

I've also set the IAM action permissions for my bucket, just a copy/paste from the README.md and inserted my actual bucket name.

I've tried it with and without a .s3deploy.yml file.

Forestry.io has been handling my deploys up until now, so it's not an empty bucket, but I've also tried deleting all objects in my bucket before executing the command.

from s3deploy.

bep avatar bep commented on May 25, 2024

This is hard for me to debug with what you say. I have not experienced this, and I have used it a lot.

May be a path issue. Are you on Windows?

from s3deploy.

bep avatar bep commented on May 25, 2024

@01AutoMonkey see #8 -- while it may not solve your issue, I notice that there are some errors that should be handled better -- I will fix that.

from s3deploy.

01AutoMonkey avatar 01AutoMonkey commented on May 25, 2024

I'm on Ubuntu and I've tried all variations of the source path (absolute path, ~/... path, relative path).

Also, playing around with the code I notice d.FileCount() returns 0, which may explain the (NaN% changed).

from s3deploy.

bep avatar bep commented on May 25, 2024

That is weird, I have several sites that deploys from CircleCI on LInux, e.g.:

https://github.com/bep/bego.io/blob/master/circle.yml

I will do more on the error handling on this in a day or two.

from s3deploy.

01AutoMonkey avatar 01AutoMonkey commented on May 25, 2024

Adding print like so:

	// List all files in the remote bucket
	contents, err := destBucket.GetBucketContents()
	if err != nil {
		fmt.Println(err)
		return stats, err
	}

Results in:

s3deploy dev, commit none, built at unknown
Get /test.bucket.is/?delimiter=&marker=&max-keys=1000&prefix=: unsupported protocol scheme ""
Deleted: 0 Uploaded: 0 Skipped: 0 (0% changed)

Which lead me to realize that eu-west-2 isn't part of aws.Regions (maybe it's too new?), if I replace it with eu-west-1 (which is part of aws.Regions) I get a slightly different error:

s3deploy dev, commit none, built at unknown
Get https:/test.bucket.is/?delimiter=&marker=&max-keys=1000&prefix=: 301 response missing Location header
Deleted: 0 Uploaded: 0 Skipped: 0 (0% changed)

The URL is now a bit better but not quite (though it would be wrong anyway given my actual region is eu-west-2.

This is most likely the same error Alan_F got at: https://discourse.gohugo.io/t/howto-deploying-hugo-on-s3-and-cloudfront/2800/26

from s3deploy.

bep avatar bep commented on May 25, 2024

The solution is probably in #3

from s3deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.