Unable to change the location of SharePoint log file

Alice01 46 Reputation points
2021-09-15T07:52:40.493+00:00

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 Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,665 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-09-16T02:41:52.64+00:00

    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://learn.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.


0 additional answers

Sort by: Most helpful