-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Snapshot 'Apply All': Could not find a part of the path '\App_Data\temp\usync\snapshots\Views' #214
Comments
I think I have figured out the issue, thanks to trying to make, and delete, a couple more snapshots and getting more log info.
...Led me here: My source site is hosted on Azure. |
The fcnMode issue was breaking full deletion of a SnapShot. However, even with fcnMode disabled, creating a snapshot still fails at the same place each time, per the log. uSync Backoffice GUI error: Log:
That is the end of the log (again). |
Hi, turning logging levels up to debug might give a little more info, but there is obviously something going wrong 😞 try adding to log4net.config :
|
Thanks, @KevinJump. Will do, but I have a snapshot running at the moment. I added a domain to the site, in the Backoffice, thinking that may help. |
My idea did not work. Here is the log tail from yet another attempted snapshot creation, with more logging.
|
@KevinJump, this seems to be the telltale line:
I do not know what it is telling, though. |
|
Getting warmer...
|
Hi, the logging seems to indicate it is getting past the domain handler, the domain handler is included because of the EnableMissing="true" line (which is the default) basically this says if a usync handler is installed but not in the config treat it as if it's enabled. you can disable it by either .
|
but at the moment that's not the issue, because you are getting to the bit where snapshots cleans up its folders (so removes and duplicates, etc) - i suspect this is the code that is probibly going wrong. |
Thanks. I already took a stab and added this line:
By copying the last line of that section and changing the name. I'm waiting on the delete to finish, to run it again. |
It bombed at the same place, as you predicted.
I set the root log4net priority to debug, and I am trying again.
|
Hmm, the tail of the log looks the same:
Oddly, it still shows:
Here is my saved config:
|
you have to restart the site after changing that file (it doesn't trigger a restart like a web.config) |
Bah! I've done so many, and forgot to. Thanks. |
In all likelyhood its failing here or here this is at the end of the process when it's created a snapshot, it removes anything that was in the last combined snapshot (so things that haven't changed) - this the RemovedDuplicats function and then it does a clean directories, where it removes any folders that are empty. looking at the code for both they sort of assume that the folders they ask for at the beginning of the process are still there by the end, but there are probably a few possibilities for them not being. threading, if the snapshot is running twice it could be deleting files as it goes, solutions (i will look into) - probably involve using local temp (like examine does on azure) storage to build the temp snapshots and more checks, within those functions, just because a DirectoryInfo says a folder or file is there doesn't mean it will still be later when you delete it. ??? |
Uhm, I think it just ran successfully. ?! |
|
yeah my suspicions are with azure disk access - i think if we are rapdily reading/writing things, we can't be 100% sure things are happing in the order we expect. |
Thanks for the prompt attention and the help, @KevinJump. Both are much appreciated. |
FYI, @KevinJump, I ended up copying the site from Azure, to my local PC, using Beyond Compare, and the full export worked fine, on the exact site on my PC. I expect that you'd expect that. :] |
* Per Handler importing (so breaking up the big requests). * Add starting / end message to js. * make performAction a proper-promise. * update change message. * streamline handler calls (and use the caches again!) * Container lookup optimisation (perf) * Don't show addons with _ in addon string (hide history) Co-authored-by: Kevin Jump <kevin@jumoo.co.uk>
I have a clean install of Umbraco 7.10.4, to match the one I'm trying to sync from. I installed uSync via the Backoffice. I synced a snapshot into the file system with Beyond Compare ([site root]\uSync\Snapshots). I clicked 'Apply All' on the destination site, after a 'Refresh' click. It churned briefly, then threw the error.
Error: An error has occurred. - Could not find a part of the path '[site root]\App_Data\temp\usync\snapshots\Views'.
I can see that there are now a bunch of folders in the parent folder, but no Views folder as the error state.
Ah, my confusion. That image above is the not the temp folder. Here it is:
![image](https://user-images.githubusercontent.com/4871064/57020284-cc95b180-6bf6-11e9-816d-6e6aa3e33577.png)
So, it seems there was a failure to include the Views folder on the source site, when the snapshot was created.
The text was updated successfully, but these errors were encountered: