uSync issue when booting
# help-with-umbraco
p
I've moved my project to another place on my computer. and now I cannot boot my site anymore. I get treated with this error screen when booting: I've never had a cy.xml file in my solution before, and have no idea why it's asking for it now? please help me! https://cdn.discordapp.com/attachments/1262347375393898568/1262347375540961341/image.png?ex=6696441b&is=6694f29b&hm=d94df7236e7b75a14b59b0bdccf0362399ececc44a09180cba654a2b4e3a8c89&
k
Hi, what version of umbraco/uSync do you have ?
p
i think i'm on 13
it says v9 insude my uSync folder thought, it's runnong on umbraco 13
k
(its odd, a missing lang file, shouldn't stop a boot, (i don't think this is in the uSync folder).
p
yeah you're right. it says it's looking for uSync/Lang
but i have uSync/v9
k
yes v9 is fine but its not that. its looking for the UI language files that sit in the app_plugins/uSync folder
(to be clear you might not have a uSync/App_plugins folder, as depending on how the app is built those files might be coming from a cache
i would try building the moved foldert
if you are running via iis - check folder permissions of the new location (e.g can IIS see the files)
p
yeah i've already done that. I just saw that the parent folder ("~/projects") where write-locked in windows
im toggling that off atm
k
if this is a development project (e.g. not a "dotnet publish" folder) then the uSync files should be coming from the nuget cache (which lives in users/username/.nuget) and it would look like for some reason the site cannot read those files.
i would try a dotnet build followed by a dotnet run in the folder just to see if that shows you anything.
p
i'll try
thanks Kevin
to have the uSync man himself pop in here feels great 🙂
i just did what you asked, dotnet build and dotnet run
still gives me the same issue, @Kevin Jump
this is so annoying
did some dotnet cleans, same issue
o___O
i've rebooted my computer also
this is also causing so I cannot even log into the backoffice using the /umbraco link...
i can run another umbraco project that's also been moved to a new folder
but not this one ^____^
i've tried moving my project to a new folder, straight on my desktop
but the issue remains
it would seem as soon as i moved it from the original location, it broke
tried to clear my connecting string to trigger umbraco-reinstall but that didn't work either
how come the ENTIRE site is bricked now. I cannot do anything
and all I did was just move the project from one folder to another...
excuse my tone
k
its really odd, I don't think its a uSync issue, as in the uSync code. for some reason when the site is starting up it is failing to find/read a language file (the thing that locallize the Umbraco UI). why it thinks the file is there but can't see it i don't know 😦 As i said if the site is a 'normal' development thing then you won't see a app_plugins/uSync or wwwroot/app_plugins/uSync folder because the uSync files come from the nuget cache (which is local to the user). and those files should be fine. and live in your user profile (for example i can see those files locally for me here C:\Users\kevin\.nuget\packages\usync.backoffice.assets\13.2.4\staticwebassets\uSync\Lang) .net is doing a clever thing and that staticwebassets folder is being mapped to your sites /app_plugins/uSync/lang folder, which is where it then claims the file is missing from if you have a site that is published (e.g publish in visual studio or dotnet publish) then all the files are copied locally, and they do live in the project, and then you would be looking for the files in the site.
you can clear your nuget cache
Copy code
dotnet nuget locals all --clear
this effectivy deletes those folders and when you do the next dotnet build it goes and fetches everything again. not saything this would fix it - but its a thing
p
gonna try clearing the cache now
nice! clearing the cache seems to have sorted it out!
thanks @Kevin Jump
24 Views