Skip to content
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

docker-init.sh is hanging when initializing in docker #6733

Closed
travisgu opened this issue Jan 21, 2019 · 7 comments
Closed

docker-init.sh is hanging when initializing in docker #6733

travisgu opened this issue Jan 21, 2019 · 7 comments
Labels
inactive Inactive for >= 30 days install:docker Installation - docker container

Comments

@travisgu
Copy link

travisgu commented Jan 21, 2019

I have run docker-compose up for several times and the issue was still there. It will stuck in the same issue.

Superset version

latest commit in master

Expected results

Initialization was executed correctly.

Actual results

The log prints the below info and it will stuck there forever:

INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -> ec1f88a35cc6, empty message
INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -> e3970889f38e, empty message
INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -> 46ba6aaaac97, empty message
INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -> c18bd4186f15, empty message
INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -> 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix
INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -> 0c5070e96b57, add user attributes table
INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -> 1a1d627ebd8e, position_json
INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -> 55e910a74826, add_metadata_column_to_annotation_model.py
INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -> 4ce8df208545, empty message
INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -> 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py
INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -> a61b40f9f57f, remove allow_run_sync
INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -> 6c7537a6004a, models for email reports
INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -> 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py`

Steps to reproduce

  1. Run git clonne the repo
  2. cd contrib/docker
  3. run docker-compose up
  4. run docker exec -it <> /bin/bash
  5. run ./docker-init.sh and it will hang on the above line forever.
@kristw kristw added #question install:docker Installation - docker container labels Jan 22, 2019
@nickwareing
Copy link

Same here. It would be really helpful if someone could point users at a branch or revision where the docker setup works. I've never been able to get this thing running (last tried back in December and got some other error, now this).

@mistercrunch
Copy link
Member

The docker scripts are community-contributed and not maintained by the core committers, that's reason why the files are in a contrib/ folder. You can try tagging the people who contributed those in the git history on this issue.

@therealkevinard
Copy link

While I would officially go with the "reach out to the contribs" solution, I have some insight to offer - just in the interest of getting anyone else's day going (this issue has solid seo)

The container was fine for me in docker-compose, but I saw the identical issue when I moved to k8s. Thinking it was a simple memory usage issue, I temporarily removed limits from my cluster's superset, postgres, and redis pods. I exec in and run the init script just fine. Afterwords, I re-applied the old memory/cpu limits, and superset works like a charm.

Looks like - at least for me, with an identical error - it's a simple memory issue.

(for posterity: my cluster is 4 x 1cpu/2gb + 2 x 2cpu/4gp)

@trtg
Copy link

trtg commented Apr 25, 2019

@travisgu @therealkevinard just seconding this issue- trying to get to superset working from within docker seems futile, I gave up and plodded through getting it to work outside of docker. Even without docker getting superset working is a complete pain in the ass- multiple broken python dependencies are present and incredibly finicky issues with the db upgrade/migration process exist. In the very end I was only able to get a half-working instance of superset that randomly fails, cannot load the charts page, etc. etc.

@therealkevinard
Copy link

It's working like a charm, here - with a couple of key considerations:

  • I had little luck building the image from this repo. Using https://hub.docker.com/r/amancevice/superset/ was no trouble.
  • using that image, I created a docker-compose stack. Before bringing it up, I use docker-compose run superset superset-init to run the migrations, THEN I run docker-compose up. They go without a hitch every time this way.

The dockerfile in this repo works great for development, though. (leads me to think the migrations issue has something to do with postgre).

@trtg
Copy link

trtg commented Apr 25, 2019

@travisgu @therealkevinard following from #6606 I was able to get the migration to complete by resetting the postgres docker container. (that thread suggested doing that or killing the hanging query process). I just found #6606 a moment ago). Also this commit from a few days ago addressed an issue I ran into earlier #7359

I guess things are looking better now

@stale
Copy link

stale bot commented Jun 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Jun 28, 2019
@stale stale bot closed this as completed Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days install:docker Installation - docker container
Projects
None yet
Development

No branches or pull requests

6 participants