docker-superset icon indicating copy to clipboard operation
docker-superset copied to clipboard

celery example doesn't work

Open shizidushu opened this issue 7 years ago • 2 comments

Just clone and run bash demo.sh celery inside example directory.

bash demo.sh celery
Starting redis & postgres services...
WARNING: The MAPBOX_API_KEY variable is not set. Defaulting to a blank string.
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

Creating network "celery_default" with the default driver
Creating volume "celery_postgres" with default driver
Creating volume "celery_redis" with default driver
Creating celery_postgres_1_11f32d5e3d9e ... done
Creating celery_redis_1_82713512d7e0    ... done
Sleeping for 30s
Starting Superset...
WARNING: The MAPBOX_API_KEY variable is not set. Defaulting to a blank string.
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

celery_redis_1_fc597b05b8fd is up-to-date
celery_postgres_1_b50cc9e0bb46 is up-to-date
Creating celery_superset_1_ed1f6d2a128d ... done
Starting Superset worker...
WARNING: The MAPBOX_API_KEY variable is not set. Defaulting to a blank string.
WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use `docker stack deploy`.

celery_redis_1_fc597b05b8fd is up-to-date
celery_postgres_1_b50cc9e0bb46 is up-to-date
Creating celery_worker_1_a87fe7a97828 ... done
Sleeping for 30s
WARNING: The MAPBOX_API_KEY variable is not set. Defaulting to a blank string.
Error response from daemon: Container 6a62b38f1004d450ced6997b13df92e321da8728980c41c5485c534b30ae93ea is restarting, wait until the container is running
[simon@localhost examples]$ docker logs 6a62b38f1004d450ced6997b13df92e321da8728980c41c5485c534b30ae93ea
[2018-11-23 06:49:00 +0000] [1] [INFO] Starting gunicorn 19.8.0
[2018-11-23 06:49:00 +0000] [1] [INFO] Listening at: http://0.0.0.0:8088 (1)
[2018-11-23 06:49:00 +0000] [1] [INFO] Using worker: sync
[2018-11-23 06:49:00 +0000] [1] [INFO] Unhandled exception in main loop
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 203, in run
    self.manage_workers()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
    self.spawn_workers()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 616, in spawn_workers
    self.spawn_worker()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 565, in spawn_worker
    self.cfg, self.log)
  File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 58, in __init__
    self.tmp = WorkerTmp(cfg)
  File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/workertmp.py", line 23, in __init__
    fd, name = tempfile.mkstemp(prefix="wgunicorn-", dir=fdir)
  File "/usr/local/lib/python3.6/tempfile.py", line 337, in mkstemp
    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
  File "/usr/local/lib/python3.6/tempfile.py", line 130, in _sanitize_params
    dir = gettempdir()
  File "/usr/local/lib/python3.6/tempfile.py", line 298, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/local/lib/python3.6/tempfile.py", line 233, in _get_default_tempdir
    dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/superset']
[2018-11-23 06:49:03 +0000] [1] [INFO] Starting gunicorn 19.8.0
[2018-11-23 06:49:03 +0000] [1] [INFO] Listening at: http://0.0.0.0:8088 (1)
[2018-11-23 06:49:03 +0000] [1] [INFO] Using worker: sync
[2018-11-23 06:49:03 +0000] [1] [INFO] Unhandled exception in main loop
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 203, in run
    self.manage_workers()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
    self.spawn_workers()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 616, in spawn_workers
    self.spawn_worker()
  File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 565, in spawn_worker
    self.cfg, self.log)
  File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 58, in __init__
    self.tmp = WorkerTmp(cfg)
  File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/workertmp.py", line 23, in __init__
    fd, name = tempfile.mkstemp(prefix="wgunicorn-", dir=fdir)
  File "/usr/local/lib/python3.6/tempfile.py", line 337, in mkstemp
    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
  File "/usr/local/lib/python3.6/tempfile.py", line 130, in _sanitize_params
    dir = gettempdir()
  File "/usr/local/lib/python3.6/tempfile.py", line 298, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/local/lib/python3.6/tempfile.py", line 233, in _get_default_tempdir
    dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/superset']

shizidushu avatar Nov 23 '18 06:11 shizidushu

Why did you close this issue without explaining what the solution is?

dpmccabe avatar Feb 27 '23 21:02 dpmccabe

@dpmccabe Sorry. I have forgotten the details about this issue. I guess you may encounter the same problem, so I reopen it.

shizidushu avatar Feb 28 '23 06:02 shizidushu