golang/gddo

remote_api client not setup to use App Engine search

Opened this issue ยท 6 comments

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.

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 /<package_name> handlers should work.

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

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.

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)

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?

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