-
Notifications
You must be signed in to change notification settings - Fork 4.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
Serialization: Cannot load into empty/blank target #16639
Comments
Hi @223kazuki That was unfortunate. I tested all the fixes in #15858 so many times, but never on an empty target, since the main use-case for Serialization is existing targets. I'm curious, do you normally always Workaround would be to do the setup again before step 5, so the load-process can see the user. It could be done via API. |
@flamber Hi, thanks for the reply. Yes, we always |
@223kazuki We will address this, since it's highly recommended to use 1.39.3+ for Serialization, which fixed more than 15 problems and that version provides much better logging too. I just don't have a timeline for a fix right now. |
@flamber Thanks. Yeah, I also found some other serialization issues. Hopefully, 1.39.3+ solves them. So I will adopt your workaround for now. |
@flamber I tried your workaround. But to create initial user by setup endpoint, we need |
I found MB_SETUP_TOKEN. But even if I can get a setup token, calling REST API to create user makes our development workflow difficult. So we need to solve the original issue in order to upgrade our metabase to 1.39.3. |
@223kazuki An alternative is to copy a target database in, which just has one user and nothing else. Then you don't need to use the API. We are prioritizing this issue internally. |
@flamber Thanks. That's one idea. But since we also need to use postgres in dev, we'd like to wait for a fixed version. (Not easy to copy db) And I also realized there's a new version, |
Should be fixed by commit 2 under #17388 The behavior now will be:
|
@jeff303 Thanks so much! |
Describe the bug
When I try to dump and load data in metabase
v1.39.3
, it throws an exception inInserting User
step. So I can't restore data.Logs
To Reproduce
java -jar metabase-v1.39.3.jar
.java -jar metabase-v1.39.3.jar dump ./dump --user [my mail address]
rm -rf metabase.db.*
java -jar metabase-v1.39.3.jar load ./dump --mode update --on-error abort
Expected behavior
Should restore all dump data.
Information about your Metabase Installation:
Severity
Can workaround by using a previous version.
Additional context
It doesn't happen in
v1.39.2
The text was updated successfully, but these errors were encountered: