-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
'caravel db upgrade' hangs with Postgres RDS for metadata DB #238
Comments
+1 |
I'm seeing this with a local Postgres instance as well. Brand new database with no connections except Caravel and it's locking on the |
changing the query from the query is being generated here (https://github.com/airbnb/caravel/blob/1b4e750b2aa111445703dca07fe929f7ffde38c9/caravel/migrations/versions/4e6a06bad7a8_init.py) by alembic |
A bit more info after investigating further: When the migrations hang there are 2 open transactions from caravel: the
This second query is in a It looks like this is coming from some part of Flask-AppBuilder but I'm not familiar enough with it to say exactly where from. I was able to run the migrations successfully by terminating this other transaction. Once that was terminated the rest of the migrations ran successfully. |
Following @adamflanagan suggestion here is what I did:
The migration finished without error. |
i edited the upgrade method in https://github.com/airbnb/caravel/blob/master/caravel/migrations/versions/4e6a06bad7a8_init.py and everything worked fine
|
@greens231 would you create a pull request? It's hard to see the diff. |
how can i benefit from this fix? pip install caravel brings down the bug with it....any advice on how to build and deploy from the source code? |
@rohancs, instructions for making your own build are available in the "Making your own build
|
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.191 to 0.0.192. - [Release notes](https://github.com/hshoff/vx/releases) - [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md) - [Commits](airbnb/visx@v0.0.191...v0.0.192) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.191 to 0.0.192. - [Release notes](https://github.com/hshoff/vx/releases) - [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md) - [Commits](airbnb/visx@v0.0.191...v0.0.192) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.191 to 0.0.192. - [Release notes](https://github.com/hshoff/vx/releases) - [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md) - [Commits](airbnb/visx@v0.0.191...v0.0.192) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.191 to 0.0.192. - [Release notes](https://github.com/hshoff/vx/releases) - [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md) - [Commits](airbnb/visx@v0.0.191...v0.0.192) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
My caravel_config.py file sets the database to an AWS Postgres RDS, though when I try running 'caravel db upgrade', the script hangs at 'Running upgrade...' See image:
![screen shot 2016-04-01 at 2 15 47 pm](https://cloud.githubusercontent.com/assets/289141/14223299/feac0462-f831-11e5-9503-1a21331db574.png)
I've successfully set up Caravel on my machine by using a sqlite3 database for the metadata database, and can successfully use the RDS as a database source on the website.
Doing a bit of digging, I found that the PG server is locking on CREATE TABLE clusters. This persists even after I restart the database server, and no other users are connecting.
![screen shot 2016-04-01 at 2 43 36 pm](https://cloud.githubusercontent.com/assets/289141/14223300/00e7f128-f832-11e5-8629-4eefeaed914f.png)
The text was updated successfully, but these errors were encountered: