golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 265 forks source link

remote_api client not setup to use App Engine search #531

Open domgreen opened 6 years ago

domgreen commented 6 years ago

Hi, I'm looking to run a local version of gddo to point at a private github organisation. I have followed the dev env setup in the wikki however each time I run the command to launch ./godo-server I get the following error:

2018/01/04 13:30:56 remote_api client not setup to use App Engine search

The server does start but if I search for a package I get the following:

2018/01/04 13:31:44 Error serving /?q=test: remote_api client not setup to use App Engine search

What have I missed in the setup? Any help would be great.

shantuo commented 6 years ago

If you need to use the App Engine search, you need to have a GCP project, deploy the gae-service-proxy/ app, which is an App Engine app to use the remote_api.

If you don't need the search, you can ignore that and / handlers should work.

a8uhnf commented 6 years ago

@shantuo Can you elaborate the process? How can I able to use "App Search Engine". Any doc available?

nhooyr commented 5 years ago

I believe you deploy https://github.com/golang/gddo/tree/master/gae-service-proxy on app engine standard, and then pass the host:port of that service into the godoc server via the remoteapi-endpoint flag.

I'm going to be testing this myself soon and will update.

freman commented 5 years ago

Did anyone figure this out?

I got this far

╔════════════════════════════════════════════════════════════╗
╠═ Uploading 65 files to Google Cloud Storage               ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: The first service (module) you upload to a new application must be the 'default' service (module). Please upload a version of the 'default' service (module) before uploading a version for the 'serviceproxy' service (module). See the documentation for more information. Python: (https://developers.google.com/appengine/docs/python/modules/#Python_Uploading%%20modules) Java: (https://developers.google.com/appengine/docs/java/modules/#Java_Uploading%%20modules)
jen-obyrne commented 5 years ago

Hey did you manage to get your remote api working?

I have set up the proxy, and given its url to the godoc server, but I am getting a "Must be logged in as an administrator" error when attempting to start the godoc sever, even though the service account I am using has admin rights. Did any of you get the same error?

urandom2 commented 5 years ago

you likely have not granted the appropriate permissions to your caller: https://cloud.google.com/appengine/docs/admin-api/access-control