2017-08-09 7 views
3

J'ai installé dgraph gru pour des entrevuesOne Click Install - Dgraph - Gru

go get github.com/dgraph-io/gru 
cd $GOPATH/src/github.com/dgraph-io/gru 
git checkout develop 
go build . && ./gru -user=admin -pass=pass -secret=0a45e5eGseF41o0719PJ39KljMK4F4v2 
docker run -it -p 127.0.0.1:8088:8080 -p 127.0.0.1:9080:9080 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph:v0.7.5 dgraph --bindall=true 

que je reçois ci-dessous erreur lorsque je tente de créer quiz ou des questions

Aug 09 10:14:23 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.001305978s 
Aug 09 10:14:24 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000762875s 
Aug 09 10:19:40 gru[16999]: Error while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeout[negroni] Started POST /api/admin/add-question 
Aug 09 10:20:10 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.001419475s 
Aug 09 10:20:17 gru[16999]: [negroni] Started POST /api/admin/get-all-questions 
Aug 09 10:20:31 gru[16999]: [negroni] Started GET /api/admin/get-all-tags 
Aug 09 10:20:43 gru[16999]: [negroni] Started GET /api/admin/get-all-tags 
Aug 09 10:20:47 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000821271s 
Aug 09 10:21:01 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000790588s 
Aug 09 10:21:13 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000748794s 
Aug 09 11:12:24 gru[16999]: Error while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeoutError while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeoutError while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeoutError while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeoutError while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeout[negroni] Started POST /api/admin/get-all-questions 
Aug 09 11:12:54 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000807257s 
Aug 09 11:13:10 gru[16999]: [negroni] Started GET /api/admin/get-all-tags 
Aug 09 11:13:41 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000734698s 
Aug 09 11:16:56 gru[16999]: Error while rejecting candidates: Couldn't get response from Dgraph: Post http://localhost:8088/query: dial tcp 127.0.0.1:8088: i/o timeout[negroni] Started POST /api/admin/add-question 
Aug 09 11:17:26 gru[16999]: [negroni] Completed 500 Internal Server Error in 30.000777429s 

J'ai essayé avec différentes versions de base de données dgraph.

Y at-il des scripts ou un docker pour l'installer à la volée? À partir des journaux, je peux voir qu'il n'est pas en mesure de se connecter à Dgraph

Répondre

3

C'est parce que docker expose le port 8088 alors que le serveur Gru s'attend à ce que Dgraph fonctionne sur 8080. Vous pouvez exécuter Dgraph comme

docker run -it -p 127.0.0.1:8080:8080 -v ~/dgraph:/dgraph dgraph/dgraph:v0.7.5 dgraph --bindall=true 

Vous devez également exécuter le serveur Gru et le caddie comme indiqué dans le fichier README. Maintenant que j'y pense, l'interface utilisateur n'a pas besoin d'être exécutée séparément du serveur Web Gru. Je peux essayer d'ajouter un guide d'installation rapide en une étape au cours du week-end.