-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve caveats handling for API installs #17288
Comments
I solved the problem by just uninstalling and installing again
which should have been run automatically, according to the message we see when we install
So, there's a bug either in the installation or documentation/message |
The Footnotes |
Agreed on 🐛. Fix should be:
|
I can see how this might be our most viable fix, but I'd strongly prefer a solution that retains the Many users blindly run what |
I can't see how this can be made to work with the API unless we're embedding Ruby source. |
I'm not opposed to that, but I don't think we need to. There is already a mechanism for fetching the Ruby source separately, which is why we have the |
This would work. Would mean it's not going to show with |
This is fine with me, I think. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew gist-logs postgresql@14
gives me the errorI am on Monterey. I don't think I can update XCode.
Anyway, I can execute the other commands.
brew config
producesbrew doctor
producesVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Start PostgreSQL as a background service using
brew services start postgresql@14
What happened (include all command output)?
If I do
brew services list
, I getSo,
postgresql@14
is a service. Now, I want to start this service. So, I didbrew services start postgresql@14
, which produces the following outputNow, if I do
brew services list
again, I getIf I open
~/Library/LaunchAgents/[email protected]
, I see the logs are at/usr/local/var/log/[email protected]
.Now, if I open
/usr/local/var/log/[email protected]
, I get many errors like thisNow, effectively, I don't have the folder
/usr/local/var/postgresql@14
, but I have the folder/usr/local/var/postgres
.Now, when I execute
brew services start postgresql
(so without the suffix@14
), I get the warningWarning: Formula postgresql was renamed to postgresql@14.
, so maybe the rename is causing this issue, i.e. the formula was renamed but the data directory wasn't? Anyway, shouldn'tbrew services start postgresql@14
automatically create the folder/usr/local/var/postgresql@14
if it doesn't exist? If yes, is this a bug then? According to https://formulae.brew.sh/formula/postgresql@14Apparently, in my case, that didn't happen.
My problem is vaguely similar to https://apple.stackexchange.com/questions/451097/brew-postgresql14-error-on-mac-m2, but my error in the logs is quite different.
I've not tried to manually create
/usr/local/var/postgresql@14
because, if this is a bug, it probably should be fixed and that folder should be automatically created.I thought of uninstalling postgresql and remove all configuration files, but this may be too dangerous, although I don't think I have anything important in this machine. Anyway, I don't really know what commands I should really use to make a clean installation again. I've looked at https://stackoverflow.com/a/57326013/3924118, but it would be nice to have an authoritative answer
What did you expect to happen?
PostgreSQL starts, no error occurs, and I can access it
Step-by-step reproduction instructions (by running
brew
commands)See above
The text was updated successfully, but these errors were encountered: