Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Selwyn Edelbroek 2 posts 92 karma points
    Mar 04, 2022 @ 09:02
    Selwyn Edelbroek
    0

    uSync with CloudFront error on importing

    Hi! We are currently having an issue with importing uSync (v8.4.3.0) files in a AWS CloudFront setup. The current setup consists of two loadbalancers with CloudFront in AWS. The proces of reporting works fine with no errors and while importing the data- and doctypes are changed just fine but after the import steps the loading animation keeps running for while and only gives an empty failed Umbraco response. The debug mode is already turned on but there are no logs coming in about this error. The backoffice url containing uSync is already whitelisted and routed to the correct loadbalancer. The import call response contains a 504 error.

    Is there a certain url that needs to be whitelisted in CloudFront in order to let the response of the import work?

    The import steps all completed: Steps of uSync The empty error in Umbraco: Empty error in Umbraco

  • Kevin Jump 2146 posts 13582 karma points MVP 6x c-trib
    Mar 04, 2022 @ 09:48
    Kevin Jump
    1

    Hi Selwyn,

    for uSync all the dashboard requests should go via.

    https://{sitename}/umbraco/backoffice/uSync/uSyncDashboardApi/

    and there in-fact a number of requests (one for each type) and they do appear to be working. if you look at the browser network traffic you should see something like:

    enter image description here

    And maybe that will point to something, the ImportHandler calls are each of the types being imported so i wonder if its in FinishProcess or ImportPost... ?

    FinishProcess triggers the uSync events that other code can hook into , eg. ImportComplete ) so do you have any think hooked into uSync ?

    uSync.History does use this event to then write the history of an import to disk. History files are written to the localtemp/usync/history - so maybe that isn't working ? - you could try disabling History in the settings - via the UI in the back office or adding <EnableHistory>False</EnableHistory> to the uSync8.config file.

    ImportPost, is a tidy up call, on a normal uSync it actually doesn't much (there is a setep through and clean up any empty folders in datatypes or doctypes but that is about it).

  • Selwyn Edelbroek 2 posts 92 karma points
    Mar 04, 2022 @ 14:17
    Selwyn Edelbroek
    100

    Hi Kevin!

    Thanks for the options to look into! I've tried the options you mentioned. In the uSync8.config was an option <RebuildCacheOnCompletion>True</RebuildCacheOnCompletion> that was triggering this issue. The setting was never updated after uSync updates so after a package upgrade or even after changing the option to False on the server the long loading and 504 error was gone.

  • Kevin Jump 2146 posts 13582 karma points MVP 6x c-trib
    Mar 04, 2022 @ 14:19
    Kevin Jump
    0

    Good news ! -

    Yeah that setting was only ever an early Umbraco v8 (< 8.3) requirement due to some issues with caching in early Umbraco versions.

    We should make sure the code doesn't try anything now (fairly sure lots of the code is checking, but obvs we missed a bit)

Please Sign in or register to post replies

Write your reply to:

Draft