GithubHelp home page GithubHelp logo

Comments (10)

shixin-guo avatar shixin-guo commented on May 14, 2024 1

2017-04-13 08:35:56,177:INFO:root:Creating missing datasource permissions.
2017-04-13 08:35:56,180:INFO:root:Creating missing database permissions.
2017-04-13 08:35:56,184:INFO:root:Creating missing metrics permissions

sorry I update the images, and run .but also alert error .so I want to consult how to resolve this case
image
image

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

A few thoughts:

First, you're starting your container in --detach mode which means you can't see its ouput. Try leaving that out or running docker logs superset to see the logs. That will tell you why the container stopped.

Second, it looks like the container is stopping because it can't write to its DB because of a bug in my Dockerfile. I didn't see this behavior myself because I am using the image a little differently.

By default, Superset uses a SQLite DB located at ~/.superset/superset.db. The Dockerfile I've writen defines a VOLUME at /home/superset/.superset so that users can easily mount a directory here. If you don't mount a directory here then when your container is removed all the data is removed with it.

The idea is for users to create their own local directory that contains a superset_config.py file that lays down some configuration for how you want Superset to work. If you decide to use SQLite as a back-end then you would also store your superset.db file here.

So to get around the bug, you could do something like this:

docker run --detach --name superset \
  --volume ~/superset:/home/superset/.superset \
  amancevice/superset

Try familiarizing yourself with docker-compose a little and then looking at my examples in the examples directory.

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

Also, I have fixed the issue with your command. If you run docker pull amancevice/superset the original command you gave me should work.

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

That all looks fine. I don't see a problem...

Have you published the 8088 port? If you don't publish the port you won't be able to navigate to the app from your host machine.

from docker-superset.

shixin-guo avatar shixin-guo commented on May 14, 2024

I run docker this image on port 8088 but I open browser at localhost:8088 and not take effort

maybe I operate this somewhere wrong

and missing database permissions is ok?????

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

You need to include the flag -p 8088:8088 to publish the container's port 8088 to your host-machine's port 8088.

from docker-superset.

sterlinm avatar sterlinm commented on May 14, 2024

I seem to be having an issue getting the docker container to run as well (it's running in a vagrant box if that might matter). When I look at the log for my docker run command I don't see any obvious errors, but from what I can tell (and I'm a novice) the docker container stops running after 30 seconds or so. Here's my log:

vagrant@vagrant-ubuntu-trusty-64:~/superset$ sudo docker logs superset
[2017-07-13 19:14:43 +0000] [9] [INFO] Starting gunicorn 19.7.1
[2017-07-13 19:14:43 +0000] [9] [INFO] Listening at: http://0.0.0.0:8089 (9)
[2017-07-13 19:14:43 +0000] [9] [INFO] Using worker: sync
[2017-07-13 19:14:43 +0000] [12] [INFO] Booting worker with pid: 12
[2017-07-13 19:14:43 +0000] [13] [INFO] Booting worker with pid: 13
[2017-07-13 19:14:43 +0000] [14] [INFO] Booting worker with pid: 14
[2017-07-13 19:14:43 +0000] [15] [INFO] Booting worker with pid: 15
/usr/local/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.
  warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.')
Loaded your LOCAL configuration at [/home/superset/.superset/superset_config.py]
Starting server with command:
gunicorn -w 4 --timeout 60 -b  0.0.0.0:8089 --limit-request-line 0 --limit-request-field_size 0 superset:app

When I try to run the init I get a message that the container is not running:

Error response from daemon: Container 1088d2a7fd3496288878fba4de2aa6484bf5370ef9b5e30dad07f7fb504f384b is not running

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

Can I ask why you are running Docker in a Vagrant box? That seems redundant. Also can you give me the exact command you are using to start the container?

from docker-superset.

sterlinm avatar sterlinm commented on May 14, 2024

My work computer is a windows computer, but if Superset eventually seemed like something worth using I was hoping to run it on AWS in a docker container on Elastic Beanstalk. I just wanted to test it out locally using vagrant. I also am not as well versed in docker as I would like to be so it's possible I'm just making dumb mistakes.

Here's what I was running:

sudo docker run --detach --name superset -v /home/vagrant/superset:/home/superset/.superset amancevice/superset
sudo docker exec -it superset superset-init

I did end up getting it working just in the vagrant machine and skipped docker entirely. In order to do so I had to increase the memory that I was allocating to the machine so it's possible that that was the issue.

from docker-superset.

amancevice avatar amancevice commented on May 14, 2024

You can run Docker on Windows now, so it should work the same there as on AWS without Vagrant.

What are the contents of your /home/vagrant/superset directory?

Also, protip: instead of using single-ticks, use triple-ticks to surround code blocks to keep multi-line formatting:

```
Here is some code
on two lines
```

from docker-superset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.