Skip to content

Unable to connect to server behind elb - https to http #1102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LoganLC opened this issue Jun 7, 2019 · 2 comments
Closed

Unable to connect to server behind elb - https to http #1102

LoganLC opened this issue Jun 7, 2019 · 2 comments

Comments

@LoganLC
Copy link

LoganLC commented Jun 7, 2019

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!

  • [✓ ] You're running version >=1.0.23 of Parse Dashboard.

  • [✓ ] You're running version >=2.3.2 of Parse Server.

  • [✓ ] You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

parse dashboard 1.3.0
parse server 3.3.0
Bitnami Stack with apache server
AWS application elastic load balancer

Steps to reproduce

The parse dashboard returns a blank white screen after logging in when https traffic is routed through an elb. The elb is set to route traffic over http to my Bitnami instance. The dashboard works perfectly when accessed by elb with http. However, the dashboard is unable to connect to the server when I access it through the elb with https. I have no problem accessing parse server through the elb over https so this must be a dashboard problem. I have tried setting my dashboard config a number of different ways with trustProxy and allowInsecureHTTP but nothing seems to work. I am using the exact same serverURL as my parse server which is working fine. My server logs show that I am getting the http traffic but nothing is being posted. My parse logs don't show anything because no connection is made to the server.

My server.js is:
var trustProxy = true;
var dashboard = new ParseDashboard({
apps: [
{
appName: "My Bitnami Parse API",
appId: "XXXXX",
masterKey: "XXXX",
fileKey: "XXXX",
production: true,
serverURL: "http://XXXX:80/parse"
}
],
trustProxy: 1,
users: [
{
user: "test",
pass: "password"
}
],
useEncryptedPasswords: true
});

Logs/Trace

Note: If you get a browser JS error please run npm run dev. This will provide source maps and a much more useful stack trace.

@acinader
Copy link
Contributor

acinader commented Jul 8, 2019

if you open your console, do you see a js error?

fyi, I have run the dashboard via elb, so it should be doable unless we've introduced a regression recently?

@mtrezza
Copy link
Member

mtrezza commented Jul 18, 2019

Running the dashboard behind ELB on EB and works fine on 1.4.1 via https.

The dashboard screen stays blank when the dashboard can't connect to parse server and there is only one parse server connection configured because the dashboard navigates directly to the data browser after login. I agree that a meaningful error message would be nice to have.

However, this does not seem to be an issue regarding this product, but a routing issue. Try to SSH into your AWS instance and troubleshoot the connection to parse server. I suggest you post on SO or contact AWS technical support for ELB routing rules support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants