-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
superset-init-db job on 1.5.0rc4 image fails with no error messages #19836
Comments
in 0.6.0 helm we are changing the postgresql version from 10 to 14. Can you try with helm 0.5.10 and check, whether still getting the same issue. |
I'm using my own postgresql installation (14.2.0). |
Can you try with helm chart 0.5.10 once |
Still fails. The script fails with no error messages so I can't provide you with more info for debugging. Is there any flag to enable and get deeper insight on this? |
Can you take the complete pod log and check, also you can check the |
I have the same error, superset-init-db never starts `postgresql 14:51:46.43 postgresql 14:51:46.66 INFO ==> ** Starting PostgreSQL ** This is for 0.6.0 Chart. When I change to 0.5.10 superset-init-db does not start
|
@Jap8nted In your case , seems you are already having PostgreSQL 11 version database files and on on you current installation it's asking for 14.2 version. Are you using master branch for the installation or any specific version of superset. |
Well I just installed using helm version 0.6.0 and 0.5.10, dont really know what branch are those using. |
Having the same issue with Here's a full log:
Upon further inspection, this command And upon even further inspection, the hidden errors appear to be related to this: miguelgrinberg/Flask-Migrate#434 . There's a hackish way to see the actual error message, though, it's in the linked issue. |
@john-bodley wondering if you have any insight here, or know someone good to redirect this to :) |
For me it works with |
Same thing happens on 1.5.2 image :
Chart version: 0.7.1 |
Same with me for 2.0.1rc2, there's no error message and init failed completely. |
The same problem. |
Could somebody help with that? |
I am having the same issue issue using the Superset image 1.5.2 and HELM chart version 0.7.6. Any idea why this happens? The application itself runs, I can access the UI and the superset-, superset-worker-, and superset-celerybeat- pods are running. I can also see that tables are generated by Superset in my Postgres database. Does this failing actually effect the application in any way? |
I've resolved this issue with removing all deployments and re-deploy after that. Looks like when you migrate from one version to another sometimes there are some problems with DB initialisation |
I downgraded from helm chart 0.7.7 to 0.7.6 and it worked. |
After manually applying changes from #22991 I can see the following:
superset 1.5.3 The
Inspecting
Apparently, there are several revisions missing. I took the list from here and put it through some bash'n'grep until I got this list of missing revisions:
|
Upgrading the chart version from 0.8.4 to 0.8.10 fails with the same no error
|
I'm struggling here with the same error, tried many versions of the chart, no success so far. Is there any workaround? |
@frafful I finally figured out the issue. The default helm chart uses the latest image, which is the dev build. I believe the random changeset gets introduced and removed into the dev docker image. Note: following these steps may corrupt the database structure, so make a database backup before proceeding The solution is to use the stable version of the superset docker image in the helm chart and then fix the version id in the
image:
repository: apache/superset
tag: 2.1.0
pullPolicy: IfNotPresent I had to jump through several hoops to fix the init job. Initially, getting access to the Postgres database.
With this now, you can use pgsql cli to access the database. I think the default username and password are Next, find the latest migration file version.
for me, it was
UPDATE alembic_version
SET version_num = '4ce1d9b25135'
WHERE version_num = '<current version>';
The final version id worked for me is this UPDATE alembic_version
SET version_num = 'f3c2d8ec8595'
WHERE version_num = '4ce1d9b25135'; |
Thanks @gamunu for sorting out the issue. As of #25373 the Helm chart is currently at pointing at 3.0.0, which should address the underlying issue here. As that has been fixed, and most of this thread is about the no-longer-supported 1.5.x version, I am going to close this issue. If folks find this issue reappearing on the latest version of the helm chart, please feel free to open a new issue. |
I'm using helm chart 0.6.0 with 1.5.0rc4, however
superset-init-db
fails with no obvious errors:Here is my superset config:
I realized
superset fab create-admin
is the part that is failing [returning exit code 1]My superset installation is already in place [older version 1.4.2] and I can login to superset. I can see all dashboards, create databases, datasets, ...
Essentially everything works, except this init job.
The text was updated successfully, but these errors were encountered: