Upgrade failure to 4.0.1


#1

Just running the sudo bin/uppgrade. Any help while I try and figure this out…

opt/redash/current$ sudo bin/upgrade
Starting Redash upgrade:
Found version: 4.0.1
Current version: 4.0.0+b3948

Full CHANGELOG for this release: https://github.com/getredash/redash/blob/master/CHANGELOG.md
Continue with upgrade? (y/n): y
Downloading release tarball…
Unpacking to: redash.4.0.1.b4038…
Changing ownership to redash…
Linking .env file…
Installing new Python packages (if needed)…
Running migrations (if needed)…
Failed running: sudo -u redash bin/run ./manage.py db upgrade
Exit status: 1
Output:
[2018-05-03 17:15:01,869][PID:25226][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2018-05-03 17:15:01,896][PID:25226][INFO][root] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
Traceback (most recent call last):
File “/opt/redash/redash.4.0.1.b4038/manage.py”, line 6, in
from redash.cli import manager
File “/opt/redash/redash.4.0.1.b4038/redash/cli/init.py”, line 10, in
from redash.cli import users, groups, database, data_sources, organization
File “/opt/redash/redash.4.0.1.b4038/redash/cli/users.py”, line 10, in
from redash.handlers.users import invite_user
File “/opt/redash/redash.4.0.1.b4038/redash/handlers/init.py”, line 4, in
from redash.handlers.api import api
File “/opt/redash/redash.4.0.1.b4038/redash/handlers/api.py”, line 6, in
from redash.handlers.base import org_scoped_rule
File “/opt/redash/redash.4.0.1.b4038/redash/handlers/base.py”, line 8, in
from redash.authentication import current_org
File “/opt/redash/redash.4.0.1.b4038/redash/authentication/init.py”, line 11, in
from redash.tasks import record_event
File “/opt/redash/redash.4.0.1.b4038/redash/tasks/init.py”, line 1, in
from .general import record_event, version_check, send_mail
File “/opt/redash/redash.4.0.1.b4038/redash/tasks/general.py”, line 7, in
from redash.worker import celery
File “/opt/redash/redash.4.0.1.b4038/redash/worker.py”, line 12, in
from redash.metrics import celery as celery_metrics
File “/opt/redash/redash.4.0.1.b4038/redash/metrics/celery.py”, line 14, in
@task_prerun.connect
File “/usr/local/lib/python2.7/dist-packages/celery/utils/dispatch/signal.py”, line 115, in connect
return _handle_options(*args[1:], **kwargs)(args[0])
File “/usr/local/lib/python2.7/dist-packages/celery/utils/dispatch/signal.py”, line 110, in _connect_signal
self._connect_signal(fun, sender, weak, dispatch_uid)
File “/usr/local/lib/python2.7/dist-packages/celery/utils/dispatch/signal.py”, line 122, in _connect_signal
‘Signal receiver must accept keyword arguments.’)
ValueError: Signal receiver must accept keyword arguments.


#2

I uninstalled celery and installed this version … hope that is the correct process…

sudo pip uninstall celery
sudo pip install celery===3.1.25

Upgrade succeeded