Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Parse Dashboard - Server not reachable: unable to connect to server #233

Open
ganlulu2018 opened this issue Jul 22, 2018 · 16 comments
Open

Comments

@ganlulu2018
Copy link

Hi,
I have tried to go to server parse dashboard (http://localhost:4040/apps/F8/), but it hangs there. And when i tried to access (http://localhost:4040), it shows the F8 is unable to connect to server.
Any steps i miss here?

Thanks.

@RinatRezyapov
Copy link

RinatRezyapov commented Jul 24, 2018

Same issue here:
parse-server doesn't start
Error in console:

parse_1            |     throw err;
parse_1            |     ^
parse_1            | 
parse_1            | Error: Cannot find module 'http2'
parse_1            |     at Function.Module._resolveFilename (module.js:489:15)
parse_1            |     at Function.Module._load (module.js:439:25)
parse_1            |     at Module.require (module.js:517:17)
parse_1            |     at require (internal/module.js:11:18)
parse_1            |     at Object.<anonymous> (/usr/local/lib/node_modules/parse-server/node_modules/apn/index.js:15:15)
parse_1            |     at Module._compile (module.js:573:30)
parse_1            |     at Object.Module._extensions..js (module.js:584:10)
parse_1            |     at Module.load (module.js:507:32)
parse_1            |     at tryModuleLoad (module.js:470:12)
parse_1            |     at Function.Module._load (module.js:462:3)
f8app_parse_1 exited with code 1

MacOSX 10.12.6
Same error on different versions of node: 8.4, 8.11.3, 10.7.0
Tried to reinstall yarn, node, npm. Tried to install apn, http2 manually. Nothing helps.

@RinatRezyapov
Copy link

RinatRezyapov commented Jul 24, 2018

Just added image yongjhih/parse-server instead of build from f8app repository. Now it works.
docker-compose.yml

services:
mongo:
  image: mongo
  networks:
    default:
      aliases:
        - mongo
mongorestore:
  build: ./server/mongorestore
  depends_on:
    - mongo
parse:
  image: yongjhih/parse-server
  ports:
    - "1337:1337"
  environment:
    PORT: 1337
    DATABASE_URI: mongodb://mongo/dev
    APP_ID: oss-f8-app-2017
    MASTER_KEY: oss-f8-app-2017-mk
  depends_on:
    - mongo
parse_dashboard:
  build: ./server/parse-dashboard
  ports:
    - "4040:4040"
graphql:
  build: ./server/graphql
  environment:
    - PARSE_URL=http://parse:1337/parse
  ports:
    - "4000:4000"

@ganlulu2018
Copy link
Author

Hi RinatRezyapov,
Thanks for your reply. I have tried your option but the result is same for me.
I can open the parser dashboard (http://localhost:4040/) but inside it mentions the F8 server not reachable.
Need help on this. TQ

@RinatRezyapov
Copy link

RinatRezyapov commented Jul 24, 2018

Hi Ganlulu2018. Did you remove docker data before trying this?
http://techstream.org/images/img/Docker-Preference-on-MAC.png
Try to "reset to factory defaults" and then download new f8app repository (with docker-compose.yml from above) and launch "yarn server".

If it will not help, please, share entire log from console.

@ganlulu2018
Copy link
Author

Hi RinatRezyapov,
I have tried the method you listed above but the result is same. My console log and parse dashboard are as below. Thanks.

image

image

@sis-dk
Copy link

sis-dk commented Aug 17, 2018

Any fix for this? I'm facing the same issue. http2 not found.

@jimmynguyc
Copy link
Contributor

You'll have to change server/parse-server/Dockerfile to use FROM node:8.11-alpine due to this problem parse-community/parse-server#4976

After change do

docker-compose down
docker-compose rm
docker rmi f8app_parse

And then yarn server again

@jimmynguyc
Copy link
Contributor

jimmynguyc commented Aug 18, 2018

Submitted a PR #234 for ☝️

@abhishrek
Copy link

@jimmynguyc , tried 8.11-alpine, still not working. same error.

@jimmynguyc
Copy link
Contributor

jimmynguyc commented Sep 2, 2018

@abhishrek did you remove the old docker-compose containers and the f8app_parse docker image?

$ docker-compose down
$ docker-compose rm
$ docker rmi f8app_parse

Double check that you don't have anything after running docker-compose ps. And there's no f8app_parse image when you do docker images.

Run yarn server again and you should be able to see this

screen shot 2018-09-02 at 22 45 52

@yukihirai0505
Copy link

yukihirai0505 commented Sep 13, 2018

thanks @jimmynguyc

Your PR should be merged ASAP🤗

@abhishrek
Copy link

@jimmynguyc , yes i did all that, still the same problem.
@RinatRezyapov, It worked the way you mentioned, with yongjhih/parse-server. Thanks !!

@0DividebYZer0
Copy link

Hi im having a problem with running the Yarn server. please help with this error
`PS C:\Users\user\f8app> yarn server
yarn run v1.19.1
$ docker-compose up
Building parse_dashboard
Step 1/4 : FROM node:8.4-alpine
---> 016382f39a51
Step 2/4 : RUN ["npm", "install", "-g", "parse-dashboard"]
---> Running in ff885784e561
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm http fetch GET 200 https://registry.npmjs.org/parse-dashboard 617ms
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fruntime 146ms
npm http fetch GET 200 https://registry.npmjs.org/graphql 132ms
npm http fetch GET 200 https://registry.npmjs.org/connect-flash 400ms
npm http fetch GET 200 https://registry.npmjs.org/create-react-class 406ms
npm http fetch GET 200 https://registry.npmjs.org/bcryptjs 412ms
npm http fetch GET 200 https://registry.npmjs.org/cookie-session 409ms
npm http fetch GET 200 https://registry.npmjs.org/csurf 405ms
npm http fetch GET 200 https://registry.npmjs.org/commander 428ms
npm http fetch GET 200 https://registry.npmjs.org/copy-to-clipboard 428ms
npm http fetch GET 200 https://registry.npmjs.org/body-parser 439ms
npm http fetch GET 200 https://registry.npmjs.org/express 510ms
npm http fetch GET 200 https://registry.npmjs.org/cookie-session/-/cookie-session-2.0.0-beta.3.tgz 160ms
npm http fetch GET 200 https://registry.npmjs.org/graphql-playground-react 316ms
npm http fetch GET 200 https://registry.npmjs.org/json-file-plus 272ms
npm http fetch GET 200 https://registry.npmjs.org/immutable-devtools 280ms
npm http fetch GET 200 https://registry.npmjs.org/package-json 272ms
npm http fetch GET 200 https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.3.0.tgz 333ms
npm http fetch GET 200 https://registry.npmjs.org/parse 231ms
npm http fetch GET 200 https://registry.npmjs.org/history 357ms
npm http fetch GET 200 https://registry.npmjs.org/passport 235ms
npm http fetch GET 200 https://registry.npmjs.org/js-beautify 380ms
npm http fetch GET 200 https://registry.npmjs.org/immutable 395ms
npm http fetch GET 200 https://registry.npmjs.org/prismjs 154ms
npm http fetch GET 200 https://registry.npmjs.org/passport-local 170ms
npm http fetch GET 200 https://registry.npmjs.org/immutable-devtools/-/immutable-devtools-0.1.3.tgz 193ms
npm http fetch GET 200 https://registry.npmjs.org/query-string 152ms
npm http fetch GET 200 https://registry.npmjs.org/passport/-/passport-0.4.0.tgz 149ms
npm http fetch GET 200 https://registry.npmjs.org/react 180ms
npm http fetch GET 200 https://registry.npmjs.org/immutable/-/immutable-4.0.0-rc.9.tgz 285ms
npm http fetch GET 200 https://registry.npmjs.org/react-dnd-html5-backend 221ms
npm http fetch GET 200 https://registry.npmjs.org/react-helmet 227ms
npm http fetch GET 200 https://registry.npmjs.org/react-dom 251ms
npm http fetch GET 200 https://registry.npmjs.org/react-router 319ms
npm http fetch GET 200 https://registry.npmjs.org/react-dnd 454ms
npm http fetch GET 200 https://registry.npmjs.org/regenerator-runtime 294ms
npm http fetch GET 200 https://registry.npmjs.org/react-router-dom 342ms
npm http fetch GET 200 https://registry.npmjs.org/semver 178ms
npm http fetch GET 200 https://registry.npmjs.org/react-redux 385ms
npm http fetch GET 200 https://registry.npmjs.org/prop-types 1828ms
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-10T10_53_04_755Z-debug.log
ERROR: Service 'parse_dashboard' failed to build: The command 'npm install -g parse-dashboard' returned a non-zero code: 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\user\f8app>`

@0DividebYZer0
Copy link

Hi im having a problem with running the Yarn server. please help with this error
`PS C:\Users\user\f8app> yarn server
yarn run v1.19.1
$ docker-compose up
Building parse_dashboard
Step 1/4 : FROM node:8.4-alpine
---> 016382f39a51
Step 2/4 : RUN ["npm", "install", "-g", "parse-dashboard"]
---> Running in ff885784e561
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm http fetch GET 200 https://registry.npmjs.org/parse-dashboard 617ms
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fruntime 146ms
npm http fetch GET 200 https://registry.npmjs.org/graphql 132ms
npm http fetch GET 200 https://registry.npmjs.org/connect-flash 400ms
npm http fetch GET 200 https://registry.npmjs.org/create-react-class 406ms
npm http fetch GET 200 https://registry.npmjs.org/bcryptjs 412ms
npm http fetch GET 200 https://registry.npmjs.org/cookie-session 409ms
npm http fetch GET 200 https://registry.npmjs.org/csurf 405ms
npm http fetch GET 200 https://registry.npmjs.org/commander 428ms
npm http fetch GET 200 https://registry.npmjs.org/copy-to-clipboard 428ms
npm http fetch GET 200 https://registry.npmjs.org/body-parser 439ms
npm http fetch GET 200 https://registry.npmjs.org/express 510ms
npm http fetch GET 200 https://registry.npmjs.org/cookie-session/-/cookie-session-2.0.0-beta.3.tgz 160ms
npm http fetch GET 200 https://registry.npmjs.org/graphql-playground-react 316ms
npm http fetch GET 200 https://registry.npmjs.org/json-file-plus 272ms
npm http fetch GET 200 https://registry.npmjs.org/immutable-devtools 280ms
npm http fetch GET 200 https://registry.npmjs.org/package-json 272ms
npm http fetch GET 200 https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.3.0.tgz 333ms
npm http fetch GET 200 https://registry.npmjs.org/parse 231ms
npm http fetch GET 200 https://registry.npmjs.org/history 357ms
npm http fetch GET 200 https://registry.npmjs.org/passport 235ms
npm http fetch GET 200 https://registry.npmjs.org/js-beautify 380ms
npm http fetch GET 200 https://registry.npmjs.org/immutable 395ms
npm http fetch GET 200 https://registry.npmjs.org/prismjs 154ms
npm http fetch GET 200 https://registry.npmjs.org/passport-local 170ms
npm http fetch GET 200 https://registry.npmjs.org/immutable-devtools/-/immutable-devtools-0.1.3.tgz 193ms
npm http fetch GET 200 https://registry.npmjs.org/query-string 152ms
npm http fetch GET 200 https://registry.npmjs.org/passport/-/passport-0.4.0.tgz 149ms
npm http fetch GET 200 https://registry.npmjs.org/react 180ms
npm http fetch GET 200 https://registry.npmjs.org/immutable/-/immutable-4.0.0-rc.9.tgz 285ms
npm http fetch GET 200 https://registry.npmjs.org/react-dnd-html5-backend 221ms
npm http fetch GET 200 https://registry.npmjs.org/react-helmet 227ms
npm http fetch GET 200 https://registry.npmjs.org/react-dom 251ms
npm http fetch GET 200 https://registry.npmjs.org/react-router 319ms
npm http fetch GET 200 https://registry.npmjs.org/react-dnd 454ms
npm http fetch GET 200 https://registry.npmjs.org/regenerator-runtime 294ms
npm http fetch GET 200 https://registry.npmjs.org/react-router-dom 342ms
npm http fetch GET 200 https://registry.npmjs.org/semver 178ms
npm http fetch GET 200 https://registry.npmjs.org/react-redux 385ms
npm http fetch GET 200 https://registry.npmjs.org/prop-types 1828ms
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-10T10_53_04_755Z-debug.log
ERROR: Service 'parse_dashboard' failed to build: The command 'npm install -g parse-dashboard' returned a non-zero code: 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\user\f8app>`

And if i run the 'npm install -g parse-dashboard' command separately

C:\Users\user>npm install -g parse-dashboard npm WARN deprecated [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/boom. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated [email protected]: Switch to the bfj` package for fixes and new features!
C:\Users\user\AppData\Roaming\npm\parse-dashboard -> C:\Users\user\AppData\Roaming\npm\node_modules\parse-dashboard\bin\parse-dashboard
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@>=15.5 <16 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>=15.5 <16 but none is installed. You must install peer dependencies yourself.

C:\Users\user>`

@Vimalraj571
Copy link

Vimalraj571 commented Nov 12, 2019

Try this one nodejs/docker-node#586 (comment) @0DividebYZer0

Edit the file in this location server/parse-dashboard/Dockerfile

@aacassandra
Copy link

any update? i can't still run parse dashboard from my localhost. im using parse server version 6 and parse-dashboard version 5. please help me

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

No branches or pull requests

9 participants