Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari history cache gone?!

Hey,

After cleanmymac 3.0 clean out some temporary files, a message jump out in console.

how to move " Safari: ERROR: History: Failed to insert item into the history_items table: UNIQUE constraint failed: history_items.url (19)" out from console?

Pls help me.

Thanks a lot.... a lot...

MacBook Pro, OS X Yosemite (10.10.3)

Posted on May 4, 2015 2:40 PM

Reply
5 replies

May 4, 2015 4:41 PM in response to Jerry36

A

"CleanMyMac" is a scam and a common cause of instability and poor performance. Depending on what version you have, the developer's instructions may not completely remove it. Follow those instructions, then do as below.

Back up all data before proceeding.

Triple-click anywhere in the line below on this page to select it:

/Library/LaunchDaemons/com.macpaw.CleanMyMac2.Agent.plist

Right-click or control-click the highlighted line and select

Services Reveal in Finder (or just Reveal)

from the contextual menu.* A folder may open with an item selected. If it does, move the selected item to the Trash. You may be prompted for your administrator login password.

Repeat with this line:

/Library/PrivilegedHelperTools/com.macpaw.CleanMyMac2.Agent

Restart the computer and empty the Trash.

You may also have to remove these items in the same way:

~/Library/LaunchAgents/com.macpaw.CleanMyMac.helperTool.plist

~/Library/LaunchAgents/com.macpaw.CleanMyMac.volumeWatcher.plist

Never again install "CleanMyMac" or anything like it.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

B

If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.

There are ways to back up a computer that isn't fully functional. Ask if you need guidance.

If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.

*The linked support article refers to OS X 10.10 ("Yosemite"), but the procedure is the same for OS X 10.7 ("Lion") and later.

May 5, 2015 5:27 AM in response to Jerry36

Back up all data before proceeding.

Triple-click anywhere in the line below on this page to select it:

~/Library/Safari

Right-click or control-click the line and select

Services Open

from the contextual menu.* A folder named "Safari" should open. Quit Safari if it's running. One or more files in the open folder should have a name beginning in "History". Move those files, and only those, to the Desktop, leaving the window open. Relaunch the application and test. If there's no change, quit again and put the files you moved back where they were, overwriting the ones that may have been created in their place. Otherwise, delete the files you moved. The browser history will be empty. If possible, restore the deleted files from a backup that predates the problem.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Safari history cache gone?!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.