Installing re:dash on an AWS Ubuntu 12.04 Instance

398 views
Skip to first unread message

Apurv Verma

unread,
Mar 16, 2015, 4:51:23 PM3/16/15
to redash...@googlegroups.com
I was trying to setup redash via the bootstrap.sh script. While running the script on an aws instance running 12.04 - I am getting the following error.

The system user `redash' already exists. Exiting.
psql (PostgreSQL) 9.1.11
contains support for command-line editing
redis-cli 2.8.17
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Creating redash postgres user & database.
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

I checked that psql is already installed on my machine
$psql --version
psql (PostgreSQL) 9.1.11
contains support for command-line editing

It seems that the postgre server is not running. How can I check that postgre server was correctly installed by the script and is up and running? 

Thanks

Arik Fraimovich

unread,
Mar 16, 2015, 5:02:51 PM3/16/15
to Apurv Verma, redash...@googlegroups.com

Are you installing it on a "clean" instance or it had something before? Because the version the script supposed to install Postgres 9.3.

Also, if it's possible for you, I suggest you create an instance from the ready AMIs - will save you the bootstrap.sh step.

-- 
Arik Fraimovich

--
You received this message because you are subscribed to the Google Groups "re:dash users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redash-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Apurv Verma

unread,
Mar 16, 2015, 6:24:42 PM3/16/15
to Arik Fraimovich, redash...@googlegroups.com
Thanks Arik,
 I tried installing on a fresh instance. The psql version installed now was 9.3.6
 Due to security reasons I cannot use a pre-baked ami. This time my installation failed with the following lines

Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx.

Am I missing anything?



--
Regards,
Apurv Verma


Arik Fraimovich

unread,
Mar 17, 2015, 1:14:22 AM3/17/15
to Apurv Verma, redash...@googlegroups.com

Can you please check what's binded to port 80?

Anyway, this evening or early tomorrow, I will run the script on Ubuntu 12.04 again to see if I get the same error and can figure what went wrong.

Sorry for the trouble.

Arik Fraimovich

unread,
Mar 18, 2015, 4:22:48 AM3/18/15
to Apurv Verma, redash...@googlegroups.com
I just tried running the script on Ubuntu 12.04 and it worked. If you use base public AMI of Ubuntu 12.04, I'll be happy to try again with the AMI you used to make sure we had the same starting point.

As an alternative we can debug what went wrong on your setup, I think the easiest will be to do it in a chat - we can use Hangouts, Gitter or Skype. Whatever more comfortable to you.

Feel free to follow up in private to arrange the chat.

-- 
Arik Fraimovich
Message has been deleted

rgu...@galaxiasol.com

unread,
Nov 27, 2017, 4:55:59 AM11/27/17
to re:dash users

I am trying to run that .sh file on Ubuntu 16, but its not working completely its stop in the middle only.
Reply all
Reply to author
Forward
0 new messages