Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

beta_settings: use_endpoints_api_management is not working #26

Closed
Eng-Fouad opened this issue Nov 18, 2016 · 3 comments
Closed

beta_settings: use_endpoints_api_management is not working #26

Eng-Fouad opened this issue Nov 18, 2016 · 3 comments

Comments

@Eng-Fouad
Copy link

Whenever I use the following configuration inside app.yaml:

beta_settings:
    use_endpoints_api_management: true        # enable Google Cloud Endpoints API management

the endpoints APIs don't work anymore. It gives me HTTP 503 Service Unavailable all the time.

I am using endpoints v2 on java flexible environment.

@Eng-Fouad
Copy link
Author

When I enable it, I can see the following in google console logging:

[warn] 28#0: Using trusted CA certificates file: /etc/nginx/trusted-ca-certificates.crt
[emerg] 28#0: Failed to open an api service configuration file: /etc/nginx/endpoints/service.json in /etc/nginx/nginx.conf:396
[emerg] 28#0: There were errors with Endpoints api service configuration.

@Eng-Fouad
Copy link
Author

Eng-Fouad commented Dec 2, 2016

Solved the issue by changing this

automatic_scaling:
  min_num_instances: 1
  max_num_instances: 1

to

automatic_scaling:
  min_num_instances: 2
  max_num_instances: 2

in app.yaml.

and using runtime: custom with Dockerfile:

FROM gcr.io/google_appengine/jetty9

ADD flexible-endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
ADD . /app

@Eng-Fouad
Copy link
Author

Resolved the issue totally by removing the base path "/_ah/api". This is the major problem, don't use it.

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

1 participant