Comments (10)
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
from docker-superset.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- exposure of Port 8443 and defining SSL certificate location HOT 1
- Superset unable to load snowflake driver on linux HOT 3
- Could not create new database after 1.1.0 to 1.3.0 upgrade HOT 5
- superset db upgrade fails inside a container on kubernetes HOT 1
- Build - MarkupSafe version compatibility HOT 6
- SSL connection with Azure MySQL database HOT 1
- 1.5.x and maintenance HOT 2
- Celery beat broken HOT 1
- Missed ecpg in docker image HOT 1
- Big Number with Trendline coudn't work with PostgreSQL's date field HOT 1
- Superset not working properly after upgrade to v 1.5.1
- Upgrading to 2.0.0 and using redis backend crashing. Seems to need upgraded redis client to 3.4.0 HOT 1
- superset_config.py when active another language crashes: Cannot read properties of undefined (reading 'flag')
- Creating custom viz plugin
- Release SuperSet 1.5.3 ? HOT 1
- BigQuery interface NotImplementedError exception
- Bigquery support lib pybigquery is obsolete HOT 1
- Error runnning db upgrade on 2.1.0 "sqlalchemy.exc.StatementError: (builtins.AttributeError) 'function' object has no attribute 'replace'"
- ClickHouse connection issue after upgrading to 2.1.0 HOT 1
- Superset 3.0.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-superset.