Comments (9)
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.
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.
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.
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.
@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.
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.
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.
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.
The solution is probably in #3
from s3deploy.
Related Issues (20)
- Invalidating multiple CDN HOT 4
- Invalid memory address or nil pointer dereference HOT 1
- Add support for SSE aws:kms and kms-key-id HOT 2
- Fix the brew release for > 2.9.0
- s3deploy_2.9.0_windows-amd64.zip contains `hugo.exe` HOT 3
- s3deploy credentials sourcing HOT 3
- No binaries for the 2.10 release HOT 2
- Force setting does not force? HOT 2
- Inconsistent verbose output
- Encode unsafe characters in CloudFront cache invalidation paths
- Missing newline in output when enqueuing file HOT 1
- Prettify output? (Feature request, rather than an issue) HOT 2
- Decrease max-age Cache-control value used in examples to follow RFC
- Feature request: Allow opt in (whitelist) of hidden folders HOT 1
- Using Circleci Auto-deploy is suddenly stopped HOT 1
- flag provided but not defined: -distribution-id HOT 4
- Security-related Headers in s3deploy.yml? HOT 5
- Allow setting other canned ACLs for uploaded files
- CDN invalidate does not handle root context stored in a bucket sub path
- fatal: unable to access 'https://gopkg.in/yaml.v2/': server certificate verification failed. CAfile: none CRLfile: none HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3deploy.