• Resolved yarishima42

    (@yarishima42)


    Hi there,

    I wanted to deploy my wordpress site to netlify.
    The static ste export stops always at this line:

    `$client = new Client(array(
    // Base URI is used with relative requests
    ‘base_uri’ => ‘https://api.netlify.com’
    ));

    Maybe you can help?

    Best regards
    Holger

    • This topic was modified 7 years, 11 months ago by yarishima42.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi @yarishima42,

    Thanks for using the plugin and sorry to hear you’re having an issue.

    I’ll do some quick testing to ensure the Netlify is working still for me.

    Could you please include your Export Log here or email to me [email protected]?

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi @yarishima42,,

    I can indeed reproduce the issue and it’s a bug.

    I’ve identified the cause and I will have a fix deployed today in a release.

    Sorry for the inconvenience.

    In the meantime, if you use the “create Zip” option, you can then login to Netlify and drag and drop your ZIP file on the Deployments screen to manually deploy your site.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi @yarashima42,

    Could you please test that this build solves your problem?

    https://github.com/leonstafford/wordpress-static-html-plugin/blob/master/yarashima.zip

    I have quickly tested it here and seems to fix an issue with both BunnyCDN and Netlify export options.

    *Note, you will need to choose the option “Create a ZIP file” for the Netlify export to work.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi @yarishima42,

    I’ve now released this fix, along with some others in version 2.8 of the plugin, which you can install via your WP dashboard.

    I’ll mark this as resolved, if any further issues, please let me know.

    Cheers,

    Leon

    Thread Starter yarishima42

    (@yarishima42)

    Hi @leonstafford,

    The update didn’t fix the behaviour. I think it stops at the same line in code. I’ll sent my export log via email.

    Best
    Holger

    Thread Starter yarishima42

    (@yarishima42)

    @leonstafford Ah, sorry, got to test ist again. Netlify shows a deploy activity now. Got to test once more.

    Thread Starter yarishima42

    (@yarishima42)

    Hi @leonstafford,

    Ok, this bug seems to be fixed. Tested it with a comment in the try-catch-loop. But in plugin admin it shows the red cross.

    My ZIP is 360MB so I wait, maybe it is time consuming to upload this file to netlify.
    Or are there some other known restrictions?

    Best
    Holger

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Holger,

    OK, good to see progress.

    There is a rather small limit for Netlify sites, I hit this a while ago, it may have been 200 MB, I’ll check my support thread with them…

    If not for their awesome form handling, I could recommend looking at BunnyCDN, I’ll be adding a guide soon, but the key is that you use their Document Storage, not their main CDN setup…

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Holger,

    It was only 100MB that they cut me off on:

    Re: your failing deploy – seems like you’ve exceeded our maximum site size on that repository – I didn’t know we had this limitation, but it seems like we’re cutting you off at 100MByte.

    And no easy way to bump that up that I could find. Perhaps if pays for the premium version, but I’d want to be sure there is a higher limit in that case. 100MB is not a lot, once a WP site has a few photos uploaded.

    For free, I’d suggest S3 and CloudFront free tier if you can get a new AWS account. BunnyCDN is almost free and quite fast.

    I’m looking to add a few more export targets and do some benchmarking/comparison on good affordable static hosting options. I’m quite enjoying doing some testing on Digital Ocean $5/month Droplets at the moment, but $5/month is still a cost we don’t need for a static site if we’re prepared to explore other options.

    If this has been helpful to you, please give me a boost by giving a quick star rating here: https://ww.wp.xz.cn/support/plugin/static-html-output-plugin/reviews/

    Cheers,

    Leon

    Thread Starter yarishima42

    (@yarishima42)

    Hi Leon,

    So I set up S3 with cloudfront. There I get this message at the end of the export log:

    2018-06-18 12:30:14 S3Response Object
    (
    [error] => Array
    (
    [code] => InvalidRequest
    [message] => The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
    )

    [code] => 400
    [headers] => Array
    (
    [x-amz-request-id] => ....
    [x-amz-id-2] => ....
    [x-amz-region] => eu-central-1
    [Content-Type] => application/xml
    [Transfer-Encoding] => chunked
    [Connection] => close
    [Server] => AmazonS3
    )

    [body] => <?xml version="1.0" encoding="UTF-8"?>
    <Error>InvalidRequest<Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>.....</RequestId><HostId>....</HostId></Error>
    )

    2018-06-18 12:30:14 S3 EXPORT: following error returned from S3:
    2018-06-18 12:30:14 S3 EXPORT: transferring index.html TO 1997/10/index.html
    2018-06-18 12:30:14 S3 EXPORT: Transferring files...

    It seems like this endpoint in Frankfurt needs signature version 4: https://stackoverflow.com/questions/26533245/the-authorization-mechanism-you-have-provided-is-not-supported-please-use-aws4/41277519

    Best
    Holger

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Holger,

    Wow, thanks for including so many details, this is very useful.

    OK, I’ve created an issue to track this here and will look into it now:

    https://github.com/leonstafford/wordpress-static-html-plugin/issues/99

    I’ll keep you posted.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Holger,

    OK, this looks like it will take me more than a few minutes to solve.

    In the meantime, could I recommend you try one of the us-east-1 or us-west-2 or I have been using ap-southeast-1 in most recent tests, so that will work with the older method.

    Once you have the data in S3, CloudFront will be serving it quickly to your users, so the initial endpoint is more about speed from your WP server and potential cost differences going between datacentres, if applicable in this case.

    In the meantime, I’ll keep working on this issue.

    Cheers,

    Leon

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Can’t deploy to netlify’ is closed to new replies.