getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
25.92k stars 4.34k forks source link

Can not install Redash with provisioning script: `ImportError: cannot import name main` #2474

Closed arfordweb closed 6 years ago

arfordweb commented 6 years ago

Issue Summary

I'm getting the below error whether installing in an Ubuntu 16. I've tried the script in two places:

  1. With the VirtualBox VM available at https://www.osboxes.org/ubuntu/#ubuntu-16-04-info
  2. On AWS using an Ubuntu 16.04 AMI

See below in "Technical details" for the output.

Steps to Reproduce

  1. Copy link to provisioning script provided at https://redash.io/help/open-source/setup
  2. Switch to super user with sudo su
  3. Use wget https://github.com/getredash/redash/blob/master/setup/ubuntu/bootstrap.sh to download the provisioning script
  4. Add execute permission to boostrap.sh with chmod u+x bootstrap.sh
  5. Run the script

The install ends with the error:

Collecting pip
  Downloading https://files.pythonhosted.org/packages/62/a1/0d452b6901b0157a0134fd27ba89bf95a857fbda64ba52e1ca2cf61d8412/pip-10.0.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 1.0MB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-10.0.0
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

I have also attempted to run bootstrap.sh while in my regular user account with sudo ./boostrap.sh and sudo -H ./bootstrap.sh.

See below for full output.

Technical details:

