-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
[Bug] Migration fails on a new system #1117
Comments
Please see: #861 |
@khorshuheng thx for such a speedy pointer, that seems to be indeed spot on... |
There are actually some additional steps needed if you want to set this up on k8s. There's a work in progress here (which is not fully working yet) - https://github.com/khorshuheng/appflowy-self-host-resources/tree/main/charts/appflowy |
I am still investigating if we can simplify the setup via: #891 |
I did find the script mentioned in the other issue but that was indeed leading me to the next issue you described. For now, I am using a manual deploy so I consider I still fall under the docker umbrella :) |
In my chart, you will see that I am using "appflowy" user and "appflowy" database. But it's still not fully working, because AppFlowy cloud service will fail to create user's data after login, due to row level security (which can be overcome with the draft PR above) |
Yes, that sounds already better than assuming the user can use the postgres DB... |
From what I have seen so far, there are a few issues with appflowy_cloud but that's manageable. The issues are mostly (if not only) around Why were the old migrations removed ? |
Basically, gotrue service will create the necessary migrations on start up. There are certain operations that cannot be handled automatically by gotrue, such as creating the auth schema (
before folder.
Without seeing the detail error message, i can only speculate. Most of the users faced the issue due to one or more of the following reasons:
|
As for your questions on old migrations - as explained, the migration is handled by the gotrue container. If you exec into the gotrue container, you will see all the migration files in that container, similar to https://github.com/supabase/auth/tree/master/migrations |
If only I could.... Seeing the image, it makes sense that |
If anyone else runs into that, here are the |
I ran into several migrations issue and here is my take-away:
I did run into AppFlowy migrations issues as well. I mentioned the issue in #823 (comment) and @speed2exe provided some critical hints. I found out that neither of the following will make every service (ie gotrue + appflowy) happy:
The best is likely to start checking what your
If only one value is listed, you will need the following: However, the following did help unlocking further mighrations:
|
Bug Description
Deploying on a fresh database.
How to Reproduce
postgres://postgres:somepass@postgresql:5432/appflowy
Expected Behavior
The migration works.
Operating System
K8S
AppFlowy Version(s)
appflowyinc/appflowy_cloud:latest
Screenshots
(no worries about the visible password, it is a test system with a temp password already no longer valid...)
Additional Context
No response
The text was updated successfully, but these errors were encountered: