Rebuild spotlight database

I'm trying to rebuild my spotlight database finding directions I have found and I cannot get it to work. Everytime I try I get an error message telling me that the process has already started even though I haven't done anything. Anyway I can trash the database and start fresh or force it to rebuild? Ideas? Thanks.
I need to fix the database because I do not get any local results when searching in spotlight even thought I should.

Step 1
These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
Triple-click anywhere in the line below on this page to select it:
syslog -F '$Time $Message' -k Sender mdworker -o -k Message Rne Norm -k Sender mds | tail | pbcopy
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.
The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message. 
The Terminal window doesn't show the output. Please don't copy anything from there.
If any personal information appears in the output, anonymize before posting, but don’t remove the context.
Step 2
Enter the following command as in Step 1 and post the output:
mdutil -as 2>&- | pbcopy
You can then quit Terminal.
Step 3
Launch the Console application in the same way you launched Terminal. In the Console window, look under the heading DIAGNOSTIC AND USAGE INFORMATION on the left for crash reports related to Spotlight. If you don't see that heading, select
          View ▹ Show Log List
from the menu bar. A Spotlight crash report has a name beginning in "mds" or "mdworker" and ending in ".crash". Select the most recent such report, if any, from the System and User subcategories and post the entire contents—the text, please, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
Please don’t post any other kind of diagnostic report, such as hang logs—they're very long and not helpful.

Similar Messages

  • Repeated Corruption of Spotlight Database on Time Machine disk?

    I'm going to try this here since I don't seem to get much traction with this question in the Time Machine forum, and there is no forum here specific to Spotlight issues in Leopard:
    I've been seeing repeated corruption of the Spotlight database on my external, Fireware 800, LaCie drive which is used exclusively for Time Machine. The symptom is that searches done in the Finder window after entering Time Machine produce no results or partial results.
    There is no problem with Spotlight on the main hard drive for my laptop.
    I received instructions from AppleCare for how to find and delete the hidden folder which makes up the Spotlight database on that drive -- an action which causes Spotlight to immediately rebuild the database on that drive from scratch -- but within days after doing that the database is corrupt again.
    An additional symptom is that errors appear in the Console during a reboot -- but only if the Time Machine drive happens to be attached during the reboot. If the drive is attached AFTER booting and logging in, no such errors appear. The errors are from the "mds" process, and indicate either that a portion of the Spotlight database's "Stores" folder is having problems "storing dirty pages", and/or that a portion of the Spotlight database needs to be "recovered". Once those error messages start to appear, they will appear (identically) on every reboot where the drive is attached. No "recovery" happens. And searches after entering Time Machine fail to produce full results as described above.
    There are no other Console complaints that appear relevant. No corrupt files during Time Machine backups, no errors when having entered Time Machine to view or restore files, no errors during searches themselves while in Time Machine.
    Attempting to rebuild the Spotlight datbase on that drive by dragging it into the System Preferences > Spotlight > Privacy list and then removing it are fruitless. Spotlight indexing fires up for only a couple seconds after removing the disk from Privacy and there is no change in the search failures. And no new error message are entered in the Console. The same thing happens when attempting to use the "mdutil" command from Terminal to force a rebuild (as instructed by AppleCare). Only completely trashing the hidden Spotlight database folder on that drive suffices to get Spotlight to rebuild the database from scratch and start over in a fresh, uncorrupted state. But that doesn't last!
    Meanwhile, Time Machine backups themselves are working just fine. No errors -- everything seems to be getting over to the drive -- and viewing within or restoring from Time Machine continues to work without problem. That is, the problem is entirely and ONLY within Spotlight for the Time Machine drive. (Again, that drive is used only for Time Machine.)
    And as stated above, Spotlight continues to work without issue on the main hard drive.
    Disk Utility > Verify Disk also has no complaints about that Time Machine drive (or the main hard drive)
    And the usual panacea cures (booting once in Safe Mode, reset PRAM, reset PCU, Repair Permissions) also have no effect on this problem.
    The computer in question was an "upgrade" install from 10.4.10 and has two accounts on it -- a non administrative account for normal work and an Administrator account that is almost never used. Only the one drive, the main hard drive, is being captured by the Time Machine backups. Nothing has been excluded from the Time Machine backups. I've even done a successful "full restore" of the system from that Time Machine. I.e., this is all very plain vanilla stuff. I can't fathom why I'm having this problem.
    My Time Machine dates back to after installing 10.5.1. I've tried the process of deleting, and thus recreating, the Spotlight database several times without any luck.
    Yesterday, after applying the "Time Machine and Airport Drivers" update to my 10.5.2 system, I decided it was time for a fresh start just in case there was something about the data put onto the drive by the older, 10.5.1, Time Machine that was causing Spotlight such grief.
    So I erased the Time Machine drive and did an entirely new initial backup.
    That completed without errors.
    I then did a few incremental backups on top of that. After which I did a reboot to see if there were any Console error messages from mds. There were none, and my tests of searches while viewing in Time Machine all produced correct and complete results.
    So far so good.
    However, this morning, after I booted up with the Time Machine drive attached, I went immediately into Console and found the dreaded error messages from the mds process. And sure enough my searches inside of Time Machine now only produce partial results again. Here are the two messages I'm getting at the moment (with personal information "xxx"d out):
    3/20/08 1:48:48 PM mds[26] (/Volumes/xxxxx Time Machine/.Spotlight-V100/Store-V1/Stores/4CE0F19E-8757-43F1-A5DD-06B1DCAD0E50)(E rror) IndexStore in SIStoreDirytySDBChunks:Error storing dirty sdb pages: 30
    3/20/08 1:48:48 PM mds[26] (/Volumes/xxxxx Time Machine/.Spotlight-V100/Store-V1/Stores/ABE285E8-4E3D-45BD-A3EF-D9A5B4A149DA)(E rror) IndexStore in SIStoreDirytySDBChunks:Error storing dirty sdb pages: 30
    So far I have NOT yet seen the messages saying that the Spotlight database "needs recovery".
    I'm at a loss on this one. Again, the Time Machine backups themselves seem to be fully complete and fully functional. And Spotlight was perfectly happy after the new, initial backup, and a few incremental backups.
    But I just can't get Spotlight to STAY happy with this Time Machine drive.
    Any suggestions?
    --Bob

    OK I've completed the repartitioning test and the results are unexpected! Here's what I did and what I've spotted so far:
    First, the only differences between what I'm going to list here and what I've done before is the repartitioning of the drive and the fact that I decided to do things this time entirely while logged in to my Administrator account. In the past, I did this stuff logged into my "standard" account and supplying Admin passwords when requested:
    @ Rebooted with the drive attached and logged in to Admin
    @ In System Preferences > Time Machine, did a Change Disk to No Disk to turn off Time Machine backups.
    Note: In what follows, each of the several times Time Machine asked me if I wanted to use the external drive as the new Time Machine drive I selected "Cancel".
    @ Used Disk Utility to re-partition the Time Machine drive into 2 untitled partitions (Apple Partition Map since this is a Powerbook Mac, Mac OS X Extended (Journalled) formatting, Mac OS 9 drivers turned off). I then partitioned it AGAIN back to 1 partition titled as my Time Machine drive (same settings). I did this two step process to make SURE the partitioning data was actually being re-written.
    @ Used Disk Utility to Erase the single partition just created -- using the option to Write 0's to the drive to make sure all of the drive was exercised.
    @ Checked and found the Time Machine volume was now identified as disk1s3.
    @ Used Disk Utility to Verify Disk on my main hard drive.
    @ Checked in Console after all of this and there were no I/O or other errors logged.
    The next few steps were done to maximize the chances that my new "initial backup" would be as clean as possible.
    @ Shut Down the computer and rebooted once into Safe Mode to let the Safe Mode boot delete caches and do its other background maintenance tasks. Shut Down immediately from the Safe Mode login window instead of logging in.
    @ Rebooted while resetting PRAM. Just because.
    @ Logged in as Admin, and used Disk Utility to Repair Permissions on the main hard drive. No messages were generated by this.
    @ Rebooted once again and logged back in as Admin to get things into a fresh state.
    At this point I was now ready to start the new, Time Machine "initial backup". However before I did that I decided to check the Console one more time.
    Imagine my surprise when I found one each of the two Spotlight related error messages I reported above! There was one "needs recovery" error and one error trying to "store dirty pages"! (Note that normally I see TWO of each of these.)
    Keep in mind that the drive had just been freshly partitioned and then erased again. Time Machine had never been given access to the drive. And no other user applications had been run. And yet the Spotlight database was ALREADY generating errors on that drive!
    Upon checking further, I discovered that the first pair of these error messages was generated during the Safe Mode boot above. They were generated again during the boot where I reset PRAM.
    BUT, there were NO ERROR MESSAGES in the most recent reboot I had just completed!
    At this point I decided to do a 2 more reboots and there were NO ERROR MESSAGES in either of those.
    Curious indeed! Well perhaps some sort of recovery had happened.
    In any event, at this point I decide to do the "initial backup".
    @ In System Preferences > Time Machine, I selected the drive for Time Machine use and let the initial backup complete. I also had Console running during this. The backup completed without any significant messages. In fact one additional incremental backup also completed without errors before I noticed it was done.
    At this point, I entered Time Machine and tried my usual test searches which have demonstrated the Spotlight corruption in the past, and there were no problems. Spotlight was apparently good.
    I then rebooted and checked the Console and son of a gun but the Spotlight error messages were back -- this time 2 of each.
    However, when I checked searches in Time Machine -- THEY WORKED! This is the first time I've ever seen a case where the presence of those error messages during reboot wasn't accompanied by search failures inside of Time Machine.
    I immediately did another reboot -- AND NO ERROR MESSAGES!
    I've since done several additional incremental backups and several reboots, and I can't find a pattern anymore. The error messages OFTEN appear on reboot (if the Time Machine drive is attached), but not ALWAYS as was the case in the past. And up to now searches inside of Time Machine are working without problems.
    I can see several possible explanations:
    1) The error messages are spurious (or there is some sort of automatic recovery that is working now when it didn't work before) and the repartitioning above actually fixed the problem.
    2) The database is indeed corrupted, but the corruption has moved to a portion of the database that my test searches aren't exercising.
    3) I need to do more incremental backups before the database corruption will actually become visible in my test searches. I.e., the problem just hasn't had time to develop yet.
    Meanwhile I heard back from LaCie support that they have not heard of a problem like this for Time Machine or Spotlight on this particular drive. I've also pointed them at this thread for details.
    So I'll just continue to use this Mac normally over the next few days, while periodically checking to see if the Spotlight search failures reappear and to see if I can spot any pattern as to why those Console error messages sometimes appear on reboot and sometimes not.
    I'll report back when I have more info.
    Again, if anyone has any insight into what those 2 Console error messages actually mean, or if anyone else is seeing those error messages, or is having Spotlight search failures when inside Time Machine whether or not you see those error messages, please chime in.
    --Bob

  • Trying to open old iPhoto library on osx 10.9.5 with iPhoto 9.5.1.  iPhoto says I must upgrade but upgrade eventually hangs.  Tried to rebuild/repair database but it always says you have to upgrade database first and eventually hangs

    Trying to open old iPhoto library on osx 10.9.5 with iPhoto 9.5.1.  iPhoto says I must upgrade but upgrade eventually hangs.  Tried to rebuild/repair database but it always says you have to upgrade database first and eventually hangs

    What version was the old library made with?
    What is the exact message? when it hangs does it crash or do you have to force quit?
    LN

  • ITunes forgets my CD files...how do I rebuild tune database? - Revisited

    Hi:
    I tried follwoing your advice.
    I can do the Ctrl-A to select all songs in the iTunes libary.
    I can right-click and select Delete,
    but when I do, I do not get the 3 options that you mentioned
    (Cancel, Keep Files, and Move To Recycle Bin)
    I get a dialog box stating:
    Are you sure you want to remove the selcted songs from your iTunes library?
    These songs will also be remove from any iPod or iPhone which synchronizes with your iTunes library.
    Why am I not getting the options you stated above ?
    I have seen you oprions on a Mac at best Buy, but I am running an HP laptop under Vista Home Premium.
    Then has a Remove or Cancel button to be clicked.
    If I follow through with the above, will it wipe out my music library ?
    How do I go about rebuilding the databse ?
    Thank you
    DaleB
    HP dv6500z laptop Windows Vista
    ==========================================================================
    Toocan
    Posts: 54
    From: Gauteng, South Africa
    Registered: Jul 23, 2008
    Re: iTunes forgets my CD files...how do I rebuild tune database?
    Posted: Aug 17, 2008 10:27 PM in response to: DaleB Reply Email
    Sorry DaleB, I have redone my library so many times, I forgot about this prompt. Just click 'yes'/'remove' to that question.
    Reloading the library will only make your iPod resync again, thats all.
    Intel Windows XP Pro P4, 3.4GHz, 3GB RAM, XP SP3 - iPod 80GB Classic
    ===========================================================================
    DaleB
    Posts: 145
    Registered: Jan 18, 2006
    Re: iTunes forgets my CD files...how do I rebuild tune database?
    Posted: Aug 18, 2008 4:02 AM in response to: Toocan Reply Email
    Hi:
    You tell me to click "Yes" / "Remove" when prompted by iTunes with
    "Are you sure you want to remove the selcted songs from your iTunes library?"
    but when I do, I do not get the 3 options that you mentioned
    (Cancel, Keep Files, and Move To Recycle Bin) ?
    Thank you
    DaleB
    ==============================================================================
    DaleB
    Posts: 145
    Registered: Jan 18, 2006
    Re: iTunes forgets my CD files...how do I rebuild tune database?
    Posted: Aug 18, 2008 4:13 AM in response to: Toocan Reply Email
    Hi:
    A related issue.
    I made a copy (backup ?) of the Music folder in Windows Vista Home Premium 32-bit OS, to my Desktop. If something corrupts the Music in iTunes, will this be a "good enough" backup to be able to restore the music by moving it back into the Music folder, or will soemthing be missing ?
    Thanx !
    DaleB
    ==============================================================================

    Hi:
    I did not move them arounsd outsice of iTunes.
    I copied & pasetd them in iTunes, but in some cases, they became subfolders.
    e.g., I may have a main folder in iTunes called "Rolling Stones", and subfolder iteled after their Greatest Hits album "Hot Rocks". Initially,
    Hot Rocks was a folder at the same level as Rolling Stones. Thenm I create a subfolder within Rollng Stones and then copied and pasted all of the MP3 files from the main folder (Hot Rocks) into the subfolder (Hot Rocks), and then deleted the main folder (Hot Rocks). But, iTunes now tells me it can find the songs. The Apple guy at best Buy showed me how to delete the current database without deleting the actual tunes, and then rebuild the database, all in a few mouse clicks. But, this was on a Mac...I do not know if iTunes for Windows has the same menu features as the Mac version. I just forgot the steps that he went through.
    DaleB

  • Getting error while rebuilding master database in cluster environment

    I am testing a disaster recovery scenario in one of our test MS SQL server with 2 node cluster.  I am executing below rebuild command using MS SQL server setup.
    C:\U_Soft\SW_CD_SQL_Svr_Enterprise_Edtn_2005_64Bit_X64_English_1_x64_MLF_X11-57796>start /wait C:\U_Soft\SW_CD_SQL_Svr_Enterprise_Edtn_2005_64Bit_X64_English_2_x64_MLF_X11-57797\setup.exe /qb VS=DMZSQLTST REINSTALL=SQL_Engine REBUILDDATABASE=1
    ADMINPASSWORD=abcd1234$ SAPWD=abcd1234$
    I am getting the blow alert / error  the during setup execution
    “An installation package for the product Microsoft SQL Server 2005 (64-bit) cannot be found. Try the installation again using a valid copy of the installation package ‘SqlRun_SQL.msi’
    I have checked the package is available in the setup.

    Hello,
    Did you copy the setup file from a different place? The issue may occurs if you don't have access to the original media location of where the RTM bits where installed from.
    To resolve this issue, please try to use the  REINSTALLMODE with option V to re-cache the media from the new location. For example:
    C:\U_Soft\SW_CD_SQL_Svr_Enterprise_Edtn_2005_64Bit_X64_English_2_x64_MLF_X11-57797\setup.exe /qb VS=DMZSQLTST  REINSTALL=SQL_Engine REINSTALLMODE=v ADMINPASSWORD=abcd1234$ SAPWD=abcd1234$
    And then run the normal command to rebuild the database.
    Reference:
    http://ms-abhay.blogspot.in/2010/11/error-1706-installation-package-for.html
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Iphoto won't quit, won't import photos, stalls while editing photos despite rebuilding the database

    I have mountain lion and the newest version of iphoto.   It won't quit unless I force quit it, it won't import photos, it won't let me edit photos without freezing up.   I have tried rebuilding the database and repairing permissions without success

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it freezes also try this:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If the new library doesn't freeze or act like your current library then your current library is the culprit.
    In that case  Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Entourage is verifying and wanting to rebuild my database?

    Entourage says it can't find my database, is verifying and wants to rebuild my database.  Is this okay?

    Hi Ruth, I think I'd quit it for now.
    Entourage Repair When Microsoft Entourage Cannot Find Your Database On Hard Drive...
    http://www.msentouragerecovery.com/blog/2010/12/entourage-repair-when-microsoft- entourage-cannot-find-your-database-on-hard-drive/
    Rebuilding should be avoided unless there is database corruption...
    http://www.office.mvps.org/database/rebuild.html
    Entourage Identity/Database...
    http://www.office.mvps.org/database/entourage.html

  • Remote Desktop Licensing Role - Rebuild the Database?

    My server is failing, so i want to rebuild the database. I have already installed the Remote Desktop Licensing Role. Should I rebuid from the Remote Desktop Licensing Manager or use the Add-RDLicense cmdlet?

    Hi Andrew,
    Thank you for posting in Windows Server Forum.
    It depends on your requirement, you can check the following link for useful information.
    RD Licensing Configuration on Windows Server 2012
    http://blogs.technet.com/b/askperf/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to rebuild email database?

    I need to rebuild email databases on an Xserve running Mac Server OS 10.6.8. Any ideas?

    late answer.. but for anyone else searching.
    Server Admin has an option, but I would download mailbfr.
    If you install mailbfr:
    You can run rebuild a single user
         sudo mailbfr -m user
    Or reconstruct the entire database (often necessary when single user rebuild doesn't solve)
         sudo mailbfr -f

  • After rebuild message database, mail folder come back into English

    I rebuild message database for some reason. https://support.mozilla.org/en-US/kb/rebuilding-global-database
    Then all default mail foler names become English. (They used to be Chinese) These are: Inbox, Drafts, Trash, Archive, Sent, Junk, Outbox.

    Hello, 
    I am trying to rebuild system database after a DR Scenario by running the below. 
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    It takes me to back to the command prompt as if it was successful.
    However event log says:
    Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.
    Hi,
    Error 2 means system cannot find the file specified. Can you make sure about location of master database file.
    plus
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    In above query why are you going to release folder you must go to SQL Server 2008 r2 folder
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2
    I guess script should be like
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    Setup.exe is in SQLServer 2008 r2 folder not in release folder
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP
    Hi Shanky_621, 
    I do not have a
    SQL Server 2008 r2 folder with in the release folder. 
    Currently I am trying it from DVD which Alberto Morillo has suggested. 
    Best regards, 
    Mohan

  • Rebuild master database on MSSQL Server Edition 2012

    Hi There,
    Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012?
    Thanks,
    Ashish Tripathi
    Regards, Ashish Tripathi

    Hello,
    Please read the following article.
    https://msdn.microsoft.com/en-us/library/dd207003(v=sql.110).aspx
    An alternative may be the following procedure.
    http://blogs.technet.com/b/fort_sql/archive/2011/02/01/the-easiest-way-to-rebuild-the-sql-server-master-database.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Rebuild System Database are failing

    Hello, 
    I am trying to rebuild system database after a DR Scenario by running the below. 
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    It takes me to back to the command prompt as if it was successful.
    However event log says:
    Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.
    and the log file summary says:
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2068643839
      Exit facility code:            1203
      Exit error code:               1
      Exit message:                  Failed: see details below
      Start time:                    2014-11-18 12:18:14
      End time:                      2014-11-18 12:18:20
      Requested action:              ComponentUpdate
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\WatsonX64_Cpu64_1_ComponentUpdate.log
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.2531.0
    Machine Properties:
      Machine name:                  CORPPLN-SQL
      Machine processor count:       2
      OS version:                    Windows Server 2008
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation edition:          EVAL
    User Input Settings:
      ACTION:                        ComponentUpdate
      CONFIGURATIONFILE:             
      HELP:                          False
      INDICATEPROGRESS:              False
      PID:                           *****
      QUIET:                         True
      QUIETSIMPLE:                   False
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\ConfigurationFile.ini
    Detailed results:
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\SystemConfigurationCheck_Report.htm
    So following Microsoft recommendation, I've uninstalled the SQL Native Client it still failing with exactly same message. 
    COuld anyone kindly advise as I've ran out of ideas?
    Best regards, 
    Mohan

    Hello, 
    I am trying to rebuild system database after a DR Scenario by running the below. 
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    It takes me to back to the command prompt as if it was successful.
    However event log says:
    Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.
    Hi,
    Error 2 means system cannot find the file specified. Can you make sure about location of master database file.
    plus
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    In above query why are you going to release folder you must go to SQL Server 2008 r2 folder
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2
    I guess script should be like
    C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2>SETUP /QUIET /
    ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
    =xxxxxx
    Setup.exe is in SQLServer 2008 r2 folder not in release folder
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP
    Hi Shanky_621, 
    I do not have a
    SQL Server 2008 r2 folder with in the release folder. 
    Currently I am trying it from DVD which Alberto Morillo has suggested. 
    Best regards, 
    Mohan

  • Rebuilding iPhoto database and missing files

    Heya,
    I got a corrupt iPhoto6 database after a power failure (but had a backup) while travelling. I didnt have the backup drive handy(was far away), so I kept adding new files to this corrupt database. I also began making modifications.
    Now I want the two together and keep all the modifications too. I foolishly thought I could: add to the backup the new "rolls" with the Originals and Modified folders and then rebuild the database.
    Why 'rebuilding the database' doesnt involve scanning through these two directories I don't know, because this doesnt work. I thought maybe the permissions were wrong, but that doesnt seem to be it.
    So what the best way - while retaining the modifications Ive made to my new rolls - to add everything back to the Master/non-corrupted database. A Merge with iPhoto Library Manager? Could a rebuilt with it work(Looks like no, since it only scans the xml file).
    cheers,
    matt
    Intel Mac mini Mac OS X (10.4.8)

    Matt:
    Here's what I think is your only option to retain some of the modifications that are in the library and get all of your photos back.
    1 - create a new library.
    2 - with the paid version of iPhoto Library Manager copy all of the albums and rolls from the current library into the new one. This will retain your rolls and albums, keywords, and comments but not slideshows, books, etc.
    3 - copy the Originals folder from the current library to the desktop.
    4 - drag the Originals folder into the open iPhoto window. You should get a window asking if you want to import duplicates or not - select not.
    That will give you the closest you can get to what you had before the crash with the after crash modifications.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • TS3276 how do i rebuild the database when starting up Mail version 5.2?

    Having real problems with Mail. Sent a large attachment earlier today which is now in a 'Recovered Message' folder. Since then I can't send or receive any emails from any account, ie BT Yahoo, via Mail, although I can do this from the internet at BT Yahoo. A friend suggested 'rebuilding the database' by holding down certain keys at launch of Mail. Will this work and if so what are the keys to hold down?
    Many thanks

    You can rebuild your mailbox by selecting the mailbox and then selecting the menu item "Mailbox >> Rebuild".
    You can optimize your mailbox by "vacuuming" the databases too (huge improvement). Open Termina.app and use:
    */usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum*
    Personally, I do it with AppleScript:
    *tell application "System Events"*
    *set mailIsRunning to (name of processes) contains "Mail"*
    *end tell*
    *if mailIsRunning then tell application "Mail" to quit*
    *do shell script "/usr/bin/sqlite3 ~/Library/Mail/'Envelope Index' vacuum"*
    *if mailIsRunning then tell application "Mail" to activate*
    Message was edited by: J D McIninch

  • On booting Mail 4.5 says Rebuild Mail Databases

    It claims another computer is accessing my mail accounts. I got an iPhone recently and the problem did start at that time. I have had an iPod touch for a long time and never had this problem.
    Usually I just say quit and relaunch mail and everything is okay. It only happens when I boot.
    Lately I have had to force quit Mail.
    On one occasion, after cloning my Hard disk, i did say Rebuild Mail Databases. Bad decision. I had to force quit when it indicated it had finished. and Mail sent some messages that were a year old out again, causing confusion. Some of the recipients received a blank email with the subject complete. Others received the complete email.
    I use SpamSeive, Mailtags, Mail Act-On and Mail follow up plug ins.
    Any ideas?
    Thanks

    I solved the problem by following this advice from WZZZ
    "Try moving the small 8.1MB Mail.app to the Trash. But don't empty it. Then download and install the Security Update again. http://support.apple.com/kb/DL1586
    Luckily I didn't empty or trash my original Mail and after installing that update (link above), Mail opens fine.

Maybe you are looking for

  • Block contact

    My I block unknown contact on my Nokia lumia 510??? Suggestions please...

  • How to change both start and end dates for an business event (or any object

    Hi all. We are in the case to change the validity dates for several business events in training management. The special point is that both, start and end date, have to be changed. In example, business event 00000001 is valid from 2010.01.01 to 2010.0

  • Getting a Word-Doc stored in DB as Blob

    Hi ! I'm an intermedia-beginner and I would like to know, how can I get the content of Word-Doc (stored as blob) by searching (if kriteria is found)? Example: I have a table: documents(id number pk,note varchar2(20), doc blob ) indextype is ctxsys.co

  • Comparing an XSL file

    Hi, when i try to compare an .xsl file, i have an error that SCM can't compare binary file ! .xsl files are the same as .html files ! Is there a way for SCM to consider .xsl files as text files ? (such as .html files ?) thanks

  • Kodak 6 in 1 card reader macbook pro 10.7.5

    have old kodak 6 in 1 card reader and mid-2011 maxed-out macbook pro 10.7.5 --- any drivers or anything to make card reader work with mac? contacted kodak & lexar to no avail.