Thursday, 24 January 2019

IBM (Lotus) Notes and the borked bookmarks

Wow, this dusted off some braincells which I've not used in a while ....

Whilst setting up a new MacBook Pro, I realised that I'd forgotten to copy across the Notes database that contains my bookmarks - bookmarks.nsf.

I copied this across from my SuperDuper backup: -

cp /Volumes/Untitled/Users/davidhay/Library/Application\ Support/IBM\ Notes\ Data/bookmark.nsf ~/Library/Application\ Support/IBM\ Notes\ Data

and started Notes.

Which immediately failed with a less-than-useful message.

So I force-quit Notes, and brought it up from the command-line ( via Terminal ) : -

/Applications/IBM\ Notes.app/Contents/MacOS/Notes -basic

which threw up the same error in the UI, but also gave me some more diags in the terminal: -

[27DE:0002-10BBE75C] **** DbMarkCorruptAgain(RRVReadPage: RRV container header was invalid), DB=/Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf  TID=[27DE:0002-10BBE75C] File=dbrrv.c Line=2850 ***

I checked the permissions etc. of the file: -

ls -al ~/Library/Application\ Support/IBM\ Notes\ Data/bookmark.nsf 

which all looked as expected: -

-rw-r--r--@ 1 hayd  staff  30670848 24 Jan 16:38 /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf

so I tried compacting the file: -

export DYLD_LIBRARY_PATH="/Applications/IBM Notes.app/Contents/MacOS"
cd ~/Library/Application\ Support/IBM\ Notes\ Data
/Applications/IBM\ Notes.app/Contents/MacOS/Support/NotesCompact -c bookmark.nsf 

which borked with this: -

[2882:0002-10A78A5C] **** DbMarkCorruptAgain(RRVReadPage: RRV container header was invalid), DB=/Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf  TID=[2882:0002-10A78A5C] File=dbrrv.c Line=2850 ***
[2882:0002-10A78A5C] 24/01/2019 16:50:09   Performing consistency check on bookmark.nsf... 
[2882:0002-10A78A5C] 24/01/2019 16:50:09   Completed consistency check on bookmark.nsf 
[2882:0002-10A78A5C] 24/01/2019 16:50:11   Database compactor error: RRV bucket is corrupt.

RRV bucket is corrupt.

so I tried fixing up the file: -

/Applications/IBM\ Notes.app/Contents/MacOS/Support/NotesFixup bookmark.nsf 

which borked again: -

[2883:0002-11564D5C] 24/01/2019 16:50:32   Database Fixup: Started:  bookmark.nsf
[2883:0002-11564D5C] **** DbMarkCorruptAgain(RRVReadPage: RRV container header was invalid), DB=/Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf  TID=[2883:0002-11564D5C] File=dbrrv.c Line=2850 ***
[2883:0002-11564D5C] 24/01/2019 16:50:32   Performing consistency check on bookmark.nsf... 
[2883:0002-11564D5C] 24/01/2019 16:50:32   Completed consistency check on bookmark.nsf 
[2883:0002-11564D5C] 24/01/2019 16:50:32   Database Fixup: Unable to fixup database /hayd/Library/Application Support/IBM Notes Data/bookmark.nsf: RRV bucket is corrupt.
[2883:0002-11564D5C] 24/01/2019 16:50:32   Database Fixup: Shutdown

so I gave up and copied the file again: -

cp /Volumes/Untitled/Users/davidhay/Library/Application\ Support/IBM\ Notes\ Data/bookmark.nsf ~/Library/Application\ Support/IBM\ Notes\ Data

and Notes is now happy ...

The moral of the story ? If at first you don't succeed, try try again ( thanks Mum ! )

PS For the record, once I re-copied the file, the fixup and compact processes just worked: -

 /Applications/IBM\ Notes.app/Contents/MacOS/Support/NotesFixup bookmark.nsf 

[28CA:0002-11171A5C] 24/01/2019 17:02:31   Database Fixup: Started:  bookmark.nsf
[28CA:0002-11171A5C] 24/01/2019 17:02:31   Performing consistency check on bookmark.nsf... 
[28CA:0002-11171A5C] 24/01/2019 17:02:31   Completed consistency check on bookmark.nsf 
[28CA:0002-11171A5C] 24/01/2019 17:02:31   Performing consistency check on views in database bookmark.nsf 
[28CA:0002-11171A5C] 24/01/2019 17:02:31   Informational, rebuilding view - user specified REBUILD (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf default design note Title:'')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   View selection or column formula changed
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Informational, rebuilding view - notes have been purged since last update (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf view note Title:'(Collaborations) Collaborations')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Informational, rebuilding view - notes have been purged since last update (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf view note Title:'(Downloads)')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Informational, rebuilding view - notes have been purged since last update (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf view note Title:'(Home Pages and Links) PersPage')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Informational, rebuilding view - notes have been purged since last update (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf view note Title:'(Layouts) (Layouts)')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Informational, rebuilding view - notes have been purged since last update (reading /Users/hayd/Library/Application Support/IBM Notes Data/bookmark.nsf view note Title:'(URLs)')
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Completed consistency check on views in database bookmark.nsf 
[28CA:0002-11171A5C] 24/01/2019 17:02:32   Database Fixup: Shutdown

/Applications/IBM\ Notes.app/Contents/MacOS/Support/NotesCompact -c bookmark.nsf

[28CB:0002-10BBC85C] The ID file being used is: /Users/hayd/Library/Application Support/IBM Notes Data/gb006734.id
[28CB:0002-10BBC85C] Enter password (press the Esc key to abort): 

[28CB:0005-719000] 24/01/2019 17:02:56   Compacting bookmark.nsf (Bookmarks (8.5)),  -c bookmark.nsf
[28CB:0005-719000] 24/01/2019 17:02:57   Compacted  bookmark.nsf, 14848K bytes recovered (50%),  -c bookmark.nsf
[28CB:0002-10BBC85C] 24/01/2019 17:02:58   Database compactor process shutdown 

No comments:

Reminder - installing podman and skopeo on Ubuntu 22.04

This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman  and skopeo  on an Ubuntu box: - lsb_rel...