ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: ERROR: unknown location: Cannot convert to service config - google-cloud-endpoints

I am in the process of generating the CloudEndpoints for my APIs built on AppEngine Std Env JDK8 with Guice, and I am working on OSX.
Following the tutorial I’ve:
added my prj. ID to my pom.xml
run mvn endpoints-framework:openApiDocs
run gcloud endpoints services deploy target/openapi-docs/openapi.json
Steps 1 and 2 succeed whereas 3 fails with the message:
ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: ERROR: unknown location: Cannot convert to service config.
My APIs were not using the issuers attribute, for example:
issuers = {
#ApiIssuer(
name = "firebase",
issuer = "https://securetoken.google.com/<PRJ-ID>",
jwksUri = "https://www.googleapis.com/robot/v1/metadata/x509/securetoken#system.gserviceaccount.com")
}
so I tried adding that to each API, but still got the same error.
Help is needed and appreciated :).

This error means there's something wrong with the openapi config file. First, try verifying that it's valid YAML. If it is, then try validating the config with Swagger/OpenAPI tools.

Related

rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/dotnet/framework/sdk:4.8":

When i create bit-bucket pipeline ASP.Net Based project and found below error.
rpc error: code = Not-found desc = failed to pull and unpack image "mcr.micro-soft.com/dotnet/framework/SDK:4.8": no match for platform in manifest: not found
I have tried these images that doesn't support.
Can anyone guide me that which docker image is supported in ASP.Net framework based project.
Thanks in Advance.

Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property

I got this error after running npm run serve,
!! functions: Failed to load function definition from source: FirebaseError: Failed to load function definition from source: Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property.
Heres the screenshot of the logs
it seems service account issue heres my initialization
admin.initializeApp({ credential: admin.credential.applicationDefault(), });
i found the solution by commenting all of my codes , then theres new errors says , index.js not found , since im using typescript , and then i realised that im running the firebase deploy functions command using the wrong lib folder generated by typescript,
thats why i got these 2 erros:
Failed to generate manifest from function source: Error: Service account object must contain a string "private_key" property.
RangeError: Maximum call stack size exceeded.

Problem while installing keystone for openstack (stein)

we are a group of french students in networks, and we need to get openstack working for a school project. We are curently facing an issue while installing keystone. After following the official openstack guide, when trying the service, we get the following error:
[root#localhost ~]# openstack project create --domain default --description "Service Project" service
Failed to discover available identity versions when contacting http://controller:5000/v3. Attempting to parse version from URL.
Unable to establish connection to http://controller:5000/v3/auth/tokens: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f60f19af9d0>: Failed to establish a new connection: [Errno -2] Nom ou service inconnu',))
tail /var/log/keystone/keystone.log
2019-10-03 14:24:35.943 4778 WARNING keystone.access_rules_config.backends.json [-] No config file found for access rules, application credential access rules will be unavailable.: IOError: [Errno 2] No such file or directory: '/etc/keystone/access_rules.json'
We are installing the stein version
Does anyone know how to solve the problem? We can include some others log if needed. We are two who tried and get the same error.
Thanks for any help! :)
Well, the error is self explanatory.
You are missing a config file which governs access to openstack endpoints.
You can use copy it from unittest cases and put in /etc/keystone folder.
For your convenience here is url to file:
https://fossies.org/linux/misc/openstack/keystone-15.0.0.tar.gz/keystone-15.0.0/keystone/tests/unit/config_files/access_rules.json?m=t

Could not authorize while connecting to the SonarQube server. Check your credentials and try again

I am trying to run SonarQube for my Xamarin Forms project, I am on the path where my .SLN file is there and executing the following command
Command:
$ mono /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/MSBuild.SonarQube.Runner.exe begin /k:"HIDReaderManagerApp" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="My Login Token"
Error:
SonarQube Scanner for MSBuild 4.0.2
Default properties file was found at /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Loading analysis properties from /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Pre-processing started.
Preparing working directories...
17:29:10.391 Updating build integration targets...
17:29:10.414 Fetching analysis configuration settings...
17:29:10.517 Failed to request and parse 'http://localhost:9000/api/settings/values?component=HIDReaderManagerApp': The remote server returned an error: (401) .
17:29:10.517 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.
17:29:10.518 Pre-processing failed. Exit code: 1
The api/settings/values API requires Browse permission when the component argument is used. Please, see if the user you are authenticating with has the aforementioned permission.
More details about security and permissions here:
https://docs.sonarqube.org/latest/instance-administration/security

Google Cloud Endpoint Extensible Service Proxy does not start

I am trying to install Extensible Service Proxy on my compute instance. I am following this guide for installing the ESP Nginx service: https://cloud.google.com/endpoints/docs/quickstart-compute-engine#running_the_extensible_service_proxy. I was able to install the ESP service without problems but when I try to start the service with the command service nginx start, the service does not start up.
First it gave this error in /var/log/nginx/error.log:
Traceback (most recent call last):
File "/usr/sbin/start_esp.py", line 48, in <module>
from mako.template import Template
ImportError: No module named mako.template
The error went away after I installed the mako template module using the command pip install mako.
Now it is giving this error:
INFO:Fetching the service name from the metadata service
ERROR:Fetching service name failed (status code 404)
Any help would be much appreciated. Thanks
Did you forget to put in your service name in your metadata?
From https://cloud.google.com/endpoints/docs/quickstart-compute-engine:
In the Metadata section and add the following Endpoints metadata key/value pairs:
Specify endpoints-service-name as a key and YOUR-PROJECT-ID.appspot.com as its value, replacing YOUR-PROJECT-ID with your project ID.
Click Add item.
Specify endpoints-service-version as a key and the service version returned when you deployed as the key's value.

Resources