Forums

[Plugin: W3 Total Cache] Request Failed when uploading to Cloudfront (22 posts)

  1. tiernano
    Member
    Posted 2 years ago #

    Good morning.

    Just installed W3 Total Cache on a custom install from SVN on my Ubuntu box. have all my settings enabled, but when i click the test upload to CloudFront, it stays on "Testing..." and never changes... when i click the "upload includes" button, and select upload, it takes a few seconds and then shows "request failed... waiting 10 seconds" and continues doing this.

    I have checked my settings multiple times, and still nothing. Is there a log file somewhere to indicate what is going wrong? it would be nice to get a message other than "request failed"...

    Thanks.

  2. Frederick Townes
    Member
    Posted 2 years ago #

    Perhaps cURL PHP extension is not installed? Can you check the AJAX response when you click the button using Firebug console by any chance?

  3. tiernano
    Member
    Posted 2 years ago #

    checking the response i get the following:

    {results: [
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-comments.png', remote_path: 'wp-includes/images/wlw/wp-comments.png', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-icon.png', remote_path: 'wp-includes/images/wlw/wp-icon.png', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-watermark.png', remote_path: 'wp-includes/images/wlw/wp-watermark.png', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-watermark.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-watermark.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-icon.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-icon.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-comments.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-comments.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-watermark.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-watermark.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-icon.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-icon.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-comments.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-comments.png.svn-base', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_confused.gif', remote_path: 'wp-includes/images/smilies/icon_confused.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_eek.gif', remote_path: 'wp-includes/images/smilies/icon_eek.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_lol.gif', remote_path: 'wp-includes/images/smilies/icon_lol.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_rolleyes.gif', remote_path: 'wp-includes/images/smilies/icon_rolleyes.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_mrgreen.gif', remote_path: 'wp-includes/images/smilies/icon_mrgreen.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_smile.gif', remote_path: 'wp-includes/images/smilies/icon_smile.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_redface.gif', remote_path: 'wp-includes/images/smilies/icon_redface.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_question.gif', remote_path: 'wp-includes/images/smilies/icon_question.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_sad.gif', remote_path: 'wp-includes/images/smilies/icon_sad.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_razz.gif', remote_path: 'wp-includes/images/smilies/icon_razz.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_arrow.gif', remote_path: 'wp-includes/images/smilies/icon_arrow.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_twisted.gif', remote_path: 'wp-includes/images/smilies/icon_twisted.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_exclaim.gif', remote_path: 'wp-includes/images/smilies/icon_exclaim.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_surprised.gif', remote_path: 'wp-includes/images/smilies/icon_surprised.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_neutral.gif', remote_path: 'wp-includes/images/smilies/icon_neutral.gif', result: 0, error: 'Object already exists'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/.svn/prop-base/icon_evil.gif.svn-base', remote_path: 'wp-includes/images/smilies/.svn/prop-base/icon_evil.gif.svn-base', result: 0, error: 'Object already exists'}
    ]}

    Next logical step was delete the contents of that folder in S3 and try again... this is the result i get this time round:

    {results: [
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-comments.png', remote_path: 'wp-includes/images/wlw/wp-comments.png', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-icon.png', remote_path: 'wp-includes/images/wlw/wp-icon.png', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/wp-watermark.png', remote_path: 'wp-includes/images/wlw/wp-watermark.png', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-watermark.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-watermark.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-icon.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-icon.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/prop-base/wp-comments.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/prop-base/wp-comments.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-watermark.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-watermark.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-icon.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-icon.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/wlw/.svn/text-base/wp-comments.png.svn-base', remote_path: 'wp-includes/images/wlw/.svn/text-base/wp-comments.png.svn-base', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_confused.gif', remote_path: 'wp-includes/images/smilies/icon_confused.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_eek.gif', remote_path: 'wp-includes/images/smilies/icon_eek.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_lol.gif', remote_path: 'wp-includes/images/smilies/icon_lol.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_rolleyes.gif', remote_path: 'wp-includes/images/smilies/icon_rolleyes.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_mrgreen.gif', remote_path: 'wp-includes/images/smilies/icon_mrgreen.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_smile.gif', remote_path: 'wp-includes/images/smilies/icon_smile.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_redface.gif', remote_path: 'wp-includes/images/smilies/icon_redface.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_question.gif', remote_path: 'wp-includes/images/smilies/icon_question.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_sad.gif', remote_path: 'wp-includes/images/smilies/icon_sad.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_razz.gif', remote_path: 'wp-includes/images/smilies/icon_razz.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_arrow.gif', remote_path: 'wp-includes/images/smilies/icon_arrow.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_twisted.gif', remote_path: 'wp-includes/images/smilies/icon_twisted.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_exclaim.gif', remote_path: 'wp-includes/images/smilies/icon_exclaim.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_surprised.gif', remote_path: 'wp-includes/images/smilies/icon_surprised.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/icon_neutral.gif', remote_path: 'wp-includes/images/smilies/icon_neutral.gif', result: 1, error: 'OK'},
    {local_path: '/home/tiernano/gadgetking/wp-includes/images/smilies/.svn/prop-base/icon_evil.gif.svn-base', remote_path: 'wp-includes/images/smilies/.svn/prop-base/icon_evil.gif.svn-base', result: 1, error: 'OK'}
    ]}

    no errors, but it still is listed as a "request failed" and a retry...

    Also, as you may have noticed from the logs, its uploading stuff from the .SVN folder... how do i stop that?

  4. Frederick Townes
    Member
    Posted 2 years ago #

    Ok, that looks good, can you try another browser and see if it persists?

    Also, as you may have noticed from the logs, its uploading stuff from the .SVN folder... how do i stop that?

    You can add the paths to the rejected files field on the CDN Settings tab.

  5. tiernano
    Member
    Posted 2 years ago #

    happens on Firefox, Chrome and IE. still occurs.

    when you say "add the paths to the rejected files field", does this take * in the path (say *.svn-base, /wp-includes/images/smiles/.svn/*) or do i need to put in the full path?

  6. tiernano
    Member
    Posted 2 years ago #

    tried uploading to the latest version, and tried on Safari, and still the same problems... any ideas?

  7. Frederick Townes
    Member
    Posted 2 years ago #

    I have no idea why that's happening, the library for S3 is actually code available on their site. Submitting a bug submission form via the support tab of the plugin with WP Admin access is best. In terms of avoiding .svn for now use paths like: some/path/to/*.jpg instead of some/path/to/*

  8. BAC
    Member
    Posted 2 years ago #

    Hi guys.
    I am experiencing the exact same symptoms as this:

    tiernano wrote:

    stays on "Testing..." and never changes... when i click the "upload includes" button, and select upload, it takes a few seconds and then shows "request failed... waiting 10 seconds" and continues doing this.

    Except I am using a subdomain rather than a CDN - was there a fix identified for this or is this operator error?

    Tested cURL support is OK
    Deactivated Plugins
    Tested all settings / FTP configs
    Tested in 3.0beta1 and back to 2.9.2 (beta tester plugin)

    Only thing i didn't test was a fresh 2.9.2 install.

    Any pointers would be awesome. Thanks!
    Cheers
    BAC

  9. Frederick Townes
    Member
    Posted 2 years ago #

    Subdomain (self-hosted) CDN is not relevant to this topic. There are no known bugs with FTP upload. I would need to see your error logs (in a new topic or related one) if you have them.

  10. shreddies
    Member
    Posted 1 year ago #

    I have the same problem as the original author with files not uploading to S3/Cloudfront.

    However, with firebug the only response I get is:

    {limit: 25, offset: 0, count: 25, total: 1763, results: [
    ]}

    I have the curl module installed. Any other places I can look for debug. Many thanks!

  11. Frederick Townes
    Member
    Posted 1 year ago #

    Shreddies, that issue is fixed in the next release. Contact me through my site for a preview.

  12. Bonusball
    Member
    Posted 1 year ago #

    I also have the same problem. Is there any way to fix it?

  13. Frederick Townes
    Member
    Posted 1 year ago #

  14. Bonusball
    Member
    Posted 1 year ago #

    Hm still doesn't work.

  15. Frederick Townes
    Member
    Posted 1 year ago #

    Can you clear your browser cache please.

  16. iDroidex
    Member
    Posted 1 year ago #

    @fredericktownes mmmm i have clean the cache and don't work.. i'm using self-hosted... and the w3 total Version is 0.8.5.2

    never mind! i have fixed with the development version!

  17. Frederick Townes
    Member
    Posted 1 year ago #

    Ok. :)

  18. shickles
    Member
    Posted 1 year ago #

    I'm having the same issue as the original author as well. I have tried the previous version and no luck there either. Looking at the bucket via S# Fox it appears the plugin is uploading the files but the plugin states that it is failing. Any thoughts?

  19. shickles
    Member
    Posted 1 year ago #

    Nevermind, issues seem to be resolved in dev version.

  20. Frederick Townes
    Member
    Posted 1 year ago #

    Ok.

  21. robmaurizi
    Member
    Posted 1 year ago #

    Also having the same issue with the stable release.

    Dev version seems to be working.

    Do you have an ETA on when the dev changes will be merged into the stable release?

  22. Frederick Townes
    Member
    Posted 1 year ago #

    No.

Topic Closed

This topic has been closed to new replies.

About this Topic