Redirects are being deleted from the umbracoRedirectUrl table automatically.
c
Hi all, we have found that on one of our sites, when we do a deployment, some redirects are being deleted from umbracoRedirectUrl automatically. Has anyone ever encountered this issue before? Do you have any idea of what might be causing this. On our last deployment, we found that 150 redirects were deleted. Please can someone shed some light on this? Is it a bug with Umbraco? Is it expected behaviour? Can this be controlled in the config somewhere?
s
Seems weird.. "a deployment" - tell us more 🙂
Deploy, uSync, other installed? What happens during the deployment, which steps are in place?
c
uSync is installed, It's hosted on Azure, uSync does not import at startup and it was not run manually on this occasion. we don't think it is uSync
It is deployed via DevOps to an Azure WebApp. There is a main web app for the admin site and then 2 front end web apps
k
Never seen this. But never really checked either... The redirect targets weren't removed, even temporarily? uSync doesn't even import Settings on startup?
m
Could it be related to version cleanup?
c
Content Version Cleanup is disabled in the config
It does have uMarketingSuite installed, not sure if that does anything with the redirects. Do you know @Corné Hoskam or @Jeffrey 🎉
No It is turned off so that it only imports settings when we want to run it manually
What do you mean by the redirect targets being removed?
c
Nope, uMarketingSuite does nothing with Umbraco's native Redirect setup or properties!
c
By targets do you mean the content items that the urls redirect to?
a
Two things I'd check initially, the version history for any activity during the deployment window, and if uSync is accidently deploying content as well as settings (uSync History would be able to confirm that). You've probably already thought of these, but thought I'd just throw it out there! 🙂 Also, when does the data go missing? After a code deployment or after uSync import? Assuming you've got a pipeline to auto deploy, but also "ImportAtStartup" configured for uSync, it may be worth disabling that temporally to see if that's at fault.
c
uSync doesn't do anything unless we manually trigger it
These are the uSync settings.
We don't have a uSync History option in the UI but I can see it is enabled in the app settings. I wonder if the files are there in the temp folder.
k
Yes
c
In the content history they don't say they were deleted or unpublished or anything. No activity for months on some of the content items
a
hmm, do you have any appsettings against Umbraco:CMS:WebRouting ?
c
No
t
Sorry for re-starting an old discussion, but we just had the same thing happening on our solution. We made a deploy on 6th Feb, and from what we can tell the redirects table went from 200 or so redirects (from a backup a few days before) to 35 records. We can't see any pattern at the moment why some records were deleted and not others. One of these redirects was critical and had been there since July. When this was deleted it broke something we didn't detect until recently. On investigating it's the redirects table that has lost the key record and others. We deployed Umbraco Engage and some another module, but nothing that would have touched this table. We don't see any reason for this, but have concerns it might happen again. No insights from logs or audit trail that anyone did anything out of the ordinary. @CodeSharePaul did you ever get to the bottom of this?
37 Views