question

alice01 avatar image
0 Votes"
alice01 asked alice01 commented

Unable to change the location of SharePoint log file

I got an error while changing the SharePoint Log file location. I tried with powershell as well.
Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPDiagnosticsService was updated by Administrator, in the w3wp (18908) process, on machine.

sharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered alice01 commented

Hi @alice01,

Please stop timer service, clean the configuration cache, and then start the timer service. Check if it works after clearing the cache.

  1. Stop the Timer service

  2. Go to %SystemDrive%\ProgramData\Microsoft\SharePoint\Config\<GUID> folder in File Explorer. The ProgramData folder may be hidden by default so you may have to unhide it in the File Explorer.

  3. Back up the Cache.ini file. (Make a copy of it. DO NOT DELETE THIS FILE, Only the XML files in the next step)

  4. Delete all the XML configuration files in the GUID folder (DO NOTE DELETE THE FOLDER).

  5. Edit the “cache.ini” file, set the content to 1. This indicates that all cache settings need to be refreshed. Eventually this value gets automatically updated to another number when the cache is repopulated.

  6. Start the timer service.

You could refer to this article for more about Clearing the Configuration Cache:https://docs.microsoft.com/en-us/archive/blogs/jamesway/sharepoint-2010-clearing-the-configuration-cache


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.






· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@alice01, Is there anything update on your issue? Have you tried the way I provided?

0 Votes 0 ·
alice01 avatar image alice01 MichaelHan-MSFT ·

Thank you Sir, it works. Thank you so munch

0 Votes 0 ·