Copied to clipboard

Flag this post as spam?

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


  • Greg Fyans 140 posts 342 karma points
    Sep 29, 2020 @ 13:21
    Greg Fyans
    0

    v8 not syncing on save, works manually

    I have installed uSync into my v8.7.0 site, and it isn't exporting on save, but it does work when I do a full export from the dashboard.

    I've left the config as default, and ExportOnSave is set to True.

    <ExportOnSave>True</ExportOnSave>
    

    There are no errors in the logs as far as I can see, and because it works when I manually click to Export, it can't be permissions.

    Any ideas what could be wrong?

  • Greg Fyans 140 posts 342 karma points
    Oct 06, 2020 @ 09:43
    Greg Fyans
    0

    I don't suppose anyone has any ideas what I can try here? I'm still having issues. I've tried uninstalling and installing to no avail.

  • Kevin Jump 2312 posts 14698 karma points MVP 7x c-trib
    Oct 06, 2020 @ 10:29
    Kevin Jump
    0

    Hi Greg,

    you could try turning debugging on for usync. and seeing if it shows you anything when you attempt the saves.

    https://docs.jumoo.co.uk/uSync/v8/debug/

    Kevin

  • Greg Fyans 140 posts 342 karma points
    Oct 06, 2020 @ 11:04
    Greg Fyans
    0

    Thanks Kevin, after looking at the logs I noticed this line:

    "This is a replica server, uSync will not run any of the startup events"

    I assume this is what's stopping the syncing.

    What determines whether this is a "replica server", because I'm just running this locally?

  • Kevin Jump 2312 posts 14698 karma points MVP 7x c-trib
    Oct 06, 2020 @ 21:24
    Kevin Jump
    100

    Hi Greg,

    it is umbraco's load balancing that determains what is or isn't a slave server https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/

    but in essence, if you run the site locally, via IIS and say IISExpress then Umbraco will think that is two sites, and will start it's "master election".

    if you are 1,000% sure you are only running the site via one site then you can set a setting in the web.config to turn this off, https://our.umbraco.com/documentation/Reference/Config/webconfig/#umbracocoredisableelectionforsingleserver then the server will always be a master. - but if you do access the site in more than one way this will cause issues

  • Greg Fyans 140 posts 342 karma points
    Oct 07, 2020 @ 13:39
    Greg Fyans
    0

    Thanks Kevin. That setting was exactly what I was looking for.

    We do host this in a load balanced environment, so I'm setting it to true on local, and then resetting it during deployment.

    Thanks again!

Please Sign in or register to post replies

Write your reply to:

Draft