-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse Server 2.1.4 on AWS? #916
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
Comments
Has anyone succeeded with this? |
I have succesfully deployed 2.1.4 to AWS using elastic beanstalk. That said, I do have a custom version of the parse-server example. I would advise checking the node/npm logs of your instance. If you are using Elastic Beanstalk, bad gateway usually means your node app did not start correctly. |
Is it possible that you can share your custom version .zip? I've downloaded the logs, but I'm not sure exactly what I should be looking for. |
@andresgarza
and
|
@occurrentarts you are missing both the DATABASE_URI and SERVER_URL environment variables. The first one is the connection string for your database, i.e. You can setup these environment variables both through the AWS console or using the aws cli. |
@pushtek my custom version is basically the example one, just running on my existing express server. Just look for the node logs and see if there are any errors there. |
@andresgarza How do I set them from the CLI? Parse-Server 2.08 works fine, but upgrading to 2.10 or above ( to 2.14 current ) introduces the 'Bad Gateway' error.... |
I set them from the CLI but it still doesn't work. You have to install the
|
I get the same error. Everything above 2.08 introduces '502 BAD GATEWAY '
|
Even when I try and start fresh with: I encounter errors:
|
Yes if I upload parse-server-example.zip right from github I get a degraded
|
I think the issue is that they introduced the need for the serverURL string in the
initialization of index.js in version 2.1.0 , which causes the errors. add:
to the bottom of the new ParseServer arguments and you should be able to get 2.1.4 up and running. |
Should I download a fresh version from GitHub, make the changes in index.js, then use the "Upload and Deploy" button in my Environment? Or how did you do it? I just change the SERVER_URL in my Configuration on AWS and I got the same error. |
you might be able to just modify the application you use which works on 2.08.
then commit with git, then
|
My suggestion here would be to not use AWS unless you're an expert and can dive in and troubleshoot these things on your own. You should start with running it locally, then move to using Heroku or Digital Ocean. It won't be possible for us to handle installation support for every available platform, and I think it's overkill to try using AWS for your first development deployment. |
@occurrentarts Still 502. Here's my package.json: Here's my index.js: var express = require('express'); var databaseUri = process.env.DATABASE_URI || process.env.MONGOLAB_URI if (!databaseUri) { var api = new ParseServer({ var app = express(); // Serve the Parse API on the /parse URL prefix // Parse Server plays nicely with the rest of your web routes var port = process.env.PORT || 1337; app.listen(port, function() { Am I doing something wrong? Is it possible you can share your server.zip? aaadesignstudios@gmail.com. Please shoot me an email. |
actually, try switching: serverURL: 'http://localhost:1337/parse' to: serverURL: 'your-server-url/parse' before you deploy? also, just learned that Parse.Cloud.useMasterKey(); is no longer supported above 2.08, so be sure to change that in your cloud code as noted in: @gfosco "It won't be possible for us to handle installation support for every available platform" Because the open source 'parse-server' software seems to continue to have issues, its not entirely clear which issues are because of bugs and which issues are service issues. It would be super irresponsible for your team to refuse support to AWS installation issues seeing as you're promoting it as one of your 3 suggested platforms for transition in the migration guide. |
I'm dealing with the same problem with no luck. Did you finally found the solution? Thanks! |
Was able to get past 2.08 with the serverURL tactic above, but experienced issues with 2.1.4 and 2.1.5 |
I am also having this problem, and am unable to test the serverUrl tactic. As I want to deploy to a specific geographic region (Ireland) I am using the eb command line tools, and do not know my server url before deployment. |
Yeah. Me too. Were you guys able to get S3 file adapter working with 2.0.x something ? I think it only works on 2.1.x and I cant update that on AWS |
I think in the end we used the eb command line tools to download a working version from the US location (which we set up using the AWS Deploy button recommended in the Parse migration tutorial), and then initialised a new folder with a copy of these files, setting the geographic region, and then uploading to this new elastic beanstalk instance through the command line. Details on the command line commands needed can be found here under the Advanced section. You can then edit your cloud code and deploy straight from that folder. |
I also Started having same problem. At very first, it deployed successfully, but after that whenever I try to update, either I get internal server error or Bad gateway 502. Dont know what is the problem. |
Any updates on this issue? |
This is what helped me: If you check
The stack overflow answer suggested that you change your express app (or whatever you're using) to listen on port 8081 instead of 1337:
|
Change the port to 3000. This worked for me. |
How should we go about getting the latest parse version on AWS?
The text was updated successfully, but these errors were encountered: