setup icon indicating copy to clipboard operation
setup copied to clipboard

The setup script fails with "ERROR: yaml.scanner.ScannerError: mapping values are not allowed here"

Open pratclot opened this issue 5 years ago • 0 comments

Just following the official guide I get this:

/opt/redash$ bash ~/gits/setup/setup.sh 
[sudo] password for ---: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
pwgen is already the newest version (2.08-1).
ca-certificates is already the newest version (20190110~18.04.1).
curl is already the newest version (7.58.0-2ubuntu3.10).
software-properties-common is already the newest version (0.96.24.32.14).
wget is already the newest version (1.19.4-1ubuntu2.2).
apt-transport-https is already the newest version (1.6.12ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
OK
Hit:1 http://ru.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease         
Hit:3 http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease      
Hit:4 http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://ru.archive.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
Hit:1 http://ru.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                       
Hit:3 https://download.docker.com/linux/ubuntu bionic InRelease                                               
Get:4 http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                
Get:5 http://ru.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 252 kB in 1s (386 kB/s)                               
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-ce is already the newest version (5:19.03.13~3-0~ubuntu-bionic).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   651  100   651    0     0   3355      0 --:--:-- --:--:-- --:--:--  3373
100 11.2M  100 11.2M    0     0  4831k      0  0:00:02  0:00:02 --:--:-- 8159k
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/bin/json_pp line 45.
--2020-09-22 07:57:03--  https://raw.githubusercontent.com/getredash/setup/master/data/docker-compose.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1076 (1.1K) [text/plain]
Saving to: ‘docker-compose.yml.1’

docker-compose.yml.1                                 100%[=====================================================================================================================>]   1.05K  --.-KB/s    in 0s      

2020-09-22 07:57:03 (24.7 MB/s) - ‘docker-compose.yml.1’ saved [1076/1076]

ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
  in "./docker-compose.yml", line 3, column 23

It is a plain Ubuntu 18.04 Server virtual machine:

/opt/redash$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
/opt/redash$ uname -a
Linux --- 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
/opt/redash$

pratclot avatar Sep 22 '20 08:09 pratclot