Unable to cycle error log due to lock that will not clear

Hello,
Currently I'm having an issue with cycling the error log on two SQL Server Instances because the file is being used by another process. Simple I know but, when you try to kill the SPID it becomes hung and we are forced to restart the instance, which I want
to avoid at all costs. To give you some background we use sqldm for our monitoring of the databases and received a message that our Error log reached its max size threshold and to cycle the error log. When I executed exec sp_cycle_errorlog I'm told the following
message:
Msg 17049, Level 16, State 1, Procedure sp_cycle_errorlog, Line 9
Unable to cycle error log file from 'J:\MSSQL10.SQL6\MSSQL\Log\ERRORLOG.1' to 'J:\MSSQL10.SQL6\MSSQL\Log\ERRORLOG.2' due to OS error '32(The process cannot access the file because it is being used by another process.)'. A process outside of SQL Server may be
preventing SQL Server from reading the files. As a result, errorlog entries may be lost and it may not be possible to view some SQL Server errorlogs. Make sure no other processes have locked the file with write-only access."
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Then I ran the following query in instance A and found that sqldm had a active process.
SELECT *
FROM sys.dm_exec_requests a
OUTER APPLY sys.dm_exec_sql_text(a.sql_handle) b
WHERE session_id > 50
and session_id <> @@spid AND( text = 'xp_readerrorlog'  OR  text = 'sp_cycle_errorlog')
ORDER BY start_time a
Like I said before when I kill the SPID it became hung and remains in a rollback state (the process is not rolling back). My co-worker had this issue before on this same instance and contacted Idera for support, here was their response "The development
team provided an update regarding this case. After reviewing the code, SQLdm only reads the SQL logs information in each collection and does not lock this resource. Given the behavior that you described,  this could be a problem of SQL Server 2008"
I believe they're right because we're only seeing this in these two instances. All other instances using sqldm are not reporting this problem which leads me to believe it is MS SQL Server causing it. This is where I'm stuck and that is trying to find out why
there is a lock on this file and for what reason. I used Process explorer yesterday to search for any processes that are using ERRORLOG through the Find DLL and Handle window and there were mulitple processes touching this file. When I looked today I'm seeing
now locks for this file and I still cannot cycle the error log. I ran the slect query above I'm still seeing sqldm SPID in both instances. I'm curious to see if anyone else has had this issue before whether they used sqldm or not. Any information will be helpful
in tracking this issue down.
Thank you in advance.
Process Explorer Search Results
Instance A
Instance B

Hi,
Generally, I use Process Explorer to find out which process is blocking the SQL Server from cycling the error log file. Open search box for ‘errorlog’ or dentify the entries with Handle or DLL as ‘your error log path’. There could be two
or more processes relating to that. One of them should be ‘sqlservr.exe’, and the others should be the culprits. Verify the process, and try to terminate it and then you should be able to run the stored procedure ‘sp_cycle_errorlog’ to cycle the
error log without restarting the SQL Server.
According to the images, there is no process found. I suggest you start the monitor and launch procexp.exe tool again and see if it makes any difference this time. If still no progress, I think you cannot avoid restating.
Thanks.
Tracy Cai
TechNet Community Support