root@ip-<REDACTED>:~#chmod u+x bootstrap.sh
root@ip-<REDACTED>:~# ./bootstrap.sh
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [305 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,524 B]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [201 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,944 B]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [757 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [314 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [621 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [250 kB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,076 B]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,432 B]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [5,816 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,836 B]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,104 B]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,844 B]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/main Sources [120 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:31 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [63.9 kB]
Get:32 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,516 B]
Get:33 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [473 kB]
Get:34 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [204 kB]
Get:35 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [341 kB]
Get:36 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [128 kB]
Get:37 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:38 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B]
Fetched 25.1 MB in 4s (6,266 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-5 dpkg-dev fakeroot fontconfig-config fonts-dejavu-core g++
  g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libcurl3-gnutls libdpkg-perl libexpat1-dev libfakeroot
  libfile-fcntllock-perl libfontconfig1 libgcc-5-dev libgd3 libgomp1 libisl15
  libitm1 libjbig0 libjpeg-turbo8 libjpeg8 liblsan0 libmpc3 libmpx0
  libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libquadmath0
  libstdc++-5-dev libtiff5 libtsan0 libubsan0 libvpx3 libxpm4 libxslt1.1
  linux-libc-dev make manpages-dev nginx-common nginx-core python python-all
  python-all-dev python-minimal python-pip-whl python-pkg-resources
  python-setuptools python-wheel python2.7 python2.7-dev python2.7-minimal
Suggested packages:
  binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib
  g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake
  libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
  libgd-tools libstdc++-5-doc make-doc fcgiwrap nginx-doc ssl-cert python-doc
  python-tk python-setuptools-doc python2.7-doc binfmt-support
The following NEW packages will be installed:
  binutils build-essential cpp cpp-5 dpkg-dev fakeroot fontconfig-config
  fonts-dejavu-core g++ g++-5 gcc gcc-5 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev
  libfakeroot libfile-fcntllock-perl libfontconfig1 libgcc-5-dev libgd3
  libgomp1 libisl15 libitm1 libjbig0 libjpeg-turbo8 libjpeg8 liblsan0 libmpc3
  libmpx0 libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libquadmath0
  libstdc++-5-dev libtiff5 libtsan0 libubsan0 libvpx3 libxpm4 libxslt1.1
  linux-libc-dev make manpages-dev nginx nginx-common nginx-core pwgen python
  python-all python-all-dev python-dev python-minimal python-pip
  python-pip-whl python-pkg-resources python-setuptools python-wheel python2.7
  python2.7-dev python2.7-minimal
The following packages will be upgraded:
  curl libcurl3-gnutls
2 upgraded, 72 newly installed, 0 to remove and 55 not upgraded.
Need to get 76.5 MB of archives.
After this operation, 219 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjpeg-turbo8 amd64 1.4.2-0ubuntu3 [111 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [340 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [1,261 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-minimal amd64 2.7.12-1~16.04 [28.1 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-stdlib amd64 2.7.12-1ubuntu0~16.04.3 [1,880 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.3 [224 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-stdlib amd64 2.7.12-1~16.04 [7,768 B]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python amd64 2.7.12-1~16.04 [137 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjbig0 amd64 2.1-3.1 [26.6 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1 [39.7 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.7 [138 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.7 [185 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.6 [2,311 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu10 [68.7 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-119.143 [845 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu10 [2,079 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1 [524 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.9 [7,685 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1 [27.7 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.9 [38.8 kB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.9 [55.0 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.9 [27.4 kB]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.9 [8,882 B]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.9 [264 kB]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.9 [105 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.9 [244 kB]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.9 [95.2 kB]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.9 [40.1 kB]
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.9 [9,774 B]
Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.9 [131 kB]
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [2,242 kB]
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.9 [8,650 kB]
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1ubuntu1 [5,244 B]
Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [1,427 kB]
Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.9 [8,333 kB]
Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 g++ amd64 4:5.3.1-1ubuntu1 [1,504 B]
Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.4 [195 kB]
Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.4 [584 kB]
Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 build-essential amd64 12.1ubuntu2 [4,758 B]
Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libfakeroot amd64 1.20.2-1ubuntu1 [25.5 kB]
Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 fakeroot amd64 1.20.2-1ubuntu1 [61.8 kB]
Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-core all 2.35-1 [1,039 kB]
Get:44 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fontconfig-config all 2.11.94-0ubuntu1.1 [49.9 kB]
Get:45 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:46 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4build1 [11.0 kB]
Get:47 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.3 [115 kB]
Get:49 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libfile-fcntllock-perl amd64 0.22-3 [32.0 kB]
Get:50 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfontconfig1 amd64 2.11.94-0ubuntu1.1 [131 kB]
Get:51 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2,194 B]
Get:52 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiff5 amd64 4.0.6-1ubuntu0.4 [148 kB]
Get:53 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libvpx3 amd64 1.5.0-2ubuntu1 [732 kB]
Get:54 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxpm4 amd64 1:3.5.11-1ubuntu0.16.04.1 [33.8 kB]
Get:55 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgd3 amd64 2.1.1-4ubuntu0.16.04.8 [126 kB]
Get:56 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7 amd64 2.7.12-1ubuntu0~16.04.3 [1,070 kB]
Get:57 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-dev amd64 2.7.12-1ubuntu0~16.04.3 [27.8 MB]
Get:58 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-dev amd64 2.7.12-1~16.04 [7,840 B]
Get:59 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-all-dev amd64 2.7.12-1~16.04 [1,006 B]
Get:60 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 amd64 1.1.28-2.1ubuntu0.1 [145 kB]
Get:61 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 manpages-dev all 4.04-2 [2,048 kB]
Get:62 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-common all 1.10.3-0ubuntu0.16.04.2 [26.6 kB]
Get:63 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-core amd64 1.10.3-0ubuntu0.16.04.2 [428 kB]
Get:64 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx all 1.10.3-0ubuntu0.16.04.2 [3,490 B]
Setting up libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up libpython-dev:amd64 (2.7.12-1~16.04) ...
Setting up libpython-all-dev:amd64 (2.7.12-1~16.04) ...
Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Setting up manpages-dev (4.04-2) ...
Setting up nginx-common (1.10.3-0ubuntu0.16.04.2) ...
Setting up nginx-core (1.10.3-0ubuntu0.16.04.2) ...
Setting up nginx (1.10.3-0ubuntu0.16.04.2) ...
Setting up pwgen (2.07-1.1ubuntu1) ...
Setting up python-all (2.7.12-1~16.04) ...
Setting up python2.7-dev (2.7.12-1ubuntu0~16.04.3) ...
Setting up python-dev (2.7.12-1~16.04) ...
Setting up python-all-dev (2.7.12-1~16.04) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python-pip (8.1.1-2ubuntu0.4) ...
Setting up python-pkg-resources (20.7.0-1) ...
Setting up python-setuptools (20.7.0-1) ...
Setting up python-wheel (0.29.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  comerr-dev freetds-common krb5-multidev libct4 libgssrpc4 libkadm5clnt-mit9
  libkadm5srv-mit9 libkdb5-8 libmysqlclient20 libpq5 libssl-doc libssl1.0.0
  libsybdb5 mysql-common zlib1g-dev
Suggested packages:
  doc-base krb5-doc krb5-user postgresql-doc-9.5
The following NEW packages will be installed:
  comerr-dev freetds-common freetds-dev krb5-multidev libct4 libffi-dev
  libgssrpc4 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libmysqlclient-dev
  libmysqlclient20 libpq-dev libpq5 libsasl2-dev libssl-dev libssl-doc
  libsybdb5 mysql-common zlib1g-dev
The following packages will be upgraded:
  libssl1.0.0
1 upgraded, 20 newly installed, 0 to remove and 54 not upgraded.
Need to get 7,208 kB of archives.
After this operation, 28.9 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.12 [1,085 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 freetds-common all 0.91-6.1build1 [23.4 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libct4 amd64 0.91-6.1build1 [142 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libsybdb5 amd64 0.91-6.1build1 [164 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 freetds-dev amd64 0.91-6.1build1 [240 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssrpc4 amd64 1.13.2+dfsg-5ubuntu2 [54.5 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkdb5-8 amd64 1.13.2+dfsg-5ubuntu2 [37.1 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkadm5srv-mit9 amd64 1.13.2+dfsg-5ubuntu2 [51.3 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkadm5clnt-mit9 amd64 1.13.2+dfsg-5ubuntu2 [36.7 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 comerr-dev amd64 2.1-1.42.13-1ubuntu1 [38.2 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Setting up libct4:amd64 (0.91-6.1build1) ...
Setting up libsybdb5:amd64 (0.91-6.1build1) ...
Setting up freetds-dev (0.91-6.1build1) ...
Setting up libgssrpc4:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkdb5-8:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkadm5srv-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkadm5clnt-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up comerr-dev (2.1-1.42.13-1ubuntu1) ...
Setting up krb5-multidev (1.13.2+dfsg-5ubuntu2) ...
Setting up mysql-common (5.7.21-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libmysqlclient20:amd64 (5.7.21-0ubuntu0.16.04.1) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libmysqlclient-dev (5.7.21-0ubuntu0.16.04.1) ...
Setting up libpq5:amd64 (9.5.12-0ubuntu0.16.04) ...
1 amd64 1.2.20-2ubuntu4 [118 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libxmlsec1-openssl amd64 1.2.20-2ubuntu4 [65.0 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 xmlsec1 amd64 1.2.20-2ubuntu4 [22.4 kB]
Fetched 205 kB in 0s (11.8 MB/s)
Selecting previously unselected package libxmlsec1.
(Reading database ... 59960 files and directories currently installed.)
Preparing to unpack .../libxmlsec1_1.2.20-2ubuntu4_amd64.deb ...
Unpacking libxmlsec1 (1.2.20-2ubuntu4) ...
Selecting previously unselected package libxmlsec1-openssl.
Preparing to unpack .../libxmlsec1-openssl_1.2.20-2ubuntu4_amd64.deb ...
Unpacking libxmlsec1-openssl (1.2.20-2ubuntu4) ...
Selecting previously unselected package xmlsec1.
Preparing to unpack .../xmlsec1_1.2.20-2ubuntu4_amd64.deb ...
Unpacking xmlsec1 (1.2.20-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libxmlsec1 (1.2.20-2ubuntu4) ...
Setting up libxmlsec1-openssl (1.2.20-2ubuntu4) ...
Setting up xmlsec1 (1.2.20-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libjemalloc1 libsensors4 postgresql-9.5 postgresql-client-9.5
  postgresql-client-common postgresql-common postgresql-contrib-9.5
  redis-tools ssl-cert sysstat
Suggested packages:
  lm-sensors postgresql-doc locales-all postgresql-doc-9.5 libdbd-pg-perl
  ruby-redis openssl-blacklist isag
The following NEW packages will be installed:
  libjemalloc1 libsensors4 postgresql postgresql-9.5 postgresql-client-9.5
  postgresql-client-common postgresql-common postgresql-contrib-9.5
  redis-server redis-tools ssl-cert sysstat
0 upgraded, 12 newly installed, 0 to remove and 54 not upgraded.
Need to get 5,324 kB of archives.
After this operation, 21.0 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libsensors4 amd64 1:3.4.0-2 [28.4 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 p<-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Creating new cluster 9.5/main ...
  config /etc/postgresql/9.5/main
  data   /var/lib/postgresql/9.5/main
  locale en_US.UTF-8
  socket /var/run/postgresql
  port   5432
update-alternatives: using /usr/share/postgresql/9.5/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
Setting up postgresql (9.5+173ubuntu0.1) ...
Setting up postgresql-contrib-9.5 (9.5.12-0ubuntu0.16.04) ...
Setting up libjemalloc1 (3.6.0-9ubuntu1) ...
Setting up redis-tools (2:3.0.6-1) ...
Setting up redis-server (2:3.0.6-1) ...
Setting up sysstat (11.2.0-1ubuntu0.2) ...

0 upgraded, 2 newly installed, 0 to remove and 54 not upgraded.
Need to get 284 kB of archives.
After this operation, 1,550 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 python-meld3 all 1.0.2-2 [30.9 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 supervisor all 3.2.0-2ubuntu0.1 [253 kB]
Fetched 284 kB in 0s (18.9 MB/s)
Selecting previously unselected package python-meld3.
(Reading database ... 60764 files and directories currently installed.)
Preparing to unpack .../python-meld3_1.0.2-2_all.deb ...
Unpacking python-meld3 (1.0.2-2) ...
Selecting previously unselected package supervisor.
Preparing to unpack .../supervisor_3.2.0-2ubuntu0.1_all.deb ...
Unpacking supervisor (3.2.0-2ubuntu0.1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-meld3 (1.0.2-2) ...
Setting up supervisor (3.2.0-2ubuntu0.1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Adding system user `redash' (UID 114) ...
Adding new user `redash' (UID 114) with group `nogroup' ...
Not creating home directory `/home/redash'.
--2018-04-19 17:53:23--  https://raw.githubusercontent.com/getredash/redash/master/setup/ubuntu/files/env
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.32.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.32.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 130 [text/plain]
Saving to: ‘/opt/redash/.env’

/opt/redash/.env    100%[===================>]     130  --.-KB/s    in 0s

2018-04-19 17:53:23 (24.4 MB/s) - ‘/opt/redash/.env’ saved [130/130]

--2018-04-19 17:53:23--  https://s3.amazonaws.com/redash-releases/redash.3.0.0.b3134.tar.gz
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.114.76
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.114.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6989572 (6.7M) [application/x-tar]
Saving to: ‘/tmp/redash.tar.gz’

/tmp/redash.tar.gz  100%[===================>]   6.67M  38.3MB/s    in 0.2s

2018-04-19 17:53:24 (38.3 MB/s) - ‘/tmp/redash.tar.gz’ saved [6989572/6989572]

CHANGELOG.md
CONTRIBUTING.md
Dockerfile
LICENSE
Makefile
README.md
bin/
bin/docker-entrypoint
bin/pre_compile
bin/release_manager.py
bin/run
bin/upgrade
circle.yml
client/
client/.babelrc
client/.eslintignore
client/.eslintrc.js
client/app/
client/app/assets/
client/app/assets/css/
client/app/assets/css/main.scss
client/app/assets/css/redash.css
client/app/assets/css/superflat_redash.css
client/app/assets/fonts/
client/app/assets/fonts/roboto/
client/app/assets/fonts/roboto/Roboto-Bold-webfont.eot
client/app/assets/fonts/roboto/Roboto-Bold-webfont.svg
client/app/assets/fonts/roboto/Roboto-Bold-webfont.ttf
client/app/assets/fonts/roboto/Roboto-Bold-webfont.woff
client/app/assets/fonts/roboto/Roboto-Light-webfont.eot
client/app/assets/fonts/roboto/Roboto-Light-webfont.svg
client/app/assets/fonts/roboto/Roboto-Light-webfont.ttf
client/app/assets/fonts/roboto/Roboto-Light-webfont.woff
client/app/assets/fonts/roboto/Roboto-Medium-webfont.eot
client/app/assets/fonts/roboto/Roboto-Medium-webfont.svg
client/app/assets/fonts/roboto/Roboto-Medium-webfont.ttf
client/app/assets/fonts/roboto/Roboto-Medium-webfont.woff
client/app/assets/fonts/roboto/Roboto-Regular-webfont.eot
client/app/assets/fonts/roboto/Roboto-Regular-webfont.svg
client/app/assets/fonts/roboto/Roboto-Regular-webfont.ttf
client/app/assets/fonts/roboto/Roboto-Regular-webfont.woff
client/app/assets/fonts/roboto/Roboto-Thin-webfont.eot
client/app/assets/fonts/roboto/Roboto-Thin-webfont.svg
client/app/assets/fonts/roboto/Roboto-Thin-webfont.ttf
client/app/assets/fonts/roboto/Roboto-Thin-webfont.woff
client/app/assets/images/
client/app/assets/images/favicon-16x16.png
client/app/assets/images/favicon-32x32.png
client/app/assets/images/favicon-96x96.png
client/app/assets/images/redash_icon_small.png
client/app/components/
client/app/components/alerts/
client/app/components/alerts/alert-subscriptions/
client/app/components/alerts/alert-subscriptions/alert-subscriptions.html
client/app/components/alerts/alert-subscriptions/index.js
client/app/components/app-header/
client/app/components/app-header/app-header.css
client/app/components/app-header/app-header.html
client/app/components/app-header/index.js
client/app/components/cancel-query-button/
client/app/components/cancel-query-button/index.js
client/app/components/dashboards/
client/app/components/dashboards/add-widget-dialog.html
client/app/components/dashboards/add-widget-dialog.js
client/app/components/dashboards/edit-dashboard-dialog.html
client/app/components/dashboards/edit-dashboard-dialog.js
client/app/components/dashboards/edit-text-box.html
client/app/components/dashboards/widget.html
client/app/components/dashboards/widget.js
client/app/components/dynamic-form.html
client/app/components/dynamic-form.js
client/app/components/dynamic-table/
client/app/components/dynamic-table/dynamic-table.css
client/app/components/dynamic-table/dynamic-table.html
client/app/components/dynamic-table/index.js
client/app/components/edit-in-place.js
client/app/components/email-settings-warning/
client/app/components/email-settings-warning/index.js
client/app/components/error-messages.js
client/app/components/filters.html
client/app/components/filters.js
client/app/components/footer/
client/app/components/footer/footer.html
client/app/components/footer/index.js
client/app/components/groups/
client/app/components/groups/edit-group-dialog.html
client/app/components/groups/edit-group-dialog.js
client/app/components/groups/group-name.js
client/app/components/overlay.js
client/app/components/page-header/
client/app/components/page-header/index.js
client/app/components/page-header/page-header.html
client/app/components/paginator.js
client/app/components/parameter-settings.html
client/app/components/parameters.html
client/app/components/parameters.js
client/app/components/permissions-editor/
client/app/components/permissions-editor/index.js
client/app/components/permissions-editor/permissions-editor.html
client/app/components/queries/
client/app/components/queries/alert-unsaved-changes.js
client/app/components/queries/api-key-dialog.js
client/app/components/queries/embed-code-dialog.html
client/app/components/queries/embed-code-dialog.js
client/app/components/queries/query-editor.js
client/app/components/queries/query-results-link.js
client/app/components/queries/schedule-dialog.html
client/app/components/queries/schedule-dialog.js
client/app/components/queries/schema-browser.html
client/app/components/queries/schema-browser.js
client/app/components/queries/visualization-embed.html
client/app/components/queries/visualization-embed.js
client/app/components/query-based-parameter.html
client/app/components/query-link.js
client/app/components/rd-tab/
client/app/components/rd-tab/index.js
client/app/components/rd-time-ago.js
client/app/components/rd-timer.js
client/app/components/route-status.js
client/app/components/settings-screen.html
client/app/components/settings-screen.js
client/app/components/sort-icon.js
client/app/components/tab-nav/
client/app/components/tab-nav/index.js
client/app/components/visualization-name.js
client/app/config/
client/app/config/index.js
client/app/config/styles.js
client/app/directives/
client/app/directives/index.js
client/app/filters/
client/app/filters/datetime.js
client/app/filters/index.js
client/app/filters/markdown.js
client/app/index.html
client/app/index.js
client/app/lib/
client/app/lib/pagination/
client/app/lib/pagination/index.js
client/app/lib/pagination/live-paginator.js
client/app/lib/pagination/paginator.js
client/app/lib/sortable.js
client/app/lib/visualizations/
client/app/lib/visualizations/d3box.js
client/app/lib/visualizations/d3sankey.js
client/app/lib/visualizations/sunburst.js
client/app/multi_org.html
client/app/pages/
client/app/pages/admin/
client/app/pages/admin/outdated-queries/
client/app/pages/admin/outdated-queries/index.js
client/app/pages/admin/outdated-queries/outdated-queries.html
client/app/pages/admin/status/
client/app/pages/admin/status/index.js
client/app/pages/admin/status/status.html
client/app/pages/admin/tasks/
client/app/pages/admin/tasks/index.js
client/app/pages/admin/tasks/tasks.html
client/app/pages/alert/
client/app/pages/alert/alert.html
client/app/pages/alert/index.js
client/app/pages/alerts-list/
client/app/pages/alerts-list/alerts-list.html
client/app/pages/alerts-list/index.js
client/app/pages/dashboards/
client/app/pages/dashboards/dashboard-list.css
client/app/pages/dashboards/dashboard-list.html
client/app/pages/dashboards/dashboard-list.js
client/app/pages/dashboards/dashboard.html
client/app/pages/dashboards/dashboard.js
client/app/pages/dashboards/public-dashboard-page.html
client/app/pages/dashboards/public-dashboard-page.js
client/app/pages/dashboards/share-dashboard.html
client/app/pages/data-sources/
client/app/pages/data-sources/list.html
client/app/pages/data-sources/list.js
client/app/pages/data-sources/show.html
client/app/pages/data-sources/show.js
client/app/pages/destinations/
client/app/pages/destinations/list.html
client/app/pages/destinations/list.js
client/app/pages/destinations/show.html
client/app/pages/destinations/show.js
client/app/pages/groups/
client/app/pages/groups/data-sources.html
client/app/pages/groups/data-sources.js
client/app/pages/groups/list.html
client/app/pages/groups/list.js
client/app/pages/groups/show.html
client/app/pages/groups/show.js
client/app/pages/home/
client/app/pages/home/home.html
client/app/pages/home/index.js
client/app/pages/queries-list/
client/app/pages/queries-list/index.js
client/app/pages/queries-list/queries-list.html
client/app/pages/queries/
client/app/pages/queries/queries-search-results-page.html
client/app/pages/queries/queries-search-results-page.js
client/app/pages/queries/query.html
client/app/pages/queries/source-view.js
client/app/pages/queries/view.js
client/app/pages/query-snippets/
client/app/pages/query-snippets/edit.html
client/app/pages/query-snippets/edit.js
client/app/pages/query-snippets/list.html
client/app/pages/query-snippets/list.js
client/app/pages/users/
client/app/pages/users/list.html
client/app/pages/users/list.js
client/app/pages/users/new.html
client/app/pages/users/new.js
client/app/pages/users/show.html
client/app/pages/users/show.js
client/app/services/
client/app/services/alert-dialog.js
client/app/services/alert-subscription.js
client/app/services/alert.js
client/app/services/auth.js
client/app/services/dashboard.js
client/app/services/data-source.js
client/app/services/destination.js
client/app/services/events.js
client/app/services/group.js
client/app/services/keyboard-shortcuts.js
client/app/services/notifications.js
client/app/services/offline-listener.js
client/app/services/query-result.js
client/app/services/query-snippet.js
client/app/services/query.js
client/app/services/user.js
client/app/services/widget.js
client/app/visualizations/
client/app/visualizations/box-plot/
client/app/visualizations/box-plot/box-plot-editor.html
client/app/visualizations/box-plot/index.js
client/app/visualizations/chart/
client/app/visualizations/chart/chart-editor.html
client/app/visualizations/chart/chart.html
client/app/visualizations/chart/index.js
client/app/visualizations/chart/plotly.js
client/app/visualizations/cohort/
client/app/visualizations/cohort/cohort-editor.html
client/app/visualizations/cohort/index.js
client/app/visualizations/counter/
client/app/visualizations/counter/counter-editor.html
client/app/visualizations/counter/counter.html
client/app/visualizations/counter/index.js
client/app/visualizations/edit-visualization-dialog.html
client/app/visualizations/edit-visualization-dialog.js
client/app/visualizations/index.js
client/app/visualizations/map/
client/app/visualizations/map/index.js
client/app/visualizations/map/map-editor.html
client/app/visualizations/map/map.html
client/app/visualizations/pivot/
client/app/visualizations/pivot/index.js
client/app/visualizations/pivot/pivottable-editor.html
client/app/visualizations/sankey/
client/app/visualizations/sankey/index.js
client/app/visualizations/sankey/sankey-editor.html
client/app/visualizations/sunburst/
client/app/visualizations/sunburst/index.js
client/app/visualizations/sunburst/sunburst-sequence-editor.html
client/app/visualizations/table/
client/app/visualizations/table/index.js
client/app/visualizations/table/table.html
client/app/visualizations/word-cloud/
client/app/visualizations/word-cloud/index.js
client/app/visualizations/word-cloud/word-cloud-editor.html
client/dist/
client/dist/fonts/
client/dist/fonts/fontawesome-webfont.674f50d.eot
client/dist/fonts/fontawesome-webfont.af7ae50.woff2
client/dist/fonts/fontawesome-webfont.fee66e7.woff
client/dist/fonts/fontawesome-webfont.b06871f.ttf
client/dist/fonts/Material-Design-Iconic-Font.a4d3112.woff2
client/dist/fonts/Material-Design-Iconic-Font.d2a55d3.woff
client/dist/fonts/Material-Design-Iconic-Font.b351bd6.ttf
client/dist/fonts/Roboto-Light-webfont.a990f61.eot
client/dist/fonts/Roboto-Regular-webfont.30799ef.eot
client/dist/fonts/Roboto-Medium-webfont.4d9f3f9.eot
client/dist/fonts/Roboto-Bold-webfont.ecdd509.eot
client/dist/fonts/Roboto-Light-webfont.816d43b.woff
client/dist/fonts/Roboto-Light-webfont.d8472f7.ttf
client/dist/fonts/Roboto-Regular-webfont.3e5675c.woff
client/dist/fonts/Roboto-Regular-webfont.7f1320f.ttf
client/dist/fonts/Roboto-Medium-webfont.b9d01ac.woff
client/dist/fonts/Roboto-Medium-webfont.1d2af75.ttf
client/dist/fonts/Roboto-Bold-webfont.8b18d65.woff
client/dist/fonts/Roboto-Bold-webfont.3dcc0e0.ttf
client/dist/img/
client/dist/img/fontawesome-webfont.912ec66.svg
client/dist/img/Roboto-Light-webfont.3581138.svg
client/dist/img/Roboto-Regular-webfont.da61d7e.svg
client/dist/img/Roboto-Medium-webfont.88e897b.svg
client/dist/img/Roboto-Bold-webfont.375c4f3.svg
client/dist/vendor.d7fe53cd9735a6af6461.js
client/dist/app.681aa4ab9869dd2a6d16.js
client/dist/manifest.31fe86837ebc20ae3f84.js
client/dist/styles.681aa4ab9869dd2a6d16.css
client/dist/vendor.d7fe53cd9735a6af6461.js.map
client/dist/app.681aa4ab9869dd2a6d16.js.map
client/dist/styles.681aa4ab9869dd2a6d16.css.map
client/dist/manifest.31fe86837ebc20ae3f84.js.map
client/dist/index.html
client/dist/multi_org.html
docker-compose.production.yml
docker-compose.yml
manage.py
migrations/
migrations/0001_warning.py
migrations/README
migrations/alembic.ini
migrations/env.py
migrations/script.py.mako
migrations/versions/
migrations/versions/65fc9ede4746_add_is_draft_status_to_queries_and_.py
migrations/versions/d1eae8b9893e_.py
old_migrations/
old_migrations/0001_allow_delete_query.py
old_migrations/0002_fix_timestamp_fields.py
old_migrations/0003_update_data_source_config.py
old_migrations/0004_allow_null_in_event_user.py
old_migrations/0005_add_updated_at.py
old_migrations/0006_queries_last_edit_by.py
old_migrations/0007_add_schedule_to_queries.py
old_migrations/0008_make_ds_name_unique.py
old_migrations/0009_add_api_key_to_user.py
old_migrations/0010_allow_deleting_datasources.py
old_migrations/0010_create_alerts.py
old_migrations/0011_migrate_bigquery_to_json.py
old_migrations/0012_add_list_users_permission.py
old_migrations/0013_update_counter_options.py
old_migrations/0014_add_alert_rearm_seconds.py
old_migrations/0014_migrate_existing_es_to_kibana.py
old_migrations/0015_add_schedule_query_permission.py
old_migrations/0016_add_alert_subscriber.py
old_migrations/0016_drop_tables_from_group.py
old_migrations/0017_add_organization.py
old_migrations/0018_add_groups_refs.py
old_migrations/0019_add_super_admin_permission.py
old_migrations/0020_change_ds_name_to_non_uniqe.py
old_migrations/0021_create_api_keys_table.py
old_migrations/0022_add_new_permissions.py
old_migrations/0023_add_notification_destination.py
old_migrations/0023_make_sure_correct_group_type.py
old_migrations/0024_add_options_to_query.py
old_migrations/0025_add_query_snippets_table.py
old_migrations/0026_add_access_control_tables.py
old_migrations/0026_remove_query_trackers_redis_key.py
old_migrations/0027_add_draft_toggle.py
package-lock.json
package.json
redash/
redash/admin.py
redash/authentication/
redash/authentication/__init__.py
redash/authentication/account.py
redash/authentication/google_oauth.py
redash/authentication/ldap_auth.py
redash/authentication/org_resolving.py
redash/authentication/remote_user_auth.py
redash/authentication/saml_auth.py
redash/cli/
redash/cli/__init__.py
redash/cli/data_sources.py
redash/cli/database.py
redash/cli/groups.py
redash/cli/organization.py
redash/cli/users.py
redash/destinations/
redash/destinations/__init__.py
redash/destinations/email.py
redash/destinations/hipchat.py
redash/destinations/slack.py
redash/destinations/webhook.py
redash/handlers/
redash/handlers/__init__.py
redash/handlers/admin.py
redash/handlers/alerts.py
redash/handlers/api.py
redash/handlers/authentication.py
redash/handlers/base.py
redash/handlers/dashboards.py
redash/handlers/data_sources.py
redash/handlers/destinations.py
redash/handlers/embed.py
redash/handlers/events.py
redash/handlers/groups.py
redash/handlers/permissions.py
redash/handlers/queries.py
redash/handlers/query_results.py
redash/handlers/query_snippets.py
redash/handlers/setup.py
redash/handlers/static.py
redash/handlers/users.py
redash/handlers/visualizations.py
redash/handlers/widgets.py
redash/metrics/
redash/metrics/__init__.py
redash/metrics/celery.py
redash/metrics/database.py
redash/metrics/request.py
redash/models.py
redash/monitor.py
redash/permissions.py
redash/query_runner/
redash/query_runner/__init__.py
redash/query_runner/athena.py
redash/query_runner/axibase_tsd.py
redash/query_runner/big_query.py
redash/query_runner/cass.py
redash/query_runner/clickhouse.py
redash/query_runner/dynamodb_sql.py
redash/query_runner/elasticsearch.py
redash/query_runner/files/
redash/query_runner/files/rds-combined-ca-bundle.pem
redash/query_runner/files/redshift-ca-bundle.crt
redash/query_runner/google_analytics.py
redash/query_runner/google_spanner.py
redash/query_runner/google_spreadsheets.py
redash/query_runner/graphite.py
redash/query_runner/hive_ds.py
redash/query_runner/impala_ds.py
redash/query_runner/influx_db.py
redash/query_runner/jql.py
redash/query_runner/memsql_ds.py
redash/query_runner/mongodb.py
redash/query_runner/mssql.py
redash/query_runner/mssql_odbc.py
redash/query_runner/mysql.py
redash/query_runner/oracle.py
redash/query_runner/pg.py
redash/query_runner/presto.py
redash/query_runner/prometheus.py
redash/query_runner/python.py
redash/query_runner/query_results.py
redash/query_runner/salesforce.py
redash/query_runner/script.py
redash/query_runner/snowflake.py
redash/query_runner/sqlite.py
redash/query_runner/treasuredata.py
redash/query_runner/url.py
redash/query_runner/vertica.py
redash/serializers.py
redash/settings.py
redash/static/
redash/static/images/
redash/static/images/favicon-16x16.png
redash/static/images/favicon-32x32.png
redash/static/images/favicon-96x96.png
redash/static/images/google_login.png
redash/static/images/logo.png
redash/static/images/logo_white.png
redash/static/images/redash_icon_small.png
redash/static/js/
redash/static/js/jquery.min.js
redash/static/robots.txt
redash/static/styles/
redash/static/styles/login.css
redash/static/styles/redash.css
redash/static/styles/superflat_redash.css
redash/tasks/
redash/tasks/__init__.py
redash/tasks/alerts.py
redash/tasks/general.py
redash/tasks/queries.py
redash/templates/
redash/templates/_includes/
redash/templates/_includes/signed_out_tail.html
redash/templates/_includes/tail.html
redash/templates/emails/
redash/templates/emails/invite.html
redash/templates/emails/invite.txt
redash/templates/emails/layout.html
redash/templates/emails/reset.html
redash/templates/emails/reset.txt
redash/templates/error.html
redash/templates/footer.html
redash/templates/forgot.html
redash/templates/invite.html
redash/templates/layouts/
redash/templates/layouts/signed_out.html
redash/templates/login.html
redash/templates/reset.html
redash/templates/setup.html
redash/utils/
redash/utils/__init__.py
redash/utils/configuration.py
redash/utils/human_time.py
redash/version_check.py
redash/worker.py
redash/wsgi.py
redash/__init__.py
requirements.txt
requirements_all_ds.txt
requirements_dev.txt
requirements_oracle_ds.txt
setup/
setup/amazon_linux/
setup/amazon_linux/README.md
setup/amazon_linux/bootstrap.sh
setup/amazon_linux/files/
setup/amazon_linux/files/env
setup/amazon_linux/files/nginx_redash_site
setup/amazon_linux/files/postgres_apt.sh
setup/amazon_linux/files/redash_supervisord_init
setup/amazon_linux/files/redis.conf
setup/amazon_linux/files/redis_init
setup/amazon_linux/files/supervisord.conf
setup/packer.json
setup/ubuntu/
setup/ubuntu/README.md
setup/ubuntu/bootstrap.sh
setup/ubuntu/files/
setup/ubuntu/files/env
setup/ubuntu/files/nginx_redash_site
setup/ubuntu/files/supervisord.conf
setup.cfg
tests/
tests/__init__.py
tests/factories.py
tests/handlers/
tests/handlers/__init__.py
tests/handlers/test_alerts.py
tests/handlers/test_authentication.py
tests/handlers/test_dashboards.py
tests/handlers/test_data_sources.py
tests/handlers/test_destinations.py
tests/handlers/test_embed.py
tests/handlers/test_groups.py
tests/handlers/test_paginate.py
tests/handlers/test_permissions.py
tests/handlers/test_queries.py
tests/handlers/test_query_results.py
tests/handlers/test_query_snippets.py
tests/handlers/test_users.py
tests/handlers/test_visualizations.py
tests/handlers/test_widgets.py
tests/models/
tests/models/__init__.py
tests/models/test_alerts.py
tests/models/test_api_keys.py
tests/models/test_changes.py
tests/models/test_data_sources.py
tests/models/test_permissions.py
tests/models/test_queries.py
tests/models/test_users.py
tests/query_runner/
tests/query_runner/__init__.py
tests/query_runner/test_google_spreadsheets.py
tests/query_runner/test_jql.py
tests/query_runner/test_mongodb.py
tests/query_runner/test_query_results.py
tests/tasks/
tests/tasks/__init__.py
tests/tasks/test_alerts.py
tests/tasks/test_queries.py
tests/tasks/test_refresh_queries.py
tests/tasks/test_refresh_schemas.py
tests/test_authentication.py
tests/test_cli.py
tests/test_configuration.py
tests/test_handlers.py
tests/test_models.py
tests/test_permissions.py
tests/test_settings.py
tests/test_utils.py
webpack.config.js
Collecting pip
  Downloading https://files.pythonhosted.org/packages/62/a1/0d452b6901b0157a0134fd27ba89bf95a857fbda64ba52e1ca2cf61d8412/pip-10.0.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 1.0MB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-10.0.0
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
kyoshidajp commented 6 years ago

It seems like /usr/bin/pip(version is 8.1.1) is used in the install script.

/usr/local/bin/pip(version 10.0.0) is already installed in your machine, and if rm -f /usr/redash && ./boostrap.sh by root user will pass the error.

However, you will get a next new error about cryptography.

My suggestion is that downgrade pip version 9.0.3.

  1. Switch to root (sudo su)
  2. Remove installed directory (rm -fr /usr/redash)
  3. Edit install_python_packages in bootstrap.sh. Like the following.
install_python_packages() {
    #pip install --upgrade pip
    pip install --upgrade pip==9.0.3
    # TODO: venv?
    pip install setproctitle # setproctitle is used by Celery for "pretty" process titles
    pip install -r $REDASH_BASE_PATH/current/requirements.txt
    pip install -r $REDASH_BASE_PATH/current/requirements_all_ds.txt
}

Finally, run ./bootstrap.sh will success.

2475 will fix this issue.

arikfr commented 6 years ago

2475 was merged and supposed to fix this. Please reopen if it doesn't work for oyu.

Thanks!

arikfr commented 1 year ago

This is not related to the issue, but I assume that the issue author or followers might have SAML enabled for their deployment and should be aware of the following Security Advisory: https://github.com/getredash/redash/discussions/5961. This affects all Redash versions and should be patched immediately.