parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.94k stars 4.78k forks source link

Unable to reach parse server after a fresh install, getting "WARNING, Unable to connect to ..." #8459

Closed JohnRoxMySox23 closed 1 year ago

JohnRoxMySox23 commented 1 year ago

Issue Description

I am totally new to server development & administration, and I am following the default, simple Parse server installation guide trying to install a Parse server on my VPS running Ubuntu 22.04.

Everything is fine with installing apt, nodejs, npm, yarn and postgres. I also succesfully installed parse-server module. However, when I run npm start, I get a warning saying:

WARNING, Unable to connect to 'http://localhost:1337/parse'

I tried going into the config.json file and adding: "serverURL": "http://{my_server_ip}:1337/parse", but then when running npm start, I get the same warning, this time saying Unable to connect to 'http://{my_server_ip}:1337/parse'.

When I try to reach 'http://{my_server_ip}:1337' or 'http://{my_server_ip}:1337/parse' from my computer in a web browser, nothing happens too, the request takes some time before I get a loading error.

I am probably missing something very simple or dumb and I am already sorry about that, but as I was saying am I new to server development and some things are not that trivial for me.

Steps to reproduce

Follow the installation guide process until npm start, on a completely new server running Ubuntu 22.04.

Actual Outcome

Nothing happens when I try to reach http://{my_server_ip}:1337/parse

Expected Outcome

As stated in the installation guide, I should get {"error": "unauthorized"} when reaching this URL.

Environment

Ubuntu 22.04.2 LTS apt-get 2.4.8 node v18.14.2 npm 9.5.0

Server

Database

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!