-
Notifications
You must be signed in to change notification settings - Fork 39
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
Sqitch does not work after homebrew upgrade (Mac OS X) #38
Comments
If we switched it to use |
I just found the following Homebrew ticket, and it looks like pre- and post-install hooks are not a wanted feature: Homebrew/brew#2202 It seems Homebrew does symlink the latest installed versions of all packages in the following base directory:
My local installation contains a |
Yes, probably. But it would happen to folks once a year at most (at major version releases). |
I am facing the same issue after homebrew upgrade (Mac OS X). I can see this issue is in open status but is there any way to fix this issue? This is a blocker for our production deployment. I tried reinstalling sqitch and currently I have sqitch v1.3.1 on my mac. |
Have you tried removing and re-installing Sqitch? |
Yes, I didn't remove but reinstalled sqitch using brew reinstall sqitch. |
I have updated my Mac, so tried to run Sqitch, and yeah, it failed due to an upgraded Perl. Reinstall didn't fix it, but removing it then installing it again fixed it.
I don't think there is anything to do about this: when there is a major Perl upgrade, none of the modules can be considered binary compatible, so Sqitch must be completely reinstalled. |
I need the reinstallation for snowflake. Does the below command look right to you? |
Yep, documented here |
Hi, I am getting below error while running sqitch status command. Its complaining about tag that has been used to tag one of the change. sqitch status 'db:snowflake://username:[email protected]/db?Driver=Snowflake;warehouse=wh' Could you please help in resolving this issue? What does this error mean? |
Slashes are not allowed in tags, as of v1.3.1. You will need to remove the slashes from the tag, make it something like
The |
Thanks, how can I downgrade the sqitch version? I tried using version specifically to downgrade while installing sqitch but it didn't work. Also, how to grab the latest version of sqitch? We are also trying to do deployment using sqitch docker. However, we are getting below error when we tried running sqitch status command:
|
It means you haven't deployed a change to that database before, so it does not yet have a registry schema. |
Oh but we have deployed changes to this database before. The database that we are using is production database. Any idea what could be wrong or how can I debug this issue? |
My guess is you're not connecting to the database you think you are, or else that the user or role you're using does not have the necessary access. |
Why is this considered completed? Instead of making breaking changes every major version upgrade it is currently still breaking every version upgrade. |
Mainly because this repository is for the Docker image, not the Homebrew formula. Does sqitchers/homebrew-sqitch#61 correspond to the problem you're seeing? |
Problem
When Perl is updated via
brew upgrade
, sqitch usually stops working with an error message as follows:Reproduction Steps
For Mac OS X
brew install sqitch
brew upgrade
sqitch
Workaround
The only fix to my knowledge is reinstalling sqitch via
brew reinstall sqitch
.Troubleshooting
I guess this is caused by sqitch referencing the previous Perl binary before the upgrade.
Homebrew unfortunately installs minor and patch version updates in new directories, causing problems like this also for other applications.
I'm not sure if this is entirely a homebrew defect or whether there is something that could be done right in the sqitch launcher script or the Homebrew installation script. Maybe there is an upgrade hook for Homebrew packages that could be used for relinking with the correct Perl installation.
Maybe there is also a better way for finding the correct Perl binary such as:
The text was updated successfully, but these errors were encountered: