These are chat archives for getredash/redash

22nd
Oct 2015
anthony
@Sigma-anthony
Oct 22 2015 00:53
@arikfr hi, so I can connect to redis, got rid of that error. But can't seem to connect to the postgress instance. In the postgres container, redash and postgres users are created, pg_hba allows connections from all, conf listens on * and port 5432, nmap shows the container port open. Client and server version match. dig resolves the mesos dns name from within the container. I tried hostname, ip, mesos-dns name to no avail. I was wondering if you might have an idea if there is something else required to enable remote connections?
@kidambisrinivas I am not sure if this is the best way, but you can copy it into the container and use entrypoint, or use cmd, and (I changed the name to run, like in one of the postgres images) CMD ["/usr/local/bin/run"] . I used the cmd, and on the container I can see the script created the schemas and the redash user
my issue now is that for some reason I can't connect to the postgres from outside the container
anthony
@Sigma-anthony
Oct 22 2015 00:58
looking at stackover flow wondering what other settings should allow remote connection...
anthony
@Sigma-anthony
Oct 22 2015 01:55
found Id made a mistake in the marathon json on the postgres.
anthony
@Sigma-anthony
Oct 22 2015 02:19
so I have following nginx.conf, what can I check to make sure my values are correct?
This message was deleted

events {
worker_connections 4096; ## Default: 1024
}

http {
upstream redashapp {
server redashtestr.marathon.mesos:9001;
}

server {
listen 80;

access_log  /var/log/nginx/log/access.log;
error_log  /var/log/nginx/log/error.log;

gzip on;
gzip_types *;
gzip_proxied any;

location / {
  proxy_pass  http://redashapp;
  proxy_set_header Host $http_host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
}

}
}

Arik Fraimovich
@arikfr
Oct 22 2015 05:03
@kidambisrinivas did you docker-compose? if you have, you can run it as: docker run --rm redash /opt/redash/current/setup/docker_init_postgres.sh. This will work only if you built the redash image from master. If you did not, and used the one from Docker hub, then run this script: https://github.com/EverythingMe/redash/blob/docker/setup/docker/create_database.sh just download it and put it on your docker host, and run it as is.
@Sigma-anthony correct in what way?
anthony
@Sigma-anthony
Oct 22 2015 07:36
@arikfr was hoping something would jump out as I am not sure why the site is giving me a 500 error
Arik Fraimovich
@arikfr
Oct 22 2015 07:52
@Sigma-anthony did you check the logs?
@Sigma-anthony is it 500 error or 502 or 504? if it's the first, then check redash's logs. if it's the later then it might be something in the nginx config
eschultze
@eschultze
Oct 22 2015 13:47
hi @arikfr! Do you remember I was not able to load redash page on my mac? Now it happened on windows and I have the console errors below:
Uncaught Error: [$injector:modulerr] Failed to instantiate module redash due to:
Error: [$injector:nomod] Module 'redash' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Uncaught ReferenceError: d3 is not defined
Josh Fyne
@jfyne
Oct 22 2015 13:51
looks like you haven't run bower install?
and maybe also grunt build
Arik Fraimovich
@arikfr
Oct 22 2015 15:14
@eschultze strange. looks like it loads old plugins.js with new scripts.js. Remind me, how did you install? From the tarball? Can you check which version of those files it loads (their full path)
eschultze
@eschultze
Oct 22 2015 15:47
I installed via provision script almost a year ago and have been updating redash every week since
eschultze
@eschultze
Oct 22 2015 16:08
I'm running 0.8.1+b1110 now
with cloudflare
eschultze
@eschultze
Oct 22 2015 17:45
after some debugging I discovered it is an issue with rocket loader from cloudflare, at least it seems to be