setup icon indicating copy to clipboard operation
setup copied to clipboard

/opt/redash/setup.sh: 22: USER: parameter not set

Open girishchavanbytemark opened this issue 3 years ago • 1 comments

I am getting this error when I run setup.sh, Actually I am using Dockerfile to run this script taking Docker machine locally using

docker build . -t redashtest

My Dockerfile: `FROM ubuntu:latest

RUN apt-get update && apt-get install -y
sudo
curl

RUN adduser --system --no-create-home --disabled-login --gecos "" redash

COPY setup.sh /opt/redash/

RUN /bin/sh /opt/redash/setup.sh`

Error :

100   664  100   664    0     0    402      0  0:00:01  0:00:01 --:--:--   402
100 11.2M  100 11.2M    0     0   703k      0  0:00:16  0:00:16 --:--:-- 2305k
#9 119.6 /opt/redash/setup.sh: 22: USER: parameter not set
------
executor failed running [/bin/sh -c /bin/sh /opt/redash/setup.sh]: exit code: 2

girishchavanbytemark avatar Mar 22 '22 10:03 girishchavanbytemark

I got resolved with the above issue by adding root user, The new error I can see is :

#11 106.9 Couldn't connect to Docker daemon at http+docker://localhost - is it running?
#11 106.9 
#11 106.9 If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

girishchavanbytemark avatar Mar 22 '22 15:03 girishchavanbytemark

Closing this as there doesn't seem to be something that we need to do (?), and the issue is quite old now.


As a note, we significantly updated the setup.sh script yesterday to make it work on a wider range of Linux distro's. If/when you need to run Redash again, the setup.sh script may be all you need to get things going.

justinclift avatar Mar 24 '24 14:03 justinclift