Homebrew upgraded to 6.0 - and now the database is gone

I had Gramps 5.2.4 running on macOS (15.3.1) and ran brew upgrade without thinking much of it. When I came back to Gramps later it was showing an exception dialog and wasn’t responding to my attempts to quit, so I force quit it.

I reopened Gramps and no family trees were listed. At this point I realised brew had updated it to 6.0.0. I tried reinstalling the 5.2.4 .dmg but still nothing listed.

Looking in /Users/<user>/Library/Application Support/gramps it seems that there is no sqlite database at all. I will try to restore from a backup, but does anyone know what might have happened here?

It seems likely that you were using a custom folder location for your databasepath.

I suggest opening in the recent-files-gramps.xml file (in your Gramps User Directory) for the path of the last successfully opened tree.

See Database Locked - use force-unlock option - #11 by emyoulation

Thank you Brian - I was able to track that file down at /Users/<user>/.local/share/gramps and set /Users/<user>/.local/share/gramps/grampsdb as my database path. The family trees reappeared and the upgrade seems to have gone fine.

We’re still trying to discover where this problem originates.

with Gramps not running, could you open a Terminal window and run gramps -v and paste the results here?

Hi. gramps was not on my PATH but here is the output I get from a slightly adjusted command:

$ /Applications/Gramps.app/Contents/MacOS/Gramps -v
dyld[14069]: Symbol not found: _iconv
  Referenced from: <1D426CA5-79AC-3FA4-B4C2-F660B92D41B5> /opt/homebrew/Cellar/ghostscript/10.05.0_1/bin/gs
  Expected in:     <7BEEC725-F4A8-38A5-B475-4C5C6296E7E1> /Applications/Gramps.app/Contents/Resources/lib/libiconv.2.dylib
Gramps Settings:
----------------
 gramps    : 6.0.0
 o.s.      : Darwin
 kernel    : 24.3.0

Required:
---------
 Python    : 3.13.2
 Gtk++     : 3.24.48
 pygobject : 3.51.0
 Cairo     : 1.18.2
 pycairo   : 1.26.0
 Pango     : 1.56.1
 PangoCairo: 1.0
 orjson    : 3.10.15

Recommended:
------------
 osmgpsmap : 1.0
 Graphviz  : 12.2
 Ghostscr. : 
 ICU       : 3.13.2
 PyICU     : not found

Optional:
---------
 Gspell     : 1
 RCS        : not found
 PILLOW     : 11.1.0
 GExiv2     : 0.10
 Exiv2 lib. : not found because exiv2 is not installed
 geocodeglib: 1.0

Environment settings:
---------------------
 LANG      : en_GB.UTF-8
 LANGUAGE  : en_GB
 GRAMPSI18N: /Applications/Gramps.app/Contents/Resources/share/locale
 GRAMPSHOME: not set
 GRAMPSDIR : /Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/gramps
 PYTHONPATH:
    /Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/gramps
    /Applications/Gramps.app/Contents/Resources/lib/python3.13
    /Applications/Gramps.app/Contents/Resources/lib/python3.13/lib-dynload
    /Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages
    /Users/ross/Library/Application Support/gramps/gramps60/plugins/lib

System PATH env variable:
-------------------------
     /Applications/Gramps.app/Contents/MacOS
     /Users/ross/.rvm/gems/ruby-3.1.2/bin
     /Users/ross/.rvm/gems/ruby-3.1.2@global/bin
     /Users/ross/.rvm/rubies/ruby-3.1.2/bin
     /Users/ross/.pyenv/shims
     /Users/ross/.yarn/bin
     /Users/ross/.config/yarn/global/node_modules/.bin
     /opt/homebrew/opt/llvm@11/bin
     /opt/homebrew/opt/libpq/bin
     /opt/homebrew/opt/mysql-client@5.7/bin
     /opt/homebrew/opt/node@14/bin
     /opt/homebrew/opt/openssl@1.1/bin
     /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin
     /Users/ross/.poetry/bin
     /Users/ross/.dotnet/tools
     /opt/local/bin
     /opt/local/sbin
     /opt/homebrew/bin
     /opt/homebrew/sbin
     /Users/ross/.cargo/bin
     /Users/ross/.nix-profile/bin
     /etc/profiles/per-user/ross/bin
     /run/current-system/sw/bin
     /nix/var/nix/profiles/default/bin
     /usr/local/bin
     /usr/bin
     /usr/sbin
     /bin
     /sbin
     /Users/ross/.local/bin
     /Users/ross/.cabal/bin
     /Users/ross/.ghcup/bin
     /Users/ross/.rvm/bin

Databases:
-------------------------
 bsddb     :
     version     : 18.1.13
     db version  : 4.8.30
     location    : /Applications/Gramps.app/Contents/Resources/lib/python3.13/site-packages/berkeleydb/__init__.py
 sqlite3   :
     version     : 3.49.1
     location    : /Applications/Gramps.app/Contents/Resources/lib/python3.13/sqlite3/__init__.py