Redash_worker_1 exited with code 1


#1

Issue Summary

A summary of the issue and the browser/OS environment in which it occurs.

Technical details:

Using Docker to run redash

Please see the stacktrace:

ubuntu@ip-172-31-1-59:~/redash$ git branch 
  master
* release/5.0.x
  release/6.0.x
ubuntu@ip-172-31-1-59:~/redash$ sudo docker-compose up
Starting redash_redis_1    ... done
Starting redash_postgres_1 ... done
Starting redash_server_1   ... done
Starting redash_worker_1   ... done
Attaching to redash_postgres_1, redash_redis_1, redash_server_1, redash_worker_1
postgres_1  | LOG:  database system was shut down at 2019-01-25 06:27:15 UTC
postgres_1  | LOG:  MultiXact member wraparound protections are now enabled
postgres_1  | LOG:  database system is ready to accept connections
postgres_1  | LOG:  autovacuum launcher started
redis_1     | 1:C 25 Jan 06:28:15.438 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1     | 1:C 25 Jan 06:28:15.438 # Redis version=4.0.12, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1     | 1:C 25 Jan 06:28:15.438 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1     | 1:M 25 Jan 06:28:15.440 * Running mode=standalone, port=6379.
redis_1     | 1:M 25 Jan 06:28:15.440 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1     | 1:M 25 Jan 06:28:15.440 # Server initialized
redis_1     | 1:M 25 Jan 06:28:15.440 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1     | 1:M 25 Jan 06:28:15.440 * DB loaded from disk: 0.000 seconds
redis_1     | 1:M 25 Jan 06:28:15.440 * Ready to accept connections
worker_1    | Starting scheduler and 2 workers for queues: queries,scheduled_queries,celery...
server_1    | [2019-01-25 06:28:17,387][PID:1][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
server_1    | [2019-01-25 06:28:17,428][PID:1][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
server_1    | Traceback (most recent call last):
server_1    |   File "/app/manage.py", line 6, in <module>
server_1    |     from redash.cli import manager
server_1    |   File "/app/redash/__init__.py", line 71, in <module>
server_1    |     import_query_runners(settings.QUERY_RUNNERS)
server_1    |   File "/app/redash/query_runner/__init__.py", line 175, in import_query_runners
server_1    |     __import__(runner_import)
server_1    |   File "/app/redash/query_runner/query_results.py", line 9, in <module>
server_1    |     from redash import models
server_1    |   File "/app/redash/models/__init__.py", line 32, in <module>
server_1    | ImportError: cannot import name json_loads
redash_server_1 exited with code 1
worker_1    | [2019-01-25 06:28:18,426][PID:1][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
worker_1    | [2019-01-25 06:28:18,476][PID:1][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
worker_1    | Traceback (most recent call last):
worker_1    |   File "/usr/local/bin/celery", line 11, in <module>
worker_1    |     sys.exit(main())
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/__main__.py", line 16, in main
worker_1    |     _main()
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 322, in main
worker_1    |     cmd.execute_from_commandline(argv)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 496, in execute_from_commandline
worker_1    |     super(CeleryCommand, self).execute_from_commandline(argv)))
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 273, in execute_from_commandline
worker_1    |     argv = self.setup_app_from_commandline(argv)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 479, in setup_app_from_commandline
worker_1    |     self.app = self.find_app(app)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 501, in find_app
worker_1    |     return find_app(app, symbol_by_name=self.symbol_by_name)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/app/utils.py", line 359, in find_app
worker_1    |     sym = symbol_by_name(app, imp=imp)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 504, in symbol_by_name
worker_1    |     return imports.symbol_by_name(name, imp=imp)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/kombu/utils/imports.py", line 56, in symbol_by_name
worker_1    |     module = imp(module_name, package=package, **kwargs)
worker_1    |   File "/usr/local/lib/python2.7/dist-packages/celery/utils/imports.py", line 104, in import_from_cwd
worker_1    |     return imp(module, package=package)
worker_1    |   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
worker_1    |     __import__(name)
worker_1    |   File "/app/redash/__init__.py", line 71, in <module>
worker_1    |     import_query_runners(settings.QUERY_RUNNERS)
worker_1    |   File "/app/redash/query_runner/__init__.py", line 175, in import_query_runners
worker_1    |     __import__(runner_import)
worker_1    |   File "/app/redash/query_runner/query_results.py", line 9, in <module>
worker_1    |     from redash import models
worker_1    |   File "/app/redash/models/__init__.py", line 32, in <module>
worker_1    | ImportError: cannot import name json_loads
redash_worker_1 exited with code 1