Error: /opt/homebrew/Cellar/postgresql@14/14.15 is not a directory
0
votes
0
answers
77
views
Today brew upgrade is broken for me.
Situation macOS 13.3.1 and its been a while since I upgraded.
➜ ~ brew upgrade
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see
man brew
).
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
gotz punktf sdl3_ttf trdsql ytt
You have 77 outdated formulae and 2 outdated casks installed.
==> Upgrading 77 outdated packages:
Error: /opt/homebrew/Cellar/postgresql@14/14.15 is not a directory
I do not want to uninstall the postgresql, is it possible to upgrade and keep postgresql.
This is the brew version:
➜ ~ brew --version
Homebrew 4.4.22
Homebrew/homebrew-core (git revision 07fd881f26b; last commit 2025-03-02)
Homebrew/homebrew-cask (git revision 8de2d3aeb85; last commit 2025-03-02)
what should I do to fixed this issue? This is the brew info output:
➜ ~ brew info postgresql
==> postgresql@14: stable 14.17 (bottled)
Object-relational database system
https://www.postgresql.org/
Installed
/opt/homebrew/Cellar/postgresql@14/14.15.reinstall (3,328 files, 45.5MB)
Poured from bottle on 2025-01-25 at 15:12:08
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/postgresql@14.rb
License: PostgreSQL
==> Dependencies
Build: pkgconf ✔
Required: icu4c@76 ✔, krb5 ✔, lz4 ✔, openssl@3 ✘, readline ✔
==> Caveats
This formula has created a default database cluster with:
initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@14
To restart postgresql@14 after an upgrade:
brew services restart postgresql@14
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/postgresql@14/bin/postgres -D /opt/homebrew/var/postgresql@14
==> Analytics
install: 61,546 (30 days), 147,816 (90 days), 599,975 (365 days)
install-on-request: 60,920 (30 days), 146,277 (90 days), 586,974 (365 days)
build-error: 85 (30 days)
and this is the folder:
➜ ~ ls -ld /opt/homebrew/Cellar/postgresql@14/*
drwxr-xr-x 14 xiaoqiangjiang admin 448 Jan 25 15:12 /opt/homebrew/Cellar/postgresql@14/14.15.reinstall
Asked by Dolphin
(1275 rep)
Mar 2, 2025, 02:43 PM
Last activity: Mar 4, 2025, 12:03 PM
Last activity: Mar 4, 2025, 12:03 PM