Similar Messages

  • Error log 'At least one entry could not be found in object buffer' in SLG1

    Hi Experts,
    We are getting error log 'At least one entry could not be found in object buffer' in SLG1 transaction.
    Unable to trace the source of error. Could you please help us identifying the same.
    Regards,
    Santosh Kacham

    Hello,
    the reason could be the use of order_save badi, mostly there is a wrong + faulty implementation which causes this error. Please check first if any own coding part is involved, when creating documents / tickets.
    Thanks + regarsd
    Rene

  • Unable to update when executed, table gets lock Execution does not stop Execution even for an hour

    Following is my Query unable to update when Executed table gets lock Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, THANKS IN ADVANCE.

    Hello,
    You should better post your question to a more related Forum, like Transact-SQL or SQL Server Database Engine; this Forum is for samples & community Projects.
    Have you checked the execution plan if indexes are used?
    You could update the data in chunks, e.g. 10.000 rows per execution. For this you have to add a TOP clause and a filter to update only those, who are not updated yet.
    update TOP (10000) Employees
    set Status = 'Close'
    where statusid IN
    (select statusid
    from MyView
    where DownloadedDate ='2014-07-27 00:00:00.000')
    AND Status <> 'Close'
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Cause is mentioned as : "The cause for this error is due to person name is not assigned to the FND_USER."

    Cause is mentioned as : "The cause for this error is due to person name is not assigned to the FND_USER."
    Do we need to attach the person name of employee whose reverse Global deployment we are doing or the person name of the person who is doing this transaction.
    Thanks & Regards,
    Kirti Mohan Sharma

    You just need to attach the person to the FND User. System Administrator responsibility - Security - User screen.
    After you have linked the person, you can check the table
    Select * from FND_USER
    Where user_name = '<user_name>';
    Cheers,
    Vignesh

  • Help! Installing updates an error occurred now my MacBook Pro will not restart. "Unable to find driver for this platform"

    Help! Installing updates an error occurred now my MacBook Pro will not restart. "Unable to find driver for this platform"

    Did you try more than once? If so:
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Mountain Lion or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • TS2776 I used my Ipod while at the gym one day and now it's acting wacky.  I have tunes that will not download due to an "unexpected error (-50).  Anyone know what this is and how to fix it?

    I used my Ipod while at the gym one day and now it's acting wacky.  I have tunes that will not download due to an "unexpected error (-50).  Anyone know what this is and how to fix it?

    looks like the gtk theme is not the problem. didnt really think it was, but the documentation was worth posting. the guys over at ubuntu look as though they have dealt with this in great detail, and have produced a few solutions, which may or may not work. i have decided to post these for anyone else who may have these problems.
    Solution 1 - new user creation:
    https://bugs.launchpad.net/ubuntu/+bug/104521
    Solution 2 - config file delete:
    http://ge.ubuntuforums.com/showthread.php?t=724439
    post number 6 here features the config file delete solution, as well as a link to another post which may be useful.
    judging by a google search on this problem and the number of responses that came up, the bonobo/daemon error is quite a common curse for the users of gnome, although much more common in distros such as ubuntu or fedora.
    i hope that this proves useful and if anyone has anything to add, please feel free. the more documentation the better.
    EDIT:
    another solution would be to remove gnome and reinstall it from scratch. (some please tell me if i am doing this correctly. thanks )
    1. clean your catch:
    pacman -Scc
    2. remove gnome, gnome extras, and whatever other gnome files you might have installed
    pacman -Rscn gnome gnome-extra etc...
    3. reinstall gnome and gnome extras
    pacman -Sy gnome gnome-extra
    4. reconfigure your desktop the way you want.
    Last edited by czechman86 (2008-05-28 23:42:43)

  • I have a 3rd Generation iPod that will not connect to Home Wi-Fi- keeps dismissing- saying unable to connect.

    I have a 3rd Generation iPod that will NOT connect to our internet connection at home. Message on screen keeps saying it is 'unable' to connect. Yes I have already reset to default factory settings, No we do not have our service encrypted or password protected, anyone else have any other viable suggestions as to how to fix this problem?

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iPod connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I have a 5min. video that will not open.Osstatus error-54 appears. Can this problem be resolved, if so, HOW?

    I have a 5 min. video that will not open the cause of which appears to be due to an osstatus-54 error. can this be resolved & if so, how?

    It means that the orignal video file is missing which is not good news. How was the file placed on the backup hard drive?  Can you select the file on the EHD and play it with Quicktime Player?  That will tell you if the backup is a good backup.
    OT

  • I have to tell Firefox that I am logging in from "home" every time I log into Facebook. Firefox will not let me unclick ""Send me an email" under Login Notifications in Facebook "My Account" settings. Why? (to both questions)

    I have to tell Firefox that I am logging in from "home" every time I log into Facebook. Firefox will not let me unclick ""Send me an email" under Login Notifications in Facebook "My Account" settings. Why? (to both questions)

    It started last week - I normally use Chrome to play my games in Facebook - but I started getting "Sorry, this feature isn't available
    right now"..... When I used IE..... no problem - a friend said to install Foxfire, which I did, but I made the mistake of having my bookmarks and whatever transferred from Google as it is the browser I used most often and it has all my bookmarks, but
    now it does the same thing when I try to log into Facebook. - I have no problem with any other website.  I deleted both Google and Foxfire and tried to start over - I cleared History and checked all the boxes hoping that this would help - but it did not.
     I can't understand why I can get in with IE, but not Google or Foxfire.  Do you have any suggestions.......
    On Friday, it started working again - and everything was fine.  But on Sunday evening I ran the History Clean in Google and when
    I went to log back in, I couldn't and got the same "Sorry" message and has stayed this way since. 
    I ran a Norton scan of the entire computer, a Hitman scan, a CCleaner scan, ...  all to no avail. Problem still exists.
    I tried to run a restore program prior to the problem, but I am getting error messages like mad.
    there has been two Windows Updates in this time frame and I don't know if this has anything to do with it or not - but my Restore program does not work.
    NYCsDancer -- if its working via Internet Explorer, we can't help you much. Most of the time it has to do with Cookies, or your Java Version. I'd reach out to Google's forums for assistance with Chrome
    https://support.google.com/chrome/?hl=en#topic=3227046
    or Firefox support for assistance with Firefox
    https://support.mozilla.org/en-US/products/firefox
    Or as S.Sengupta said  reach out to the Facebook Help center....
    Entrepreneur, Strategic Technical Advisor, and Sr. Consulting Engineer - Strategic Services and Solutions Check out my book - Powershell 3.0 - WMI: http://amzn.to/1BnjOmo | Mastering PowerShell Coming in April 2015!

  • Error in connection to SEM, changes will not be saved

    Hi All,
    When i am creating an opportunity i am getting an error
    "Error in connection to SEM, changes will not be saved", and it does not allow me to save the opportunity.
    Regards,
    Radhika

    Dear Mangesh,
    Thank you for your post. It's really helpful.
    Best Regards,
    Duc Lam.

  • Does anyone know what this error code means?My itunes will not open, no matter how many times i downlaod and restore it??? "The procedure entry point xmlITexTextReaderName could not be located in the dynamic link library libxml2.dlll."

    Does anyone know what this error code means?My itunes will not even open, no matter how many times i downlaod and restore it??? "The procedure entry point xmlITexTextReaderName could not be located in the dynamic link library libxml2.dlll." Please let me know if your know anything! It is greatly apprecitated!

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (Although the procedure is for Vista and 7 and you've got XP, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a

  • CreatePDF printer    File shows ERROR in the status column and will not upload to my account

    When printing to the CreatePDF printer.  the file shows ERROR in the status column and will not upload to my account

    Adobe retired this Feb 17, 2014.
    This app sent content to and got content from the web based services of "CreatPDF" and "PDF Pack".
    These are subscription services out in "the cloud". When the app was live you had to be online and signed into your account.  The user forum for CreatePDF has a DOC that speaks to the app removal.
    Be well...

  • HT1212 passcodes is lock and  will not open the phone so can you tell me how to get it off

    passcodes is locke and will not open the the phone

    READ the article from which the thread was started and follow the step by step instructions to resolve the issue.

  • New to the Apple and I want to set up a user account that will not delete the guest users files and allow and preserve their personal settings after log out. Is this possible?

    New to the Apple and I want to set up a user account that will not delete the guest users files and allow and preserve their personal settings after log out. Is this possible?

    The built-in guest user account will not do this. Simply create a new standard account and call it "Guest" or "Guest Users" or whatever you like.
    Go to System Preferences > Users& Groups, click "+" to make a new account.

  • How do I resolve an error message 150:30 that will not allow me to open photoshop?

    How do I resolve an error message 150:30 that will not allow me to open photoshop?

    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

Maybe you are looking for

  • How to create a FSG report in pdf format

    How to create a FSG report in pdf format? Thanks In Advance Kris

  • Error in Function.

    create or replace function get_report ( p_query varchar2 ) return blob is l_cursor integer; l_cursor_status integer; l_col_count number; l_desc_tbl sys.dbms_sql.desc_tab2; l_col_val varchar2(32767); l_report blob; l_raw raw(32767); begin -- open BLOB

  • How to get the filename from J2SE File adapter

    In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping  and J2SE for Deliveying the message . In one senario, routing will be based on the filename . J2SE Sender File adapter --- XI Adapter --- XI pipe line So the File rea

  • ITunes has encountered a problem and needs to close when adding movie files

    So.. I haven't done anything recently with installing any new versions of itunes or anything of the such. Just one day whenever I tried to add .mp4 files (videos) on my ipod using Itunes, it crashes with the error message "iTunes has encountered a pr

  • Vendor Bill no.  entry field

    Dear SAP experts what is the standard field for storing vendor bill no. while processing miro, fb60. in order to avoid duplicate invoice entry , if we enter bill number in reference field in document header then best practice will be to enter one bil