laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.25k stars 186 forks source link

sun.security.validator.ValidatorException: PKIX path building failed #314

Closed yojiwatanabe closed 6 years ago

yojiwatanabe commented 6 years ago

I've been trying to push my website to my S3 bucket but run into the following error when running s3_website push. I am running JDK8 on macOS 10.13.6. Does anyone have any pointers of how I might go about fixing this?

$ s3_website push --verbose
[debg] Using /var/folders/jd/f8qvgnns6s92ssv9sj45hfqw0000gn/T//s3_website-3.4.0.jar
[info] Deploying /Users/ywatanabe/Documents/code/jekyll-site/_site/* to xxxxxxxx.com
[debg] Querying S3 files
[debg] Excluded s3_website.yml from upload
[wait] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Trying again in 1 second.
[debg] Querying S3 files
[wait] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Trying again in 2 seconds.
[debg] Querying S3 files
[wait] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Trying again in 3 seconds.
[debg] Querying S3 files
[wait] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Trying again in 5 seconds.
[debg] Querying S3 files
[wait] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target). Trying again in 8 seconds.
[debg] Querying S3 files
[fail] Failed to fetch an object listing (Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
[info] Summary: 2 operations failed.
[fail] Failed to push the website to xxxxxxxx.com
yojiwatanabe commented 6 years ago

Fixed! Just had to turn off my anti-virus